utility::string namespace

utility namespace to deal with psl::string operations.

functions

to_hex<…>
transforms the input value to a psl::string8_t containing the hex characters.
public
from_hex<…>
cast the input string containing a hex value, to the given type
public
to_upper
convert the given input string to capital letters (if possible).
public
to_upper
convert the given input string to capital letters (if possible).
public
to_lower
convert the given input string to lowercase letters (if possible).
public
to_lower
convert the given input string to lowercase letters (if possible).
public

Function documentation

template<typename T>
psl::string8_t utility::string::to_hex(const T& value)

Brief

transforms the input value to a psl::string8_t containing the hex characters.

Parameters
value in the value to transform
Returns a string containing the hex value.

template<typename T>
T utility::string::from_hex(const psl::string8_t& str)

Brief

cast the input string containing a hex value, to the given type

Template parameters
T the type to convert the output to.
Parameters
str in the string containing the hex value.
Returns an object of type T that has been constructed using the hex value.

psl::string8_t utility::string::to_upper(psl::string8::view str)

Brief

convert the given input string to capital letters (if possible).

Parameters
str in the string to transform.
Returns the transformed string.

psl::string8_t& utility::string::to_upper(psl::string8_t& str)

Brief

convert the given input string to capital letters (if possible).

Parameters
str in the string to transform.
Returns the transformed string.

psl::string8_t utility::string::to_lower(psl::string8::view str)

Brief

convert the given input string to lowercase letters (if possible).

Parameters
str in the string to transform.
Returns the transformed string.

psl::string8_t& utility::string::to_lower(psl::string8_t& str)

Brief

convert the given input string to lowercase letters (if possible).

Parameters
str in the string to transform.
Returns the transformed string.