X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=inline;f=source%2Fpath.h;h=0b946fdcdb18bb00ab79ffe189249946fc5bc8be;hb=036694c0c851949b0a7ad65fb0ab16f7e3d3eda7;hp=8c24f191394e5198d14fd7222f54f3c7bf1a6df6;hpb=a17d6ad286e19e2222ab8b6c9a762a83bf2c6c56;p=libs%2Fcore.git 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: