34 void to_wstring(wstring& out, cstring_view stringView,
const std::locale& locale =
get_locale());
42 [[nodiscard]] wstring
to_wstring(cstring_view stringView,
const std::locale& locale =
get_locale());
50 void to_wstring(wstring& out, wstring_view stringView,
const std::locale& locale =
get_locale());
58 [[nodiscard]] wstring_view
to_wstring(wstring_view stringView,
const std::locale& locale =
get_locale());
67 void to_cstring(cstring& out, wstring_view stringView,
const std::locale& locale =
get_locale());
76 [[nodiscard]] cstring
to_cstring(wstring_view stringView,
const std::locale& locale =
get_locale());
84 void to_cstring(cstring& out, cstring_view stringView,
const std::locale& locale =
get_locale());
92 [[nodiscard]] cstring_view
to_cstring(cstring_view stringView,
const std::locale& locale =
get_locale());
100 void to_string(
string& out, cstring_view stringView,
const std::locale& locale =
get_locale());
108 [[nodiscard]]
string to_string(cstring_view stringView,
const std::locale& locale =
get_locale());
116 void to_string(
string& out, wstring_view stringView,
const std::locale& locale =
get_locale());
124 [[nodiscard]]
string to_string(wstring_view stringView,
const std::locale& locale =
get_locale());
160 template<
class char_t,
string_literal sLiteral>
#define QX_DEFINE_CATEGORY(name,...)
Define a category.
const std::locale & get_locale()
Get the default locale used by string converters.
Contains perf scope macros for profiler (for internal usage only, but user may override them)
constexpr basic_string_view< char_t > convert_string_literal()
Convert a constexpr string literal to the wider or equal char type string view.
void utf8_to_string(string &out, cstring_view pszUtf8)
Convert const char* representing UTF8 to wstring.
void to_cstring(cstring &out, wstring_view stringView, const std::locale &locale=get_locale())
Convert wstring to cstring.
void to_wstring(wstring &out, cstring_view stringView, const std::locale &locale=get_locale())
convert cstring to wstring
void to_string(string &out, cstring_view stringView, const std::locale &locale=get_locale())
Convert a char string to common string type.
void string_to_uft8(cstring &out, string_view svText)
Convert the engine string representation to UTF-8 bytes.