fs/Path: move configuration code to Config.cxx

This commit is contained in:
Max Kellermann
2013-10-17 22:13:54 +02:00
parent fa60b9ae94
commit 080ee87e07
11 changed files with 284 additions and 140 deletions

View File

@@ -129,23 +129,6 @@ public:
gcc_pure
static Path FromUTF8(const char *path_utf8, Error &error);
/**
* Convert the path to UTF-8.
* Returns empty string on error or if #path_fs is null pointer.
*/
gcc_pure
static std::string ToUTF8(const_pointer path_fs);
/**
* Performs global one-time initialization of this class.
*/
static void GlobalInit();
/**
* Gets file system character set name.
*/
static const std::string &GetFSCharset();
/**
* Copy a #Path object.
*/
@@ -209,9 +192,8 @@ public:
* Returns empty string on error or if this instance is "nulled"
* (#IsNull returns true).
*/
std::string ToUTF8() const {
return ToUTF8(value.c_str());
}
gcc_pure
std::string ToUTF8() const;
/**
* Gets directory name of this path.