psl::string16 namespace

UTF-16 class namespace that contains the typedefs for the string objects, as well as helper methods.

functions

to_string8_t
converts a UTF-16 string into a UTF-8 string.
public
from_string8_t
converts a UTF-8 string into a UTF-16 string.
public
from_string8_t
converts a UTF-8 string into a UTF-16 string.
public

Function documentation

psl::string8_t psl::string16::to_string8_t(const psl::string16_t& s)

Brief

converts a UTF-16 string into a UTF-8 string.

Parameters
in UTF-16 encoded string to convert.
Returns a psl::string8_t based on the input UTF-16 string.

psl::string16_t psl::string16::from_string8_t(const psl::string8_t& s)

Brief

converts a UTF-8 string into a UTF-16 string.

Parameters
in UTF-8 encoded string to convert.
Returns a psl::string16_t based on the input UTF-8 string.

psl::string16_t psl::string16::from_string8_t(psl::string8::view s)

Brief

converts a UTF-8 string into a UTF-16 string.

Parameters
in UTF-8 encoded string to convert.
Returns a psl::string16_t based on the input UTF-8 string.