Go to the source code of this file.
|
wstring | qx::to_wstring (cstring_view stringView, const std::locale &locale=std::locale()) |
| convert cstring to wstring More...
|
|
wstring | qx::to_wstring (wstring_view stringView, const std::locale &locale=std::locale()) |
| Convert wstring to wstring (stub) More...
|
|
cstring | qx::to_cstring (wstring_view stringView, const std::locale &locale=std::locale()) |
| Convert wstring to cstring. More...
|
|
cstring | qx::to_cstring (cstring_view stringView, const std::locale &locale=std::locale()) |
| Convert string to string (stub) More...
|
|
string | qx::to_string (cstring_view stringView, const std::locale &locale=std::locale()) |
| Convert a char string to common string type. More...
|
|
string | qx::to_string (wstring_view stringView, const std::locale &locale=std::locale()) |
| Convert a wchar_t string to common string type. More...
|
|
string | qx::utf8_to_string (cstring_view pszUtf8) |
| Convert const char* representing UTF8 to wstring. More...
|
|
- Author
- Khrapov
- Date
- 24.11.2021
- Copyright
- © Nick Khrapov, 2021. All right reserved.
Definition in file string_converters.h.
◆ to_cstring() [1/2]
cstring qx::to_cstring |
( |
cstring_view |
stringView, |
|
|
const std::locale & |
locale = std::locale() |
|
) |
| |
|
inline |
Convert string to string (stub)
- Parameters
-
stringView | - char string view |
locale | - locale to use |
- Return values
-
Definition at line 78 of file string_converters.h.
◆ to_cstring() [2/2]
cstring qx::to_cstring |
( |
wstring_view |
stringView, |
|
|
const std::locale & |
locale = std::locale() |
|
) |
| |
|
inline |
Convert wstring to cstring.
'?' is a default character
- Parameters
-
stringView | - wchar_t string view |
locale | - locale to use |
- Return values
-
Definition at line 62 of file string_converters.h.
◆ to_string() [1/2]
string qx::to_string |
( |
cstring_view |
stringView, |
|
|
const std::locale & |
locale = std::locale() |
|
) |
| |
|
inline |
Convert a char string to common string type.
- Parameters
-
stringView | - char string |
locale | - locale to use |
- Return values
-
Definition at line 89 of file string_converters.h.
◆ to_string() [2/2]
string qx::to_string |
( |
wstring_view |
stringView, |
|
|
const std::locale & |
locale = std::locale() |
|
) |
| |
|
inline |
Convert a wchar_t string to common string type.
- Parameters
-
stringView | - wchar_t string |
locale | - locale to use |
- Return values
-
Definition at line 104 of file string_converters.h.
◆ to_wstring() [1/2]
wstring qx::to_wstring |
( |
cstring_view |
stringView, |
|
|
const std::locale & |
locale = std::locale() |
|
) |
| |
|
inline |
convert cstring to wstring
- Parameters
-
stringView | - char string view |
locale | - locale to use |
- Return values
-
Definition at line 31 of file string_converters.h.
◆ to_wstring() [2/2]
wstring qx::to_wstring |
( |
wstring_view |
stringView, |
|
|
const std::locale & |
locale = std::locale() |
|
) |
| |
|
inline |
Convert wstring to wstring (stub)
- Parameters
-
stringView | - wchar_t string view |
locale | - locale to use |
- Return values
-
Definition at line 50 of file string_converters.h.
◆ utf8_to_string()
string qx::utf8_to_string |
( |
cstring_view |
pszUtf8 | ) |
|
|
inline |
Convert const char* representing UTF8 to wstring.
- Parameters
-
- Return values
-
Definition at line 118 of file string_converters.h.