53 std::wstring
wstoupper(
const std::wstring &ws);
56 std::wstring
wstolower(
const std::wstring &ws);
59 std::string
stoupper(
const std::string &s);
62 std::string
stolower(
const std::string &s);
64 #endif //_DDC_LOCALE_H void ddcInitLocale(void)
initialize the locale from current environment if not already initialized
Definition: ddcLocale.cpp:31
std::wstring wstoupper(const std::wstring &ws)
convert a std::wstring to upper-case
Definition: ddcLocale.cpp:106
std::wstring wstolower(const std::wstring &ws)
convert a std::wstring to lower-case
Definition: ddcLocale.cpp:117
std::string wstring2string(const std::wstring &src)
Definition: ddcLocale.cpp:81
std::wstring string2wstring(const std::string &src)
Definition: ddcLocale.cpp:43
bool ddcLocaleInitialized
sentinel indicating whether current process has initialized the locale
Definition: ddcLocale.cpp:28
std::string stoupper(const std::string &s)
convert a std::string to upper-case according to current locale (implicit conversion to and from wstr...
Definition: ddcLocale.cpp:128
std::string stolower(const std::string &s)
convert a std::string to lower-case according to current locale (implicit conversion to and from stri...
Definition: ddcLocale.cpp:134