mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-15 23:20:06 +02:00
sync to internal repository
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// Path.h
|
||||
//
|
||||
// $Id: //poco/1.3/Foundation/include/Poco/Path.h#1 $
|
||||
// $Id: //poco/Main/Foundation/include/Poco/Path.h#4 $
|
||||
//
|
||||
// Library: Foundation
|
||||
// Package: Filesystem
|
||||
@@ -338,6 +338,17 @@ public:
|
||||
/// If the file is found in one of the locations, the complete
|
||||
/// path of the file is stored in the path given as argument and true is returned.
|
||||
/// Otherwise false is returned and the path argument remains unchanged.
|
||||
|
||||
static std::string transcode(const std::string& path);
|
||||
/// On Windows, if POCO has been compiled with Windows UTF-8 support
|
||||
/// (POCO_WIN32_UTF8), this function converts a string (usually containing a path)
|
||||
/// encoded in UTF-8 into a string encoded in the current Windows code page.
|
||||
///
|
||||
/// This function should be used for every string passed as a file name to
|
||||
/// a string stream or fopen().
|
||||
///
|
||||
/// On all other platforms, or if POCO has not been compiled with Windows UTF-8
|
||||
/// support, this function returns the string unchanged.
|
||||
|
||||
protected:
|
||||
void parseUnix(const std::string& path);
|
||||
|
Reference in New Issue
Block a user