fs/{Allocated,}Path,Charset: use PathTraitsFS typedefs

This commit is contained in:
Max Kellermann
2015-02-25 16:10:24 +01:00
parent 4c899e9c5a
commit eb174d5ba3
6 changed files with 19 additions and 21 deletions

View File

@@ -22,8 +22,7 @@
#include "check.h"
#include "Compiler.h"
#include <string>
#include "Traits.hxx"
#if defined(HAVE_ICU) || defined(HAVE_GLIB)
#define HAVE_FS_CHARSET
@@ -49,15 +48,15 @@ DeinitFSCharset();
* Returns empty string on error.
*/
gcc_pure gcc_nonnull_all
std::string
PathToUTF8(const char *path_fs);
PathTraitsUTF8::string
PathToUTF8(PathTraitsFS::const_pointer path_fs);
/**
* Convert the path from UTF-8.
* Returns empty string on error.
*/
gcc_pure gcc_nonnull_all
std::string
PathFromUTF8(const char *path_utf8);
PathTraitsFS::string
PathFromUTF8(PathTraitsUTF8::const_pointer path_utf8);
#endif