|
CommonLib
|
Functions | |
| template<expr::any_string T_left, expr::any_string T_right> | |
| bool | compare (const T_left &in_left, const T_right &in_right, bool in_case_sensitive=true) |
| template<expr::any_string T_str, expr::any_string T_substr> | |
| bool | contains (const T_str &in_str, const T_substr &in_substr, bool in_case_sensitive=true) |
| template<expr::any_string T_str, typename T_str_char = expr::get_char_type_t<T_str>> | |
| expr::inferred_string_t< T_str > | escape (const T_str &in_str, T_str_char in_search_char, T_str_char in_escape_char=T_str_char('\\')) |
| template<expr::any_string T> | |
| expr::inferred_string_t< T > | format (const T in_str,...) |
| template<expr::any_string T> | |
| size_t | get_width (const T &in_str) |
| template<expr::any_string T_str, expr::any_string T_url, typename T_result = expr::pi_string_t<T_str, T_url>> | |
| T_result | hyperlink (const T_str &in_str, const T_url &in_url) |
| template<expr::any_string T> | |
| bool | is_null_or_empty (const T &in_str) |
| template<expr::any_string T> | |
| bool | is_null_or_whitespace (const T &in_str) |
| template<expr::any_string T_delimiter, expr::any_string T_strings> | |
| expr::inferred_string_t< T_strings > | join (const T_delimiter &in_delimiter, const std::vector< T_strings > &in_strings) |
| template<expr::any_string T_delimiter, expr::any_string... T_args, typename T_result = expr::pi_string_t<T_delimiter, T_args...>> | |
| T_result | join (const T_delimiter &in_delimiter, const T_args &... in_args) |
| template<expr::any_string T_str, expr::any_string T_pad_str, typename T_result = expr::pi_string_t<T_str, T_pad_str>> | |
| T_result | pad (const T_str &in_str, const T_pad_str &in_pad_str) |
| template<typename T_result, expr::any_string T_str> | |
| T_result | parse (const T_str &in_str) |
| template<expr::any_string T_str> | |
| expr::inferred_string_t< T_str > | remove_xml_tags (const T_str &in_str) |
| template<expr::any_string T_str, expr::any_string T_delimiter, typename T_result = expr::pi_string_t<T_str, T_delimiter>> | |
| std::vector< T_result > | split (const T_str &in_str, const T_delimiter &in_delimiter) |
| template<expr::any_string T> | |
| expr::inferred_string_t< T > | lower (const T &in_str) |
| template<expr::any_string T> | |
| expr::inferred_string_t< T > | upper (const T &in_str) |
| template<expr::any_string T_str, typename T_trim_chars = expr::get_char_type_t<T_str>> | |
| expr::inferred_string_t< T_str > | trim_start (const T_str &in_str, std::optional< std::vector< T_trim_chars > > in_trim_chars={}) |
| template<expr::any_string T_str, typename T_trim_chars = expr::get_char_type_t<T_str>> | |
| expr::inferred_string_t< T_str > | trim_end (const T_str &in_str, std::optional< std::vector< T_trim_chars > > in_trim_chars={}) |
| template<expr::any_string T_str, typename T_trim_chars = expr::get_char_type_t<T_str>> | |
| expr::inferred_string_t< T_str > | trim (const T_str &in_str, std::optional< std::vector< T_trim_chars > > in_trim_chars={}) |
| template<expr::any_string T> | |
| expr::inferred_string_t< T > | truncate (const T &in_str, size_t in_max_length, bool in_truncate_end=true, bool in_ellipsis=true) |
| template<expr::basic_string T_result, typename T_value> | |
| T_result | hex (T_value in_value, size_t in_max_length=sizeof(size_t) *2, bool in_prefix=true) |
| template<typename T_result, expr::any_string T_str> | |
| bool | try_parse (const T_str &in_str, T_result &out_result) |
| template<expr::any_string T_str> | |
| expr::inferred_string_t< T_str > | wrap (const T_str &in_str, size_t in_max_width) |
|
inline |
Compares two strings.
| T_left | The left string type. |
| T_right | The right string type. |
| in_left | The first string. |
| in_right | The second string. |
| in_case_sensitive | Determines whether the comparison should be case sensitive. |
|
inline |
Checks if a string contains a substring.
| T_str | The input string type. |
| T_substr | The substring type. |
| in_str | The string to check. |
| in_substr | The substring to search for. |
| in_case_sensitive | Determines whether the search should be case sensitive. |
|
inline |
Escapes all instances of a character in a string with an escape sequence.
| T_str | The input string type. |
| T_str_char | The search and escape character type inferred from the input string type. |
| in_str | The string to escape. |
| in_search_char | The character to search for and escape. |
| in_escape_char | The character to escape with. |
|
inline |
Formats a string.
| T_str | The input string type. |
| in_str | The string to format. |
|
inline |
Gets the width of a string.
| T_str | The input string type. |
| in_str | The string to search. |
|
inline |
Transforms a value into a hexadecimal string.
| T_result | The output string type. |
| T_value | The input value type. |
| in_value | The value to transform. |
| in_max_length | The maximum number of leading zeroes to display. |
| in_prefix | Determines whether to use the "0x" prefix. |
|
inline |
Formats a string to have a HTML hyperlink.
| T_str | The input string type. |
| T_url | The URL string type. |
| T_result | The output string type inferred from the precedent input strings. |
| in_str | The string to display. |
| in_url | The URL to use. |
|
inline |
Checks if a string of any type is null or empty.
| T_str | The input string type. |
| in_str | The string to check. |
|
inline |
Checks if a string of any type is null, empty, or consists only of white-space characters.
| T_str | The input string type. |
| in_str | The string to check. |
|
inline |
Joins a collection of strings together using a delimiter.
| T_delimiter | The delimiter string type. |
| T_strings | The collection string type. |
| in_delimiter | The delimiter to join the strings with. |
| in_strings | The strings to join. |
|
inline |
Joins a collection of strings together using a delimiter.
| T_delimiter | The delimiter string type. |
| T_args | The string types. |
| T_result | The output string type inferred from the precedent input strings. |
| in_delimiter | The delimiter to join the strings with. |
| in_args | The strings to join. |
|
inline |
Transforms a string to lowercase.
| T_str | The input string type. |
| in_str | The string to transform to lowercase. |
|
inline |
Pads a string with another.
| T_str | The input string type. |
| T_pad_str | The pad string type. |
| T_result | The output string type inferred from the precedent input strings. |
| in_str | The string to pad. |
| in_pad_str | The string to pad with. |
|
inline |
Parses a value from a string.
| T_result | The value type to parse. |
| T_str | The input string type. |
| in_str | The string to parse. |
|
inline |
Removes XML tags from a string.
| T_str | The input string type. |
| in_str | The string to omit XML tags from. |
|
inline |
Splits a string into a collection using a delimiter.
| T_str | The input string type. |
| T_delimiter | The delimiter string type. |
| T_result | The output string type inferred from the precedent input strings. |
| in_str | The string to split. |
| in_delimiter | The delimiter to split the string with. |
|
inline |
Removes all leading and trailing occurrences of a set of characters from the input string.
| T_str | The input string type. |
| T_trim_chars | The trim character type inferred from the input string type. |
| in_str | The string to trim. |
| in_trim_chars | The characters to trim off. |
|
inline |
Removes all trailing occurrences of a set of characters from the input string.
| T_str | The input string type. |
| T_trim_chars | The trim character type inferred from the input string type. |
| in_str | The string to trim. |
| in_trim_chars | The characters to trim off. |
|
inline |
Removes all leading occurrences of a set of characters from the input string.
| T_str | The input string type. |
| T_trim_chars | The trim character type inferred from the input string type. |
| in_str | The string to trim. |
| in_trim_chars | The characters to trim off. |
|
inline |
Truncates a string.
| T_str | The input string type. |
| in_str | The string to truncate. |
| in_max_length | The maximum length to truncate to. |
| in_truncate_end | Determines whether to truncate the end of the string, rather than the beginning. |
| in_ellipsis | Determines whether to add an ellipsis to the truncated side of the string. |
|
inline |
Tries to parse a value from a string.
| T_result | The value type to parse. |
| T_str | The input string type. |
| in_str | The string to parse. |
| out_result | The output value to set. |
|
inline |
Transforms a string to uppercase.
| T_str | The input string type. |
| in_str | The string to transform to uppercase. |
|
inline |
Wraps a string to a fixed character length on each line.
| T_str | The input string type. |
| in_str | The string to wrap. |
| in_max_width | The maximum width of each line. |