path.hpp File Reference

Defines struct path_elmt and character pathSepr and set of functions for path processing. More...

#include <ders/config.hpp>
#include <vector>
#include <ders/text.hpp>

Go to the source code of this file.

Namespaces

namespace  ders

Classes

struct  ders::path_elmt
 Path element for path processing functions. More...

Functions

void ders::parse_path (mem_pool &mp, const ch_rng &path, std::vector< path_elmt > &ret)
 Splits path into path elements.
sh_text ders::make_path (mem_pool &mp, const path_elmt *beg, const path_elmt *end, char spr=pathSepr)
 Creates path from path elements.
sh_text ders::normalize_path (mem_pool &mp, const ch_rng &path)
 Normalizes path via applying parse_path() and make_path() functions.
sh_text ders::get_path (mem_pool &mp, const ch_rng &path)
 Returns path part of the path.
sh_text ders::get_name (mem_pool &mp, const ch_rng &path)
 Returns name part of the path.

Variables

const char ders::pathSepr = '/'
 Implementation-dependant path separator.


Detailed Description

Defines struct path_elmt and character pathSepr and set of functions for path processing.

Definition in file path.hpp.


Generated on Tue Dec 8 11:35:32 2009 for derslib by  doxygen 1.5.5