ddc
|
locale functions More...
#include <locale.h>
#include <string>
Go to the source code of this file.
Functions | |
void | ddcInitLocale (void) |
initialize the locale from current environment if not already initialized More... | |
std::wstring | string2wstring (const std::string &src) |
std::string | wstring2string (const std::wstring &src) |
std::wstring | wstoupper (const std::wstring &ws) |
convert a std::wstring to upper-case More... | |
std::wstring | wstolower (const std::wstring &ws) |
convert a std::wstring to lower-case More... | |
std::string | stoupper (const std::string &s) |
convert a std::string to upper-case according to current locale (implicit conversion to and from wstring) More... | |
std::string | stolower (const std::string &s) |
convert a std::string to lower-case according to current locale (implicit conversion to and from string) More... | |
Variables | |
bool | ddcLocaleInitialized |
sentinel indicating whether current process has initialized the locale More... | |
locale functions
void ddcInitLocale | ( | void | ) |
initialize the locale from current environment if not already initialized
References ddcLocaleInitialized.
Referenced by ddcInitGlobal(), string2wstring(), and wstring2string().
std::wstring string2wstring | ( | const std::string & | src | ) |
convert a std::string in current locale's character set to a std::wstring (requires setlocale(LC_CTYPE,"whatever"))
References ddcInitLocale().
Referenced by TxCase::expand(), stolower(), and stoupper().
std::string wstring2string | ( | const std::wstring & | src | ) |
convert a std::wstring to a std::string in current locale's character set (requires setlocale(LC_CTYPE,"whatever"))
References ddcInitLocale().
Referenced by TxCase::expand(), stolower(), and stoupper().
std::wstring wstoupper | ( | const std::wstring & | ws | ) |
convert a std::wstring to upper-case
Referenced by TxCase::expand(), and stoupper().
std::wstring wstolower | ( | const std::wstring & | ws | ) |
convert a std::wstring to lower-case
Referenced by TxCase::expand(), and stolower().
std::string stoupper | ( | const std::string & | s | ) |
convert a std::string to upper-case according to current locale (implicit conversion to and from wstring)
References string2wstring(), wstoupper(), and wstring2string().
Referenced by RmlMakeUpper().
std::string stolower | ( | const std::string & | s | ) |
convert a std::string to lower-case according to current locale (implicit conversion to and from string)
References string2wstring(), wstolower(), and wstring2string().
Referenced by CSocketAddr::ParseSocketAddr(), RmlMakeLower(), and StringToBool().
bool ddcLocaleInitialized |
sentinel indicating whether current process has initialized the locale
Referenced by ddcInitLocale().