namespace
string8UTF-8 class namespace that contains the typedefs for the string objects, as well as helper methods.
functions
Function documentation
psl::string16_t psl:: string8:: to_string16_t(const psl::string8_t& s)
Brief
converts a UTF-8 string into a UTF-16 string.
Parameters | |
---|---|
s in | UTF-8 encoded string to convert. |
Returns | a psl::string16_t based on the input UTF-8 string. |
psl::string8_t psl:: string8:: from_string16_t(const psl::string16_t& s)
Brief
converts a UTF-16 string into a UTF-8 string.
Parameters | |
---|---|
s in | UTF-16 encoded string to convert. |
Returns | a psl::string8_t based on the input UTF-16 string. |
psl::string8_t psl:: string8:: from_string16_t(psl::string16::view s)
Brief
converts a UTF-16 string into a UTF-8 string.
Parameters | |
---|---|
s in | UTF-16 encoded string to convert. |
Returns | a psl::string8_t based on the input UTF-16 string. |
psl::string8_t psl:: string8:: from_wstring(const std::wstring& s)
Brief
converts a wstring into a UTF-8 string.
Details
when the wstring is already 8bit, this turns into a no-op.
Parameters | |
---|---|
s in | wstring to convert. |
Returns | a psl::string8_t based on the input wstring. |