nis-util  1.0.D108
Typedefs | Functions
lib/path_join.cc File Reference
#include <lib/ac/string.h>
#include <list>
#include <lib/path_join.h>

Go to the source code of this file.

Typedefs

typedef std::list< rcstringstring_list_t

Functions

static void split (const rcstring &text, string_list_t &parts)
static rcstring unsplit (string_list_t &parts)
rcstring path_join (const rcstring &lhs, const rcstring &rhs)
rcstring path_join (const rcstring &p1, const rcstring &p2, const rcstring &p3)
rcstring path_join (const rcstring &p1, const rcstring &p2, const rcstring &p3, const rcstring &p4)

Typedef Documentation

typedef std::list<rcstring> string_list_t

Definition at line 24 of file path_join.cc.


Function Documentation

rcstring path_join ( const rcstring lhs,
const rcstring rhs 
)

The path_join function is used to elegantly join two path pieces together, talking care of redundant slash characters, dot directorys, etc.

Definition at line 111 of file path_join.cc.

rcstring path_join ( const rcstring p1,
const rcstring p2,
const rcstring p3 
)

Definition at line 121 of file path_join.cc.

rcstring path_join ( const rcstring p1,
const rcstring p2,
const rcstring p3,
const rcstring p4 
)

Definition at line 132 of file path_join.cc.

static void split ( const rcstring text,
string_list_t parts 
) [static]

Definition at line 28 of file path_join.cc.

static rcstring unsplit ( string_list_t parts) [static]

Definition at line 51 of file path_join.cc.