X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fpath.h;h=0b946fdcdb18bb00ab79ffe189249946fc5bc8be;hp=8c24f191394e5198d14fd7222f54f3c7bf1a6df6;hb=d3c9b9abb9e3c69aeecbca1044b43e7ec83f3b8c;hpb=a17d6ad286e19e2222ab8b6c9a762a83bf2c6c56 diff --git a/source/path.h b/source/path.h index 8c24f19..0b946fd 100644 --- a/source/path.h +++ b/source/path.h @@ -23,6 +23,11 @@ enum #endif }; +/** +Stores a filesystem path. Paths are always stored in a normalized form; there +are never any "." or ".." components in the middle of the path, and relative +paths always begin with a single "." component or a sequence ".." components. +*/ class Path { public: @@ -32,7 +37,7 @@ public: private: const Path &path; - unsigned start,end; + std::string::size_type start,end; Iterator(const Path &); public: