23#ifndef INCLUDED_OS_PATH
24#define INCLUDED_OS_PATH
45 std::string string(wstring.length(),
'\0');
46 for(
size_t i = 0; i < wstring.length(); i++)
48 ENSURE((
unsigned)wstring[i] <= (
unsigned)UCHAR_MAX);
49 string[i] = (char)wstring[i];
std::wstring String
Definition: path.h:82
const String & string() const
Definition: path.h:146
#define ENSURE(expr)
ensure the expression <expr> evaluates to non-zero.
Definition: debug.h:290
static std::string OsString(const OsPath &path)
Definition: os_path.h:42
Path OsPath
Definition: os_path.h:31