X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Ffs%2Fpath.h;h=ed9cc7985b62d863f86a6bc19726de692791d077;hb=e1452710edb6b1d0ebceb4b9273dae4b2f899630;hp=e560d3f96c4b3e1ae5b718f5d4a724e4fc8a57c2;hpb=af94bc926e301e9b871dc18662b4fa6e5614fdbf;p=libs%2Fcore.git diff --git a/source/fs/path.h b/source/fs/path.h index e560d3f..ed9cc79 100644 --- a/source/fs/path.h +++ b/source/fs/path.h @@ -1,10 +1,3 @@ -/* $Id$ - -This file is part of libmspfs -Copyright © 2006-2008 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - #ifndef MSP_FS_PATH_H_ #define MSP_FS_PATH_H_ @@ -41,11 +34,11 @@ public: Iterator(const Path &); public: - Iterator &operator++(); - Iterator &operator--(); + Iterator &operator++(); + Iterator &operator--(); std::string operator*() const; - bool operator==(const Iterator &i) const { return (start==i.start && end==i.end); } - bool operator!=(const Iterator &i) const { return !(*this==i); } + bool operator==(const Iterator &i) const { return (start==i.start && end==i.end); } + bool operator!=(const Iterator &i) const { return !(*this==i); } }; private: @@ -59,9 +52,9 @@ public: const std::string &str() const { return path; } /// Returns the number of components in the path. - unsigned size() const; + unsigned size() const; - bool empty() const { return path.empty(); } + bool empty() const { return path.empty(); } /// Determines whether the path starts from the root directory bool is_absolute() const; @@ -79,9 +72,9 @@ public: */ std::string operator[](int) const; - bool operator==(const Path &) const; - Iterator begin() const; - Iterator end() const; + bool operator==(const Path &) const; + Iterator begin() const; + Iterator end() const; private: void init(const std::string &); void add_component(const std::string &);