|
qxLib
|
#include <qx/category.h>#include <qx/containers/string/locale.h>#include <qx/containers/string/string.h>#include <qx/containers/string/string_literal.h>#include <qx/containers/string/string_view.h>#include <qx/internal/perf_scope.h>#include <qx/windows.h>#include <codecvt>#include <locale>#include <utility>#include <qx/containers/string/string_converters.inl>Go to the source code of this file.
Functions | |
| void | qx::to_wstring (wstring &out, cstring_view stringView, const std::locale &locale=get_locale()) |
| convert cstring to wstring More... | |
| wstring | qx::to_wstring (cstring_view stringView, const std::locale &locale=get_locale()) |
| convert cstring to wstring More... | |
| void | qx::to_wstring (wstring &out, wstring_view stringView, const std::locale &locale=get_locale()) |
| Convert wstring to wstring. More... | |
| wstring_view | qx::to_wstring (wstring_view stringView, const std::locale &locale=get_locale()) |
| Convert wstring to wstring (stub) More... | |
| void | qx::to_cstring (cstring &out, wstring_view stringView, const std::locale &locale=get_locale()) |
| Convert wstring to cstring. More... | |
| cstring | qx::to_cstring (wstring_view stringView, const std::locale &locale=get_locale()) |
| Convert wstring to cstring. More... | |
| void | qx::to_cstring (cstring &out, cstring_view stringView, const std::locale &locale=get_locale()) |
| Convert string to string. More... | |
| cstring_view | qx::to_cstring (cstring_view stringView, const std::locale &locale=get_locale()) |
| Convert string to string (stub) More... | |
| void | qx::to_string (string &out, cstring_view stringView, const std::locale &locale=get_locale()) |
| Convert a char string to common string type. More... | |
| string | qx::to_string (cstring_view stringView, const std::locale &locale=get_locale()) |
| Convert a char string to common string type. More... | |
| void | qx::to_string (string &out, wstring_view stringView, const std::locale &locale=get_locale()) |
| Convert a wchar_t string to common string type. More... | |
| string | qx::to_string (wstring_view stringView, const std::locale &locale=get_locale()) |
| Convert a wchar_t string to common string type. More... | |
| void | qx::utf8_to_string (string &out, cstring_view pszUtf8) |
| Convert const char* representing UTF8 to wstring. More... | |
| string | qx::utf8_to_string (cstring_view pszUtf8) |
| Convert const char* representing UTF8 to wstring. More... | |
| void | qx::string_to_uft8 (cstring &out, string_view svText) |
| Convert the engine string representation to UTF-8 bytes. More... | |
| cstring | qx::string_to_uft8 (string_view svText) |
| Convert the engine string representation to UTF-8 bytes. More... | |
| template<class char_t , string_literal sLiteral> | |
| constexpr basic_string_view< char_t > | qx::convert_string_literal () |
| Convert a constexpr string literal to the wider or equal char type string view. More... | |
Definition in file string_converters.h.
|
constexpr |
Convert a constexpr string literal to the wider or equal char type string view.
| char_t | - target string view type |
| sLiteral | - constexpr string literal |
Definition at line 257 of file string_converters.inl.
|
inline |
Convert the engine string representation to UTF-8 bytes.
| out | - destination UTF-8 string; cleared for empty or unrepresentable input |
| svText | - source string, with embedded nulls preserved |
Definition at line 200 of file string_converters.inl.
|
inline |
Convert the engine string representation to UTF-8 bytes.
| svText | - source string, with embedded nulls preserved |
Definition at line 228 of file string_converters.inl.
|
inline |
Convert string to string.
| out | - output char string |
| stringView | - char string view |
| locale | - locale to use |
Definition at line 104 of file string_converters.inl.
|
inline |
Convert wstring to cstring.
'?' is a default character
| out | - output char string |
| stringView | - wchar_t string view |
| locale | - locale to use |
Definition at line 65 of file string_converters.inl.
|
inline |
Convert string to string (stub)
| stringView | - char string view |
| locale | - locale to use |
Definition at line 109 of file string_converters.inl.
|
inline |
Convert wstring to cstring.
'?' is a default character
| stringView | - wchar_t string view |
| locale | - locale to use |
Definition at line 97 of file string_converters.inl.
|
inline |
Convert a char string to common string type.
| stringView | - char string |
| locale | - locale to use |
Definition at line 125 of file string_converters.inl.
|
inline |
Convert a char string to common string type.
| out | - output common string |
| stringView | - char string |
| locale | - locale to use |
Definition at line 114 of file string_converters.inl.
|
inline |
Convert a wchar_t string to common string type.
| out | - output common string |
| stringView | - wchar_t string |
| locale | - locale to use |
Definition at line 136 of file string_converters.inl.
|
inline |
Convert a wchar_t string to common string type.
| stringView | - wchar_t string |
| locale | - locale to use |
Definition at line 147 of file string_converters.inl.
|
inline |
convert cstring to wstring
| stringView | - char string view |
| locale | - locale to use |
Definition at line 48 of file string_converters.inl.
|
inline |
convert cstring to wstring
| out | - output wchar_t string |
| stringView | - char string view |
| locale | - locale to use |
Definition at line 15 of file string_converters.inl.
|
inline |
Convert wstring to wstring.
| out | - output wchar_t string |
| stringView | - wchar_t string view |
| locale | - locale to use |
Definition at line 55 of file string_converters.inl.
|
inline |
Convert wstring to wstring (stub)
| stringView | - wchar_t string view |
| locale | - locale to use |
Definition at line 60 of file string_converters.inl.
|
inline |
Convert const char* representing UTF8 to wstring.
| pszUtf8 | - UTF8 string |
Definition at line 193 of file string_converters.inl.
|
inline |
Convert const char* representing UTF8 to wstring.
| out | - output wchar_t string |
| pszUtf8 | - UTF8 string |
Definition at line 158 of file string_converters.inl.