Canola  0.8.D001
Functions
lib/path_join.cc File Reference
#include <lib/path_join.h>

Go to the source code of this file.

Functions

std::string path_join (const std::string &lhs, const std::string &rhs)
std::string path_join (const std::string &s1, const std::string &s2, const std::string &s3)
std::string path_join (const std::string &s1, const std::string &s2, const std::string &s3, const std::string &s4)

Function Documentation

std::string path_join ( const std::string &  lhs,
const std::string &  rhs 
)

The path_join function is used to glue path pieces together with a slash. But will lots of exceptions for leading an trailing slashes.

Parameters:
lhsThe left hand side path portion.
rhsThe right hand side path portion.
Returns:
a string, containing a suitable semantically joined path.

Definition at line 22 of file path_join.cc.

std::string path_join ( const std::string &  s1,
const std::string &  s2,
const std::string &  s3 
)

The path_join function is used to glue path pieces together with a slash. But will lots of exceptions for leading an trailing slashes.

Parameters:
s1The first path portion.
s2The second path portion.
s3The third path portion.
Returns:
a string, containing a suitable semantically joined path.

Definition at line 39 of file path_join.cc.

std::string path_join ( const std::string &  s1,
const std::string &  s2,
const std::string &  s3,
const std::string &  s4 
)

The path_join function is used to glue path pieces together with a slash. But will lots of exceptions for leading an trailing slashes.

Parameters:
s1The first path portion.
s2The second path portion.
s3The third path portion.
s4The fourth path portion.
Returns:
a string, containing a suitable semantically joined path.

Definition at line 46 of file path_join.cc.