20 #ifndef BUILDCACHE_UNICODE_UTILS_HPP_
21 #define BUILDCACHE_UNICODE_UTILS_HPP_
35 std::string
ucs2_to_utf8(
const wchar_t* begin,
const wchar_t* end);
58 std::string
lower_case(
const std::string& str);
64 std::string
upper_case(
const std::string& str);
69 std::string
lstrip(
const std::string& str);
74 std::string
rstrip(
const std::string& str);
79 std::string
strip(
const std::string& str);
82 #endif // BUILDCACHE_UNICODE_UTILS_HPP_
std::wstring utf8_to_ucs2(const std::string &str8)
Convert a UTF-8 string to a UCS-2 string.
Definition: unicode_utils.cpp:145
std::string ucs2_to_utf8(const std::wstring &str16)
Convert a UCS-2 string to a UTF-8 string.
Definition: unicode_utils.cpp:124
The top level namespace.
Definition: compressor.cpp:34
std::string strip(const std::string &str)
Strip leading and trailing white space characters.
Definition: unicode_utils.cpp:243
std::string rstrip(const std::string &str)
Strip trailing white space characters.
Definition: unicode_utils.cpp:234
int lower_case(const int code)
Convert the character to lower case.
Definition: unicode_utils.cpp:191
std::string lstrip(const std::string &str)
Strip leading white space characters.
Definition: unicode_utils.cpp:225
int upper_case(const int code)
Convert the character to upper case.
Definition: unicode_utils.cpp:199