The simplest immutable non-owning string class. More...
#include <sstring.h>
Public Member Functions | |
| template<typename T, size_t N = const_lit_for<K, T>::Count> | |
| constexpr | simple_str (T &&v) noexcept |
| Constructor from a string literal. | |
| constexpr | simple_str (const K *p, size_t l) noexcept |
| Constructor from pointer and length. | |
|
template<typename S> requires (std::is_same_v<S, std::string&> || std::is_same_v<S, const std::string&> || std::is_same_v<S, std::string_view&> || std::is_same_v<S, const std::string_view&>) | |
| constexpr | simple_str (S &&s) noexcept |
| Constructor that allows you to initialize std::string and std::string_view objects provided that they are lvalue, that is, not temporary. | |
| constexpr size_t | length () const noexcept |
| Get the length of the string. | |
| constexpr const symb_type * | symbols () const noexcept |
| Get a pointer to a constant buffer containing string characters. | |
| constexpr bool | is_empty () const noexcept |
| Check if a string is empty. | |
| bool | is_same (simple_str< K > other) const noexcept |
| Check if two objects point to the same string. | |
| bool | is_part_of (simple_str< K > other) const noexcept |
| Check if a string is part of another string. | |
| K | operator[] (size_t idx) const |
| Get the character from the specified position. Bounds checking is not performed. | |
| my_type & | remove_prefix (size_t delta) |
| Shifts the start of a line by the specified number of characters. | |
| my_type & | remove_suffix (size_t delta) |
| Shortens the string by the specified number of characters. | |
| constexpr K * | place (K *ptr) const noexcept |
| Copy the string to the specified buffer. | |
| void | copy_to (K *buffer, size_t bufSize) |
| Copy the string to the specified buffer. | |
| size_t | size () const |
| The size of the string in characters. | |
| constexpr | operator str_piece () const noexcept |
| Convert itself to a "string chunk" that includes the entire string. | |
| str_piece | to_str () const noexcept |
| Convert itself to a "string chunk" that includes the entire string. | |
| std::basic_string_view< K > | to_sv () const noexcept |
| Convert to std::string_view. | |
| std::basic_string< K > | to_string () const noexcept |
| Convert to std::string. | |
| constexpr str_piece | operator() (ptrdiff_t from, ptrdiff_t len=0) const noexcept |
| Get part of a string as "simple_str". | |
| constexpr str_piece | mid (size_t from, size_t len=-1) const noexcept |
| Get part of a string as "string chunk". | |
| constexpr str_piece | from_to (size_t from, size_t to) const noexcept |
| Get the substring simple_str from position from to position to (not including it). | |
| bool | operator! () const noexcept |
| Check for emptiness. | |
| K | at (ptrdiff_t idx) const |
| Get the character at the given position. | |
| constexpr int | compare (str_piece o) const |
| Compare strings character by character. | |
| constexpr int | strcmp (const K *text) const |
| Compare with C-string character by character. | |
| constexpr bool | equal (str_piece other) const noexcept |
| String comparison for equality. | |
| constexpr bool | operator== (const base &other) const noexcept |
| Operator comparing strings for equality. | |
| bool | operator== (T &&other) const noexcept |
| Operator for comparing a string and a string literal for equality. | |
| constexpr auto | operator<=> (const base &other) const noexcept |
| String comparison operator. | |
| auto | operator<=> (T &&other) const noexcept |
| Comparison operator between a string and a string literal. | |
| int | compare_ia (str_piece text) const noexcept |
| Compare strings character by character and not case sensitive ASCII characters. | |
| bool | equal_ia (str_piece text) const noexcept |
| Whether a string is equal to another string, character-by-character-insensitive, of ASCII characters. | |
| bool | less_ia (str_piece text) const noexcept |
| Whether a string is smaller than another string, character-by-character-insensitive, ASCII characters. | |
| int | compare_iu (str_piece text) const noexcept |
| Compare strings character by character without taking into account the case of Unicode characters of the first plane (<0xFFFF). | |
| bool | equal_iu (str_piece text) const noexcept |
| Whether a string is equal to another string, character-by-character-insensitive, of the Unicode characters of the first plane (<0xFFFF). | |
| bool | less_iu (str_piece text) const noexcept |
| Whether a string is smaller than another string, character-by-character-insensitive, of the Unicode characters of the first plane (<0xFFFF). | |
| size_t | find (str_piece pattern, size_t offset=0) const noexcept |
| Find the beginning of the first occurrence of a substring in this string. | |
| size_t | find (K s, size_t offset=0) const noexcept |
| Find a character in this string. | |
| size_t | find_or_throw (str_piece pattern, size_t offset=0, Args &&... args) const noexcept |
| Find the beginning of the first occurrence of a substring in this string or throw an exception. | |
| size_t | find_end (str_piece pattern, size_t offset=0) const noexcept |
| Find the end of the occurrence of a substring in this string. | |
| size_t | find_or_all (str_piece pattern, size_t offset=0) const noexcept |
| Find the beginning of the first occurrence of a substring in this string or the end of the string. | |
| size_t | find_or_all (K s, size_t offset=0) const noexcept |
| Find a character in this string or the end of a string. | |
| size_t | find_end_or_all (str_piece pattern, size_t offset=0) const noexcept |
| Find the end of the first occurrence of a substring in this string, or the end of a string. | |
| size_t | find_last (str_piece pattern, size_t offset=-1) const noexcept |
| Find the beginning of the last occurrence of a substring in this string. | |
| size_t | find_last (K s, size_t offset=-1) const noexcept |
| Find the last occurrence of a character in this string. | |
| size_t | find_end_of_last (str_piece pattern, size_t offset=-1) const noexcept |
| Find the end of the last occurrence of a substring in this string. | |
| size_t | find_last_or_all (str_piece pattern, size_t offset=-1) const noexcept |
| Find the beginning of the last occurrence of a substring in this string or the end of the string. | |
| size_t | find_end_of_last_or_all (str_piece pattern, size_t offset=-1) const noexcept |
| Find the end of the last occurrence of a substring in this string, or the end of a string. | |
| bool | contains (str_piece pattern, size_t offset=0) const noexcept |
| Whether the string contains the specified substring. | |
| void | for_all_finded (const Op &op, str_piece pattern, size_t offset=0, size_t maxCount=0) const |
| Call a functor on all found occurrences of a substring in this string. | |
| std::vector< size_t > | find_all (str_piece pattern, size_t offset=0, size_t maxCount=0) const |
| Find all occurrences of a substring in this string. | |
| size_t | find_first_of (str_piece pattern, size_t offset=0) const noexcept |
| Find the first occurrence of a character from a given character set. | |
| std::pair< size_t, size_t > | find_first_of_idx (str_piece pattern, size_t offset=0) const noexcept |
| Find the first occurrence of a character from a given character set. | |
| size_t | find_first_not_of (str_piece pattern, size_t offset=0) const noexcept |
| Find the first occurrence of a character not from the given character set. | |
| size_t | find_last_of (str_piece pattern, size_t offset=str::npos) const noexcept |
| Find the last occurrence of a character from a given character set. | |
| std::pair< size_t, size_t > | find_last_of_idx (str_piece pattern, size_t offset=str::npos) const noexcept |
| Find the last occurrence of a character from a given character set. | |
| size_t | find_last_not_of (str_piece pattern, size_t offset=str::npos) const noexcept |
| Find the last occurrence of a character not from the given character set. | |
| my_type | substr (ptrdiff_t from, ptrdiff_t len=0) const |
| Get a substring. Works similarly to operator(), only the result is the same type as the method applied to. | |
| my_type | str_mid (size_t from, size_t len=-1) const |
| Get part of a string with an object of the same type to which the method is applied, similar to mid. | |
| T | as_int () const noexcept |
| Convert a string to a number of the given type. | |
| convert_result< T > | to_int () const noexcept |
| Convert a string to a number of the given type. | |
| std::optional< double > | to_double () const noexcept |
| Convert string to double. | |
| std::optional< double > | to_double_hex () const noexcept |
| Convert string in hex form to double. | |
| void | as_number (T &t) const |
| Convert a string to an integer. | |
| void | as_number (double &t) const |
| Convert string to double. | |
| T | splitf (str_piece delimeter, const Op &beforeFunc, size_t offset=0) const |
| Split a string into parts at a given delimiter, possibly applying a functor to each substring. | |
| T | split (str_piece delimeter, size_t offset=0) const |
| Split a string into substrings using a given delimiter. | |
| Splitter< K > | splitter (str_piece delimeter) const |
Retrieve a Splitter object by the given splitter, which allows sequential get substrings using the next() method while is_done() is false. | |
| constexpr bool | starts_with (str_piece prefix) const noexcept |
| Whether the string begins with the given substring. | |
| constexpr bool | starts_with_ia (str_piece prefix) const noexcept |
| Whether the string begins with the given substring in a case-insensitive ASCII character. | |
| bool | starts_with_iu (str_piece prefix) const noexcept |
| Whether the string starts with the given substring, case-insensitive Unicode characters of the first plane (<0xFFFF). | |
| constexpr bool | prefix_in (str_piece text) const noexcept |
| Whether this string is the beginning of another string. | |
| constexpr bool | ends_with (str_piece suffix) const noexcept |
| Whether the string ends with the specified substring. | |
| constexpr bool | ends_with_ia (str_piece suffix) const noexcept |
| Whether the string ends with the specified substring in a case-insensitive ASCII character. | |
| constexpr bool | ends_with_iu (str_piece suffix) const noexcept |
| Whether the string ends with the specified substring, case-insensitive Unicode characters of the first plane (<0xFFFF). | |
| bool | is_ascii () const noexcept |
| Whether the string contains only ASCII characters. | |
| R | uppered_only_ascii () const |
| Get a copy of the string in uppercase ASCII characters. | |
| R | lowered_only_ascii () const |
| Get a copy of the string in lowercase ASCII characters. | |
| R | uppered () const |
| Get a copy of the string in upper case Unicode characters of the first plane (<0xFFFF). | |
| R | lowered () const |
| Get a copy of the string in lowercase Unicode characters of the first plane (<0xFFFF). | |
| R | replaced (str_piece pattern, str_piece repl, size_t offset=0, size_t maxCount=0) const |
| Get a copy of the string with occurrences of substrings replaced. | |
| expr_replaces< K, N - 1, L - 1 > | replace_init (T &&pattern, M &&repl) const |
| Get a string expression that produces a string with replaced substrings given by string literals. | |
| R | trimmed () const |
| Get a string with whitespace removed on the left and right. | |
| R | trimmed (T &&pattern) const |
| Get a string with the characters specified by the string literal removed from the left and right. | |
| R | trimmed (str_piece pattern) const |
| Get a string with characters specified by another string removed, left and right. | |
| R | trimmed_left () const |
| Get a string with whitespace removed on the left. | |
| R | trimmed_left (T &&pattern) const |
| Get a string with the characters specified by the string literal removed from the left. | |
| R | trimmed_left (str_piece pattern) const |
| Get a string with characters specified by another string removed from the left. | |
| R | trimmed_right () const |
| Get a string with whitespace removed on the right. | |
| R | trimmed_right (T &&pattern) const |
| Get a string with the characters specified by the string literal removed from the right. | |
| R | trimmed_right (str_piece pattern) const |
| Get a string with characters specified by another string removed to the right. | |
| R | trimmed_with_spaces (T &&pattern) const |
| Get a string with the characters specified by the string literal removed, as well as whitespace characters, left and right. | |
| R | trimmed_with_spaces (str_piece pattern) const |
| Get a string, removing characters specified by another string, as well as whitespace characters, left and right. | |
| R | trimmed_left_with_spaces (T &&pattern) const |
| Get a string with the characters specified by the string literal removed, as well as whitespace characters, left. | |
| R | trimmed_left_with_spaces (str_piece pattern) const |
| Get a string, removing characters specified by another string, as well as whitespace characters, left. | |
| R | trimmed_right_with_spaces (T &&pattern) const |
| Get a string with the characters specified by the string literal removed, as well as whitespace characters, right. | |
| R | trimmed_right_with_spaces (str_piece pattern) const |
| Get a string, removing characters specified by another string, as well as whitespace characters, right. | |
The simplest immutable non-owning string class.
Similar to std::string_view. Contains only a pointer and a length. As a descendant of str_algs, it supports all constant string methods.
| K | - the character type of the string. |
|
inlinenoexceptinherited |
Convert a string to a number of the given type.
| T | - the desired number type. |
| CheckOverflow | - check for overflow. |
| Base | - the base of the number, from -1 to 36, except 1.
|
| SkipWs | - skip whitespace characters at the beginning of the line. |
| AllowSign | - whether the '+' sign is allowed before a number. |
|
inlineinherited |
Convert string to double.
| t | - the variable into which the result is written. |
|
inlineinherited |
Convert a string to an integer.
| T | - number type, inferred from the argument. |
| t | - the variable into which the result is written. |
|
inlineinherited |
Get the character at the given position.
| idx | - symbol index. For negative values, it is counted from the end of the line. |
Does not check for line boundaries.
|
inlineconstexprinherited |
Compare strings character by character.
| o | - another line. |
|
inlinenoexceptinherited |
Compare strings character by character and not case sensitive ASCII characters.
| text | - another line. |
|
inlinenoexceptinherited |
Compare strings character by character without taking into account the case of Unicode characters of the first plane (<0xFFFF).
| text | - another line. |
|
inlinenoexceptinherited |
Whether the string contains the specified substring.
| pattern | - the search string. |
| offset | - from which position to start the search. |
|
inlineinherited |
Copy the string to the specified buffer.
The method adds \0 after the copied characters. Does not exceed buffer boundaries.
| buffer | - pointer to buffer |
| bufSize | - buffer size in characters. |
|
inlineconstexprnoexceptinherited |
Whether the string ends with the specified substring.
| suffix | - substring. |
|
inlineconstexprnoexceptinherited |
Whether the string ends with the specified substring in a case-insensitive ASCII character.
| suffix | - substring. |
|
inlineconstexprnoexceptinherited |
Whether the string ends with the specified substring, case-insensitive Unicode characters of the first plane (<0xFFFF).
| suffix | - substring. |
|
inlineconstexprnoexceptinherited |
String comparison for equality.
| other | - another line. |
|
inlinenoexceptinherited |
Whether a string is equal to another string, character-by-character-insensitive, of ASCII characters.
| text | - another line. |
|
inlinenoexceptinherited |
Whether a string is equal to another string, character-by-character-insensitive, of the Unicode characters of the first plane (<0xFFFF).
| text | - another line. |
|
inlinenoexceptinherited |
Find a character in this string.
| s | is an optional character. |
| offset | - from which position to start the search. |
|
inlinenoexceptinherited |
Find the beginning of the first occurrence of a substring in this string.
| pattern | - the search string. |
| offset | - from which position to start the search. |
|
inlineinherited |
Find all occurrences of a substring in this string.
| pattern | - the substring to search for. |
| offset | - search start position. |
| maxCount | - the maximum number of occurrences to be processed, 0 - no restrictions. |
|
inlinenoexceptinherited |
Find the end of the occurrence of a substring in this string.
| pattern | - the search string. |
| offset | - from which position to start the search. |
|
inlinenoexceptinherited |
Find the end of the last occurrence of a substring in this string.
| pattern | - the search string. |
| offset | - from which position to search in the opposite direction, -1 - from the very end. |
|
inlinenoexceptinherited |
Find the end of the last occurrence of a substring in this string, or the end of a string.
| pattern | - the search string. |
| offset | - from which position to search in the opposite direction, -1 - from the very end. |
|
inlinenoexceptinherited |
Find the end of the first occurrence of a substring in this string, or the end of a string.
| pattern | - the search string. |
| offset | - from which position to start the search. |
|
inlinenoexceptinherited |
Find the first occurrence of a character not from the given character set.
| pattern | - a string specifying the character set. |
| offset | - search start position. |
|
inlinenoexceptinherited |
Find the first occurrence of a character from a given character set.
| pattern | - a string specifying the set of characters to search for. |
| offset | - search start position. |
|
inlinenoexceptinherited |
Find the first occurrence of a character from a given character set.
| pattern | - a string specifying the set of characters to search for. |
| offset | - search start position. |
|
inlinenoexceptinherited |
Find the last occurrence of a character in this string.
| s | is an optional character. |
| offset | - from which position to search in the opposite direction, -1 - from the very end. |
|
inlinenoexceptinherited |
Find the beginning of the last occurrence of a substring in this string.
| pattern | - the search string. |
| offset | - from which position to search in the opposite direction, -1 - from the very end. |
|
inlinenoexceptinherited |
Find the last occurrence of a character not from the given character set.
| pattern | - a string specifying the character set. |
| offset | - search start position. |
|
inlinenoexceptinherited |
Find the last occurrence of a character from a given character set.
| pattern | - a string specifying the set of characters to search for. |
| offset | - search start position. |
|
inlinenoexceptinherited |
Find the last occurrence of a character from a given character set.
| pattern | - a string specifying the set of characters to search for. |
| offset | - search start position. |
|
inlinenoexceptinherited |
Find the beginning of the last occurrence of a substring in this string or the end of the string.
| pattern | - the search string. |
| offset | - from which position to search in the opposite direction, -1 - from the very end. |
|
inlinenoexceptinherited |
Find a character in this string or the end of a string.
| s | is an optional character. |
| offset | - from which position to start the search. |
|
inlinenoexceptinherited |
Find the beginning of the first occurrence of a substring in this string or the end of the string.
| pattern | - the search string. |
| offset | - from which position to start the search. |
|
inlinenoexceptinherited |
Find the beginning of the first occurrence of a substring in this string or throw an exception.
| Exc | - exception type. |
| Args... | - types of parameters for constructing an exception, inferred from the arguments. |
| pattern | - the search string. |
| offset | - from which position to start the search. |
| args | - arguments for the exception constructor. |
|
inlineinherited |
Call a functor on all found occurrences of a substring in this string.
| op | is a functor that takes a string. |
| pattern | - the substring to search for. |
| offset | - search start position. |
| maxCount | - the maximum number of occurrences to be processed, 0 - no restrictions. |
|
inlineconstexprnoexceptinherited |
Get the substring simple_str from position from to position to (not including it).
For performance reasons, the method does not check for line boundaries in any way, use in scenarios when you know for sure that these are positions inside the line and to >= from.
| from | - starting position. |
| to | - final position (not included in the result). |
|
inlinenoexcept |
Check if a string is part of another string.
| other | - another string. |
|
inlinenoexcept |
Check if two objects point to the same string.
| other | - another string. |
|
inlinenoexceptinherited |
Whether a string is smaller than another string, character-by-character-insensitive, ASCII characters.
| text | - another line. |
|
inlinenoexceptinherited |
Whether a string is smaller than another string, character-by-character-insensitive, of the Unicode characters of the first plane (<0xFFFF).
| text | - another line. |
|
inlineinherited |
Get a copy of the string in lowercase Unicode characters of the first plane (<0xFFFF).
| R | - the desired string type, by default the same whose method was called. |
|
inlineinherited |
Get a copy of the string in lowercase ASCII characters.
| R | - the desired string type, by default the same whose method was called. |
|
inlineconstexprnoexceptinherited |
Get part of a string as "string chunk".
| from | - number of characters from the beginning of the line. If the string size is exceeded, it will return an empty string. |
| len | - the number of characters in the resulting "chunk". When going beyond the line, it will return everything up to the end of the line. |
|
inlineconstexprnoexceptinherited |
Convert itself to a "string chunk" that includes the entire string.
|
inlineconstexprnoexceptinherited |
Get part of a string as "simple_str".
| from | - number of characters from the beginning of the line. |
| len | - the number of characters in the resulting "chunk". |
If from is less than zero, then -from characters are counted from the end of the line towards the beginning. If len is less than or equal to zero, then count -len characters from the end of the line
|
inlineconstexprnoexceptinherited |
String comparison operator.
| other | - another line. |
|
inlinenoexceptinherited |
Comparison operator between a string and a string literal.
| other | is a string literal. |
|
inlineconstexprnoexceptinherited |
Operator comparing strings for equality.
| other | - another line. |
|
inlinenoexceptinherited |
Operator for comparing a string and a string literal for equality.
| other | - string literal. |
|
inline |
Get the character from the specified position. Bounds checking is not performed.
| idx | - position of the symbol. |
|
inlineconstexprnoexceptinherited |
Copy the string to the specified buffer.
The method assumes that the size of the allocated buffer is sufficient for the entire line, i.e. length() was previously requested. Does not add \0.
| ptr | - pointer to the buffer. |
|
inlineconstexprnoexceptinherited |
Whether this string is the beginning of another string.
| text | - another string. |
|
inline |
Shifts the start of a line by the specified number of characters.
| delta | - number of characters. |
|
inline |
Shortens the string by the specified number of characters.
| delta | - number of characters. |
|
inlineinherited |
Get a string expression that produces a string with replaced substrings given by string literals.
| pattern | - string literal, substring to be changed. |
| repl | - string literal, substring to change to. |
|
inlineinherited |
Get a copy of the string with occurrences of substrings replaced.
| R | - the desired string type, by default the same whose method was called. |
| pattern | - the substring to search for. |
| repl | - the string to replace with. |
| offset | - starting position of the search. |
| maxCount | - maximum number of replacements, 0 - no restrictions. |
|
inlineinherited |
The size of the string in characters.
|
inlineinherited |
Split a string into substrings using a given delimiter.
| T | - container type for the result. |
| delimeter | - delimiter. |
| offset | - the position to start searching for the separator. |
|
inlineinherited |
Split a string into parts at a given delimiter, possibly applying a functor to each substring.
| T | - type of container for folding substrings. |
| delimeter | - substring delimiter. |
| beforeFunc | - a functor to apply to the found substrings, before placing them in the result. |
| offset | - the position to start searching for the separator. |
For each substring found, if the functor can accept it, the functor is called, and the substring is assigned to the result of the functor. Next, the substring tries to be added to the result, calling one of its methods - emplace_back, push_back, operator[]. If none of this method no, nothing is done, just calling the functor. operator[] tries to apply if the result can have a size via std::size and we do not exceed this size. At the same time, if the found substring turns out to match the entire string, the result is attempted place not a substring, but the entire string object, which allows, for example, to effectively copy sstring.
|
inherited |
Retrieve a Splitter object by the given splitter, which allows sequential get substrings using the next() method while is_done() is false.
| delimeter | - delimiter. |
|
inlineconstexprnoexceptinherited |
Whether the string begins with the given substring.
| prefix | - substring. |
|
inlineconstexprnoexceptinherited |
Whether the string begins with the given substring in a case-insensitive ASCII character.
| prefix | - substring. |
|
inlinenoexceptinherited |
Whether the string starts with the given substring, case-insensitive Unicode characters of the first plane (<0xFFFF).
| prefix | - substring. |
|
inlineinherited |
Get part of a string with an object of the same type to which the method is applied, similar to mid.
| from | - number of characters from the beginning of the line. If the string size is exceeded, it will return an empty string. |
| len | - the number of characters in the resulting "chunk". When going beyond the line, it will return everything up to the end of the line. |
|
inlineconstexprinherited |
Compare with C-string character by character.
| text | - another line. |
|
inlineinherited |
Get a substring. Works similarly to operator(), only the result is the same type as the method applied to.
| from | - number of characters from the beginning of the line. If less than zero, it is counted from the end of the line towards the beginning. |
| len | - the number of characters in the resulting "chunk". If less than or equal to zero, then count len ​​characters from the end of the line. |
|
inlinenoexceptinherited |
Convert string to double.
|
inlinenoexceptinherited |
Convert string in hex form to double.
|
inlinenoexceptinherited |
Convert a string to a number of the given type.
| T | - the desired number type. |
| CheckOverflow | - check for overflow. |
| Base | - the base of the number, from -1 to 36, except 1.
|
| SkipWs | - skip whitespace characters at the beginning of the line. All characters with ASCII codes <= 32 are skipped. |
| AllowSign | - whether the '+' sign is allowed before a number. |
|
inlinenoexceptinherited |
Convert itself to a "string chunk" that includes the entire string.
|
inlinenoexceptinherited |
Convert to std::string.
|
inlinenoexceptinherited |
Convert to std::string_view.
|
inlineinherited |
Get a string with whitespace removed on the left and right.
| R | - desired string type, default simple_str. |
|
inlineinherited |
Get a string with characters specified by another string removed, left and right.
| R | - desired string type, default simple_str. |
| pattern | - a string specifying the characters that will be trimmed. |
|
inlineinherited |
Get a string with the characters specified by the string literal removed from the left and right.
| R | - desired string type, default simple_str. |
| pattern | is a string literal specifying the characters that will be trimmed. |
|
inlineinherited |
Get a string with whitespace removed on the left.
| R | - desired string type, default simple_str. |
|
inlineinherited |
Get a string with characters specified by another string removed from the left.
| R | - desired string type, default simple_str. |
| pattern | - a string specifying the characters that will be trimmed. |
|
inlineinherited |
Get a string with the characters specified by the string literal removed from the left.
| R | - desired string type, default simple_str. |
| pattern | is a string literal specifying the characters that will be trimmed. |
|
inlineinherited |
Get a string, removing characters specified by another string, as well as whitespace characters, left.
| R | - desired string type, default simple_str. |
| pattern | - a string specifying the characters that will be trimmed. |
|
inlineinherited |
Get a string with the characters specified by the string literal removed, as well as whitespace characters, left.
| R | - desired string type, default simple_str. |
| pattern | is a string literal specifying the characters that will be trimmed. |
|
inlineinherited |
Get a string with whitespace removed on the right.
| R | - desired string type, default simple_str. |
|
inlineinherited |
Get a string with characters specified by another string removed to the right.
| R | - desired string type, default simple_str. |
| pattern | - a string specifying the characters that will be trimmed. |
|
inlineinherited |
Get a string with the characters specified by the string literal removed from the right.
| R | - desired string type, default simple_str. |
| pattern | is a string literal specifying the characters that will be trimmed. |
|
inlineinherited |
Get a string, removing characters specified by another string, as well as whitespace characters, right.
| R | - desired string type, default simple_str. |
| pattern | - a string specifying the characters that will be trimmed. |
|
inlineinherited |
Get a string with the characters specified by the string literal removed, as well as whitespace characters, right.
| R | - desired string type, default simple_str. |
| pattern | is a string literal specifying the characters that will be trimmed. |
|
inlineinherited |
Get a string, removing characters specified by another string, as well as whitespace characters, left and right.
| R | - desired string type, default simple_str. |
| pattern | - a string specifying the characters that will be trimmed. |
|
inlineinherited |
Get a string with the characters specified by the string literal removed, as well as whitespace characters, left and right.
| R | - desired string type, default simple_str. |
| pattern | is a string literal specifying the characters that will be trimmed. |
|
inlineinherited |
Get a copy of the string in upper case Unicode characters of the first plane (<0xFFFF).
| R | - the desired string type, by default the same whose method was called. |
|
inlineinherited |
Get a copy of the string in uppercase ASCII characters.
| R | - the desired string type, by default the same whose method was called. |