Functions | |
static void | mayThrowStringConversionException () |
String | fromByteString (const String &enc, const char *str, size_t len) |
Converts a C string from the specified encoding into a String object using UTF-8 encoding. | |
String | fromByteString (const String &enc, const std::string &str) |
Converts a std::string from the specified encoding into a String object using UTF-8 encoding. | |
String | fromWideString (const String &enc, const std::wstring &str) |
Converts a std::wstring from the specified encoding into a String object using UTF-8 encoding. | |
std::string | toByteString (const String &enc, const String &utf8) |
Converts a UTF-8 String to the specified encoding casted as a (char based) std::string. | |
std::wstring | toWideString (const String &enc, const String &utf8) |
Convert a UTF-8 String to the specified encoding casted as a (wchar_t based) std::wstring. |
|
Converts a std::string from the specified encoding into a String object using UTF-8 encoding.
Definition at line 185 of file IConv.cpp. References BLOCXX_NAMESPACE::String::c_str(), and fromByteString(). |
|
Converts a C string from the specified encoding into a String object using UTF-8 encoding.
Definition at line 150 of file IConv.cpp. References BLOCXX_NAMESPACE::IConv_t::convert(), and mayThrowStringConversionException(). Referenced by fromByteString(). |
|
Converts a std::wstring from the specified encoding into a String object using UTF-8 encoding.
Definition at line 193 of file IConv.cpp. References BLOCXX_NAMESPACE::IConv_t::convert(), and mayThrowStringConversionException(). |
|
Definition at line 128 of file IConv.cpp. References BLOCXX_THROW. Referenced by fromByteString(), fromWideString(), toByteString(), and toWideString(). |
|
Converts a UTF-8 String to the specified encoding casted as a (char based) std::string.
Definition at line 227 of file IConv.cpp. References BLOCXX_NAMESPACE::String::c_str(), BLOCXX_NAMESPACE::IConv_t::convert(), BLOCXX_NAMESPACE::String::empty(), BLOCXX_NAMESPACE::String::length(), and mayThrowStringConversionException(). |
|
Convert a UTF-8 String to the specified encoding casted as a (wchar_t based) std::wstring.
Definition at line 261 of file IConv.cpp. References BLOCXX_NAMESPACE::String::c_str(), BLOCXX_NAMESPACE::IConv_t::convert(), BLOCXX_NAMESPACE::String::empty(), BLOCXX_NAMESPACE::String::length(), and mayThrowStringConversionException(). |