xtd - Reference Guide
0.1.2
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
|
#include <ustring.h>
Represents text as a sequence of UTF-8 code units.
Inherits xtd::object, and std::basic_string< char >.
Public Member Functions | |
ustring () noexcept | |
Initializes a new instance of xtd::ustring. | |
ustring (char16_t *str) | |
Initializes a new instance of xtd::ustring with specified string to copy. | |
ustring (char16_t *str, const allocator_type &allocator) | |
Initializes a new instance of xtd::ustring with specified string to copy, and allocator. | |
ustring (char32_t *str) | |
Initializes a new instance of xtd::ustring with specified string to copy. | |
ustring (char32_t *str, const allocator_type &allocator) | |
Initializes a new instance of xtd::ustring with specified string to copy, and allocator. | |
ustring (char8_t *str) | |
Initializes a new instance of xtd::ustring with specified string to copy. | |
ustring (char8_t *str, const allocator_type &allocator) | |
Initializes a new instance of xtd::ustring with specified string to copy, and allocator. | |
ustring (const allocator_type &allocator) noexcept | |
Initializes a new instance of xtd::ustring with specified allocator. | |
ustring (const char16_t *str) | |
Initializes a new instance of xtd::ustring with specified string to copy. | |
ustring (const char16_t *str, const allocator_type &allocator) | |
Initializes a new instance of xtd::ustring with specified string to copy, and allocator. | |
ustring (const char32_t *str) | |
Initializes a new instance of xtd::ustring with specified string to copy. | |
ustring (const char32_t *str, const allocator_type &allocator) | |
Initializes a new instance of xtd::ustring with specified string to copy, and allocator. | |
ustring (const char8_t *str) | |
Initializes a new instance of xtd::ustring with specified string to copy. | |
ustring (const char8_t *str, const allocator_type &allocator) | |
Initializes a new instance of xtd::ustring with specified string to copy, and allocator. | |
ustring (const std::string &str) noexcept | |
Initializes a new instance of xtd::ustring with specified string to copy. | |
ustring (const std::string &str, const allocator_type &allocator) noexcept | |
Initializes a new instance of xtd::ustring with specified string to copy and allocator. | |
ustring (const std::u16string &str) noexcept | |
Initializes a new instance of xtd::ustring with specified string to copy. | |
ustring (const std::u16string &str, const allocator_type &allocator) noexcept | |
Initializes a new instance of xtd::ustring with specified string to copy and allocator. | |
ustring (const std::u32string &str) noexcept | |
Initializes a new instance of xtd::ustring with specified string to copy. | |
ustring (const std::u32string &str, const allocator_type &allocator) noexcept | |
Initializes a new instance of xtd::ustring with specified string to copy and allocator. | |
ustring (const std::u8string &str) noexcept | |
Initializes a new instance of xtd::ustring with specified string to copy. | |
ustring (const std::u8string &str, const allocator_type &allocator) noexcept | |
Initializes a new instance of xtd::ustring with specified string to copy and allocator. | |
ustring (const std::wstring &str) noexcept | |
Initializes a new instance of xtd::ustring with specified string to copy. | |
ustring (const std::wstring &str, const allocator_type &allocator) noexcept | |
Initializes a new instance of xtd::ustring with specified string to copy and allocator. | |
ustring (const ustring &str) noexcept | |
Initializes a new instance of xtd::ustring with specified string to copy. | |
ustring (const ustring &str, const allocator_type &allocator) noexcept | |
Initializes a new instance of xtd::ustring with specified string to copy and allocator. | |
ustring (const ustring &str, size_t index) | |
Initializes a new instance of xtd::ustring with specified substring at index. | |
ustring (const ustring &str, size_t index, const allocator_type &allocator) | |
Initializes a new instance of xtd::ustring with specified substring at index and allocator. | |
ustring (const ustring &str, size_t index, size_t count) | |
Initializes a new instance of xtd::ustring with specified substring at index and count characters. | |
ustring (const ustring &str, size_t index, size_t count, const allocator_type &allocator) | |
Initializes a new instance of xtd::ustring with specified substring at index, count characters and allocator. | |
ustring (const value_type *str) | |
Initializes a new instance of xtd::ustring with specified string to copy. | |
ustring (const value_type *str, const allocator_type &allocator) | |
Initializes a new instance of xtd::ustring with specified string to copy, and allocator. | |
ustring (const value_type *str, size_t count) | |
Initializes a new instance of xtd::ustring with specified substring and count characters. | |
ustring (const value_type *str, size_t count, const allocator_type &allocator) | |
Initializes a new instance of xtd::ustring with specified substring, count characters and allocator. | |
ustring (const wchar_t *str) | |
Initializes a new instance of xtd::ustring with specified string to copy. | |
ustring (const wchar_t *str, const allocator_type &allocator) | |
Initializes a new instance of xtd::ustring with specified string to copy, and allocator. | |
template<typename input_iterator_t > | |
ustring (input_iterator_t first, input_iterator_t last) | |
Initializes a new instance of xtd::ustring with specified first and last iterators of substring. | |
template<typename input_iterator_t > | |
ustring (input_iterator_t first, input_iterator_t last, const allocator_type &allocator) | |
Initializes a new instance of xtd::ustring with specified first and last iterators of substring and allocator. | |
ustring (size_t count, char16_t character) | |
Initializes a new instance of xtd::ustring with specified count copies of character. | |
ustring (size_t count, char16_t character, const allocator_type &allocator) | |
Initializes a new instance of xtd::ustring with specified count copies of character and specified allocator. | |
ustring (size_t count, char32_t character) | |
Initializes a new instance of xtd::ustring with specified count copies of character. | |
ustring (size_t count, char32_t character, const allocator_type &allocator) | |
Initializes a new instance of xtd::ustring with specified count copies of character and specified allocator. | |
ustring (size_t count, char8_t character) | |
Initializes a new instance of xtd::ustring with specified count copies of character. | |
ustring (size_t count, char8_t character, const allocator_type &allocator) | |
Initializes a new instance of xtd::ustring with specified count copies of character and specified allocator. | |
ustring (size_t count, value_type character) | |
Initializes a new instance of xtd::ustring with specified count copies of character. | |
ustring (size_t count, value_type character, const allocator_type &allocator) | |
Initializes a new instance of xtd::ustring with specified count copies of character and specified allocator. | |
ustring (size_t count, wchar_t character) | |
Initializes a new instance of xtd::ustring with specified count copies of character. | |
ustring (size_t count, wchar_t character, const allocator_type &allocator) | |
Initializes a new instance of xtd::ustring with specified count copies of character and specified allocator. | |
ustring (std::initializer_list< char16_t > il) | |
Initializes a new instance of xtd::ustring with specified initializer list. | |
ustring (std::initializer_list< char16_t > il, const allocator_type &allocator) | |
Initializes a new instance of xtd::ustring with specified initializer list and allocator. | |
ustring (std::initializer_list< char32_t > il) | |
Initializes a new instance of xtd::ustring with specified initializer list. | |
ustring (std::initializer_list< char32_t > il, const allocator_type &allocator) | |
Initializes a new instance of xtd::ustring with specified initializer list and allocator. | |
ustring (std::initializer_list< char8_t > il) | |
Initializes a new instance of xtd::ustring with specified initializer list. | |
ustring (std::initializer_list< char8_t > il, const allocator_type &allocator) | |
Initializes a new instance of xtd::ustring with specified initializer list and allocator. | |
ustring (std::initializer_list< value_type > il) | |
Initializes a new instance of xtd::ustring with specified initializer list. | |
ustring (std::initializer_list< value_type > il, const allocator_type &allocator) | |
Initializes a new instance of xtd::ustring with specified initializer list and allocator. | |
ustring (std::initializer_list< wchar_t > il) | |
Initializes a new instance of xtd::ustring with specified initializer list. | |
ustring (std::initializer_list< wchar_t > il, const allocator_type &allocator) | |
Initializes a new instance of xtd::ustring with specified initializer list and allocator. | |
ustring (ustring &&str) noexcept | |
Initializes a new instance of xtd::ustring with specified string to move. | |
ustring (ustring &&str, const allocator_type &allocator) noexcept | |
Initializes a new instance of xtd::ustring with specified string to move and allocator. | |
ustring (value_type *str) | |
Initializes a new instance of xtd::ustring with specified string to copy. | |
ustring (value_type *str, const allocator_type &allocator) | |
Initializes a new instance of xtd::ustring with specified string to copy, and allocator. | |
ustring (wchar_t *str) | |
Initializes a new instance of xtd::ustring with specified string to copy. | |
ustring (wchar_t *str, const allocator_type &allocator) | |
Initializes a new instance of xtd::ustring with specified string to copy, and allocator. | |
bool | contains (const ustring &value) const noexcept |
Returns a value indicating whether a specified substring occurs within this string. | |
bool | ends_with (char8_t value) const noexcept |
Determines whether the end of this string matches the specified character. | |
bool | ends_with (const ustring &value) const noexcept |
Determines whether the end of this string matches the specified string. | |
bool | ends_with (const ustring &value, bool ignore_case) const noexcept |
Determines whether the end of this string instance matches the specified string when compared using the specified culture. | |
bool | ends_with (const ustring &value, xtd::string_comparison comparison_type) const noexcept |
Determines whether the end of this string matches the specified string when compared using the specified comparison option. | |
bool | ends_with (value_type value) const noexcept |
Determines whether the end of this string matches the specified character. | |
size_t | get_hash_code () const noexcept override |
Returns the hash code for this string. | |
size_t | index_of (const ustring &value) const noexcept |
Reports the index of the first occurrence of the specified string in this string. | |
size_t | index_of (const ustring &value, size_t start_index) const noexcept |
Reports the index of the first occurrence of the specified character in this string. The search starts at a specified character position. | |
size_t | index_of (const ustring &value, size_t start_index, size_t count) const noexcept |
Reports the index of the first occurrence of the specified character in this string. The search starts at a specified character position and examines a specified number of character positions. | |
size_t | index_of (value_type value) const noexcept |
Reports the index of the first occurrence of the specified character in this string. | |
size_t | index_of (value_type value, size_t start_index) const noexcept |
Reports the index of the first occurrence of the specified character in this string. The search starts at a specified character position. | |
size_t | index_of (value_type value, size_t start_index, size_t count) const noexcept |
Reports the index of the first occurrence of the specified character in this string. The search starts at a specified character position and examines a specified number of character positions. | |
size_t | index_of_any (const std::vector< value_type > &values) const noexcept |
Reports the index of the first occurrence in this instance of any character in a specified array of characters. | |
size_t | index_of_any (const std::vector< value_type > &values, size_t start_index) const noexcept |
Reports the index of the first occurrence in this instance of any character in a specified array of characters. The search starts at a specified character position. | |
size_t | index_of_any (const std::vector< value_type > &values, size_t start_index, size_t count) const noexcept |
Reports the index of the first occurrence in this instance of any character in a specified array of characters. The search starts at a specified character position. | |
ustring | insert (size_t start_index, const ustring &value) const noexcept |
Inserts a specified instance of string at a specified index position in this instance. | |
bool | is_empty () const noexcept |
Indicates whether this string is an empty string (""). | |
size_t | last_index_of (const ustring &value) const noexcept |
Reports the index of the last occurrence of the specified string in this string. | |
size_t | last_index_of (const ustring &value, size_t start_index) const noexcept |
Reports the index of the last occurrence of the specified character in this string. The search starts at a specified character position. | |
size_t | last_index_of (const ustring &value, size_t start_index, size_t count) const noexcept |
Reports the index of the last occurrence of the specified character in this string. The search starts at a specified character position and examines a specified number of character positions. | |
size_t | last_index_of (value_type value) const noexcept |
Reports the index of the last occurrence of the specified character in this tring. | |
size_t | last_index_of (value_type value, size_t start_index) const noexcept |
Reports the index of the last occurrence of the specified character in this string. The search starts at a specified character position. | |
size_t | last_index_of (value_type value, size_t start_index, size_t count) const noexcept |
Reports the index of the last occurrence of the specified character in this string. The search starts at a specified character position and examines a specified number of character positions. | |
size_t | last_index_of_any (const std::vector< value_type > &values) const noexcept |
Reports the index of the last occurrence in this instance of any character in a specified array of characters. | |
size_t | last_index_of_any (const std::vector< value_type > &values, size_t start_index) const noexcept |
Reports the index of the last occurrence in this instance of any character in a specified array of characters. The search starts at a specified character position. | |
size_t | last_index_of_any (const std::vector< value_type > &values, size_t start_index, size_t count) const noexcept |
Reports the index of the last occurrence in this instance of any character in a specified array of characters. The search starts at a specified character position. | |
ustring | pad_left (size_t total_width) const noexcept |
Right-aligns the characters in this string, padding with spaces on the left for a specified total length. | |
ustring | pad_left (size_t total_width, value_type padding_char) const noexcept |
Right-aligns the characters in this string, padding with spaces on the left for a specified total length. | |
ustring | pad_right (size_t total_width) const noexcept |
Left-aligns the characters in this string, padding with spaces on the right for a specified total length. | |
ustring | pad_right (size_t total_width, value_type padding_char) const noexcept |
Left-aligns the characters in this string, padding with spaces on the right for a specified total length. | |
ustring | remove (size_t start_index) const noexcept |
Deletes all the characters from this string beginning at a specified position and continuing through the last position. | |
ustring | remove (size_t start_index, size_t count) const noexcept |
Deletes all the characters from this string beginning at a specified position and continuing through the last position. | |
ustring | replace (const ustring &old_string, const ustring &new_string) const noexcept |
Replaces all occurrences of a specified string in this string with another specified string. | |
ustring | replace (value_type old_char, value_type new_char) const noexcept |
Replaces all occurrences of a specified char_t in this string with another specified char_t. | |
std::vector< ustring > | split () const noexcept |
Splits this string into substrings that are based on the default white-space characters. White-space characters are defined by the c++ standard and return true if they are passed to the std::isspace() or std::iswspace() method. | |
std::vector< ustring > | split (const std::vector< value_type > &separators) const noexcept |
Splits this string into substrings that are based on the characters in an array. | |
std::vector< ustring > | split (const std::vector< value_type > &separators, size_t count) const noexcept |
Splits this string into a maximum number of substrings based on the characters in an array. You also specify the maximum number of substrings to return. | |
std::vector< ustring > | split (const std::vector< value_type > &separators, size_t count, string_split_options options) const noexcept |
Splits this string into a maximum number of substrings based on the characters in an array. | |
std::vector< ustring > | split (const std::vector< value_type > &separators, string_split_options options) const noexcept |
Splits this string into substrings based on the characters in an array. You can specify whether the substrings include empty array elements. | |
bool | starts_with (const ustring &value) const noexcept |
Determines whether the beginning of this instance of String matches a specified String. | |
bool | starts_with (const ustring &value, bool ignore_case) const noexcept |
Determines whether the beginning of this instance of String matches a specified String, ignoring or honoring their case. | |
bool | starts_with (value_type value) const noexcept |
Determines whether the beginning of this instance of String matches a specified String. | |
bool | starts_with (value_type value, bool ignore_case) const noexcept |
Determines whether the beginning of this instance of String matches a specified String, ignoring or honoring their case. | |
ustring | substring (size_t start_index) const noexcept |
Retrieves a substring from this instance. The substring starts at a specified character position and has a specified length. | |
ustring | substring (size_t start_index, size_t length) const noexcept |
Retrieves a substring from this instance. The substring starts at a specified character position and has a specified length. | |
std::vector< value_type > | to_array () const noexcept |
Copies the characters in this instance to a Unicode character array. | |
std::vector< value_type > | to_array (size_t start_index) const noexcept |
Copies the characters in this instance to a Unicode character array starting at specified index. | |
std::vector< value_type > | to_array (size_t start_index, size_t length) const noexcept |
Copies the characters in this instance to a Unicode character array starting at specified index with specified length. | |
ustring | to_lower () const noexcept |
Returns a copy of the current string converted to lowercase. | |
ustring | to_string () const noexcept override |
Returns a std::string that represents the current object. | |
ustring | to_upper () const noexcept |
Returns a copy of the current string converted to uppercase. | |
ustring | trim () const noexcept |
Removes all leading and trailing occurrences of white-space characters from the specified String. | |
ustring | trim (const std::vector< value_type > &trim_chars) const noexcept |
Removes all leading and trailing occurrences of a set of characters specified in an array from the specified String. | |
ustring | trim (value_type trim_char) const noexcept |
Removes all leading and trailing occurrences of a character specified from the specified String . | |
ustring | trim_end () const noexcept |
Removes all trailing occurrences of white-space characters from the specified String. | |
ustring | trim_end (const std::vector< value_type > &trim_chars) const noexcept |
Removes all trailing occurrences of a set of characters specified in an array from the specified String. | |
ustring | trim_end (value_type trim_char) const noexcept |
Removes all trailing occurrences of a character specified from the specified String . | |
ustring | trim_start () const noexcept |
Removes all leading occurrences of white-space characters from the specified String. | |
ustring | trim_start (const std::vector< value_type > &trim_chars) const noexcept |
Removes all leading occurrences of a set of characters specified in an array from the specified String. | |
ustring | trim_start (value_type trim_char) const noexcept |
Removes all leading occurrences of a character specified from the specified String . | |
Public Member Functions inherited from xtd::object | |
object ()=default | |
Create a new instance of the ultimate base class object. | |
virtual bool | equals (const object &obj) const noexcept |
Determines whether the specified object is equal to the current object. | |
virtual size_t | get_hash_code () const noexcept |
Serves as a hash function for a particular type. | |
template<typename object_t > | |
std::unique_ptr< object_t > | memberwise_clone () const |
Gets the type of the current instance. | |
virtual xtd::ustring | to_string () const noexcept |
Returns a std::string that represents the current object. | |
Static Public Member Functions | |
template<typename object_t > | |
static ustring | class_name () |
Gets the class name of the object_t. | |
template<typename object_t > | |
static ustring | class_name (const object_t &object) |
Gets the class name of the specified object. | |
static ustring | class_name (const std::type_info &info) |
Gets the class name of the specified object. | |
static int | compare (const ustring &str_a, const ustring &str_b) noexcept |
Compares two specified string objects and returns an integer that indicates their relative position in the sort order. | |
static int | compare (const ustring &str_a, const ustring &str_b, bool ignore_case) noexcept |
Compares two specified string objects, ignoring or honoring their case, and returns an integer that indicates their relative position in the sort order. | |
static int | compare (const ustring &str_a, const ustring &str_b, xtd::string_comparison comparison_type) noexcept |
Compares two specified string objects using the specified rules, and returns an integer that indicates their relative position in the sort order. | |
static int | compare (const ustring &str_a, size_t index_a, const ustring &str_b, size_t index_b, size_t length) noexcept |
Compares substrings of two specified string objects and returns an integer that indicates their relative position in the sort order. | |
static int | compare (const ustring &str_a, size_t index_a, const ustring &str_b, size_t index_b, size_t length, bool ignore_case) noexcept |
Compares substrings of two specified string objects, ignoring or honoring their case, and returns an integer that indicates their relative position in the sort order. | |
static int | compare (const ustring &str_a, size_t index_a, const ustring &str_b, size_t index_b, size_t length, xtd::string_comparison comparison_type) noexcept |
Compares substrings of two specified string objects using the specified rules, and returns an integer that indicates their relative position in the sort order. | |
template<typename object_t > | |
static ustring | concat (const std::vector< object_t > &args) noexcept |
Concatenates the string representations of the elements in a specified object array. | |
static ustring | concat (const std::vector< ustring > &values) noexcept |
Concatenates the elements of a specified string array. | |
static ustring | concat (const ustring &str_a, const ustring &str_b) noexcept |
Concatenates two specified instances of string. | |
static ustring | concat (const ustring &str_a, const ustring &str_b, const ustring &str_c) noexcept |
Concatenates three specified instances of string. | |
static ustring | concat (const ustring &str_a, const ustring &str_b, const ustring &str_c, const ustring &str_d) noexcept |
Concatenates four specified instances of string. | |
template<typename object_a_t , typename object_b_t > | |
static ustring | concat (object_a_t obj_a, object_b_t obj_b) noexcept |
Concatenates two specified instances of object. | |
template<typename object_a_t , typename object_b_t , typename object_c_t > | |
static ustring | concat (object_a_t obj_a, object_b_t obj_b, object_c_t obj_c) noexcept |
Concatenates three specified instances of object. | |
template<typename object_a_t , typename object_b_t , typename object_c_t , typename object_d_t > | |
static ustring | concat (object_a_t obj_a, object_b_t obj_b, object_c_t obj_c, object_d_t obj_d) noexcept |
Concatenates four specified instances of object. | |
template<typename value_t > | |
static ustring | concat (value_t value) noexcept |
Creates the string representation of a specified object. | |
static ustring | demangle (const ustring &name) |
Gets demangled string of name,. | |
static ustring | empty_string () noexcept |
Represents the empty string. | |
template<typename ... args_t> | |
static ustring | format (const ustring &fmt, args_t &&... args) |
Writes the text representation of the specified arguments list, to string using the specified format information. | |
template<typename object_t > | |
static ustring | full_class_name () |
Gets the fully qualified class name of the objec_t, including the namespace of the objec_t. | |
template<typename object_t > | |
static ustring | full_class_name (const object_t &object) |
Gets the fully qualified class name of the specified object, including the namespace of the specified object. | |
static ustring | full_class_name (const std::type_info &info) |
Gets the fully qualified class name of the specified object, including the namespace of the specified object. | |
template<typename collection_t > | |
static ustring | join (const ustring &separator, const collection_t &values, size_t index) noexcept |
Concatenates a specified separator string between each element of a specified object array, yielding a single concatenated string. | |
template<typename collection_t > | |
static ustring | join (const ustring &separator, const collection_t &values, size_t index, size_t count) noexcept |
Concatenates a specified separator string between each element of a specified Object array, yielding a single concatenated string. | |
template<typename collection_t > | |
static ustring | join (const ustring separator, const collection_t &values) noexcept |
Concatenates a specified separator string between each element of a specified object array, yielding a single concatenated string. | |
template<typename value_t > | |
static value_t | parse (const ustring &str) |
template<typename ... args_t> | |
static ustring | sprintf (const ustring &fmt, args_t &&... args) noexcept |
Writes the text representation of the specified arguments list, to string using the specified format information. | |
template<typename value_t > | |
static bool | try_parse (const ustring &str, value_t &value) |
Static Public Member Functions inherited from xtd::object | |
static bool | equals (const object &object_a, const object &object_b) noexcept |
Determines whether the specified object instances are considered equal. | |
static bool | reference_equals (const object &object_a, const object &object_b) noexcept |
Determines whether the specified object instances are the same instance. | |
|
noexcept |
Initializes a new instance of xtd::ustring.
|
explicitnoexcept |
Initializes a new instance of xtd::ustring with specified allocator.
allocator | The allocator to use for all memory allocations of this string. |
xtd::ustring::ustring | ( | size_t | count, |
value_type | character | ||
) |
Initializes a new instance of xtd::ustring with specified count copies of character.
str | The string to copy. |
count | The number of copies of character. |
character | The character copied. |
xtd::ustring::ustring | ( | size_t | count, |
value_type | character, | ||
const allocator_type & | allocator | ||
) |
Initializes a new instance of xtd::ustring with specified count copies of character and specified allocator.
str | The string to copy. |
count | The number of copies of character. |
character | The character copied. |
allocator | The allocator to use for all memory allocations of this string. |
xtd::ustring::ustring | ( | size_t | count, |
char8_t | character | ||
) |
Initializes a new instance of xtd::ustring with specified count copies of character.
str | The string to copy. |
count | The number of copies of character. |
character | The character copied. |
xtd::ustring::ustring | ( | size_t | count, |
char8_t | character, | ||
const allocator_type & | allocator | ||
) |
Initializes a new instance of xtd::ustring with specified count copies of character and specified allocator.
str | The string to copy. |
count | The number of copies of character. |
character | The character copied. |
allocator | The allocator to use for all memory allocations of this string. |
xtd::ustring::ustring | ( | size_t | count, |
char16_t | character | ||
) |
Initializes a new instance of xtd::ustring with specified count copies of character.
str | The string to copy. |
count | The number of copies of character. |
character | The character copied. |
xtd::ustring::ustring | ( | size_t | count, |
char16_t | character, | ||
const allocator_type & | allocator | ||
) |
Initializes a new instance of xtd::ustring with specified count copies of character and specified allocator.
str | The string to copy. |
count | The number of copies of character. |
character | The character copied. |
allocator | The allocator to use for all memory allocations of this string. |
xtd::ustring::ustring | ( | size_t | count, |
char32_t | character | ||
) |
Initializes a new instance of xtd::ustring with specified count copies of character.
str | The string to copy. |
count | The number of copies of character. |
character | The character copied. |
xtd::ustring::ustring | ( | size_t | count, |
char32_t | character, | ||
const allocator_type & | allocator | ||
) |
Initializes a new instance of xtd::ustring with specified count copies of character and specified allocator.
str | The string to copy. |
count | The number of copies of character. |
character | The character copied. |
allocator | The allocator to use for all memory allocations of this string. |
xtd::ustring::ustring | ( | size_t | count, |
wchar_t | character | ||
) |
Initializes a new instance of xtd::ustring with specified count copies of character.
str | The string to copy. |
count | The number of copies of character. |
character | The character copied. |
xtd::ustring::ustring | ( | size_t | count, |
wchar_t | character, | ||
const allocator_type & | allocator | ||
) |
Initializes a new instance of xtd::ustring with specified count copies of character and specified allocator.
str | The string to copy. |
count | The number of copies of character. |
character | The character copied. |
allocator | The allocator to use for all memory allocations of this string. |
xtd::ustring::ustring | ( | const ustring & | str, |
size_t | index, | ||
size_t | count | ||
) |
Initializes a new instance of xtd::ustring with specified substring at index and count characters.
str | The string to copy. |
index | The index of the first substring character where start copy. |
count | The number of substring characters to copy. |
xtd::ustring::ustring | ( | const ustring & | str, |
size_t | index, | ||
size_t | count, | ||
const allocator_type & | allocator | ||
) |
Initializes a new instance of xtd::ustring with specified substring at index, count characters and allocator.
str | The string to copy. |
index | The index of the first substring character where start copy. |
count | The number of substring characters to copy. |
allocator | The allocator to use for all memory allocations of this string. |
xtd::ustring::ustring | ( | const ustring & | str, |
size_t | index | ||
) |
Initializes a new instance of xtd::ustring with specified substring at index.
str | The string to copy. |
index | The index of the first substring character where start copy. |
xtd::ustring::ustring | ( | const ustring & | str, |
size_t | index, | ||
const allocator_type & | allocator | ||
) |
Initializes a new instance of xtd::ustring with specified substring at index and allocator.
str | The string to copy. |
index | The index of the first substring character where start copy. |
allocator | The allocator to use for all memory allocations of this string. |
xtd::ustring::ustring | ( | const value_type * | str, |
size_t | count | ||
) |
Initializes a new instance of xtd::ustring with specified substring and count characters.
count | The number of substring characters to copy. |
xtd::ustring::ustring | ( | const value_type * | str, |
size_t | count, | ||
const allocator_type & | allocator | ||
) |
Initializes a new instance of xtd::ustring with specified substring, count characters and allocator.
str | The string to copy. |
count | The number of substring characters to copy. |
allocator | The allocator to use for all memory allocations of this string. |
xtd::ustring::ustring | ( | const value_type * | str | ) |
Initializes a new instance of xtd::ustring with specified string to copy.
xtd::ustring::ustring | ( | const value_type * | str, |
const allocator_type & | allocator | ||
) |
Initializes a new instance of xtd::ustring with specified string to copy, and allocator.
str | The string to copy. |
allocator | The allocator to use for all memory allocations of this string. |
xtd::ustring::ustring | ( | value_type * | str | ) |
Initializes a new instance of xtd::ustring with specified string to copy.
xtd::ustring::ustring | ( | value_type * | str, |
const allocator_type & | allocator | ||
) |
Initializes a new instance of xtd::ustring with specified string to copy, and allocator.
str | The string to copy. |
allocator | The allocator to use for all memory allocations of this string. |
|
noexcept |
Initializes a new instance of xtd::ustring with specified string to copy.
str | The string to copy. |
|
noexcept |
Initializes a new instance of xtd::ustring with specified string to copy and allocator.
str | The string to copy. |
allocator | The allocator to use for all memory allocations of this string. |
|
noexcept |
Initializes a new instance of xtd::ustring with specified string to copy.
str | The string to copy. |
|
noexcept |
Initializes a new instance of xtd::ustring with specified string to copy and allocator.
str | The string to copy. |
allocator | The allocator to use for all memory allocations of this string. |
|
noexcept |
Initializes a new instance of xtd::ustring with specified string to copy.
str | The string to copy. |
|
noexcept |
Initializes a new instance of xtd::ustring with specified string to copy and allocator.
str | The string to copy. |
allocator | The allocator to use for all memory allocations of this string. |
xtd::ustring::ustring | ( | const char8_t * | str | ) |
Initializes a new instance of xtd::ustring with specified string to copy.
xtd::ustring::ustring | ( | const char8_t * | str, |
const allocator_type & | allocator | ||
) |
Initializes a new instance of xtd::ustring with specified string to copy, and allocator.
str | The string to copy. |
allocator | The allocator to use for all memory allocations of this string. |
xtd::ustring::ustring | ( | char8_t * | str | ) |
Initializes a new instance of xtd::ustring with specified string to copy.
xtd::ustring::ustring | ( | char8_t * | str, |
const allocator_type & | allocator | ||
) |
Initializes a new instance of xtd::ustring with specified string to copy, and allocator.
str | The string to copy. |
allocator | The allocator to use for all memory allocations of this string. |
|
noexcept |
Initializes a new instance of xtd::ustring with specified string to copy.
str | The string to copy. |
|
noexcept |
Initializes a new instance of xtd::ustring with specified string to copy and allocator.
str | The string to copy. |
allocator | The allocator to use for all memory allocations of this string. |
xtd::ustring::ustring | ( | const char16_t * | str | ) |
Initializes a new instance of xtd::ustring with specified string to copy.
xtd::ustring::ustring | ( | const char16_t * | str, |
const allocator_type & | allocator | ||
) |
Initializes a new instance of xtd::ustring with specified string to copy, and allocator.
str | The string to copy. |
allocator | The allocator to use for all memory allocations of this string. |
xtd::ustring::ustring | ( | char16_t * | str | ) |
Initializes a new instance of xtd::ustring with specified string to copy.
xtd::ustring::ustring | ( | char16_t * | str, |
const allocator_type & | allocator | ||
) |
Initializes a new instance of xtd::ustring with specified string to copy, and allocator.
str | The string to copy. |
allocator | The allocator to use for all memory allocations of this string. |
|
noexcept |
Initializes a new instance of xtd::ustring with specified string to copy.
str | The string to copy. |
|
noexcept |
Initializes a new instance of xtd::ustring with specified string to copy and allocator.
str | The string to copy. |
allocator | The allocator to use for all memory allocations of this string. |
xtd::ustring::ustring | ( | const char32_t * | str | ) |
Initializes a new instance of xtd::ustring with specified string to copy.
xtd::ustring::ustring | ( | const char32_t * | str, |
const allocator_type & | allocator | ||
) |
Initializes a new instance of xtd::ustring with specified string to copy, and allocator.
str | The string to copy. |
allocator | The allocator to use for all memory allocations of this string. |
xtd::ustring::ustring | ( | char32_t * | str | ) |
Initializes a new instance of xtd::ustring with specified string to copy.
xtd::ustring::ustring | ( | char32_t * | str, |
const allocator_type & | allocator | ||
) |
Initializes a new instance of xtd::ustring with specified string to copy, and allocator.
str | The string to copy. |
allocator | The allocator to use for all memory allocations of this string. |
|
noexcept |
Initializes a new instance of xtd::ustring with specified string to copy.
str | The string to copy. |
|
noexcept |
Initializes a new instance of xtd::ustring with specified string to copy and allocator.
str | The string to copy. |
allocator | The allocator to use for all memory allocations of this string. |
xtd::ustring::ustring | ( | const wchar_t * | str | ) |
Initializes a new instance of xtd::ustring with specified string to copy.
xtd::ustring::ustring | ( | const wchar_t * | str, |
const allocator_type & | allocator | ||
) |
Initializes a new instance of xtd::ustring with specified string to copy, and allocator.
str | The string to copy. |
allocator | The allocator to use for all memory allocations of this string. |
xtd::ustring::ustring | ( | wchar_t * | str | ) |
Initializes a new instance of xtd::ustring with specified string to copy.
xtd::ustring::ustring | ( | wchar_t * | str, |
const allocator_type & | allocator | ||
) |
Initializes a new instance of xtd::ustring with specified string to copy, and allocator.
str | The string to copy. |
allocator | The allocator to use for all memory allocations of this string. |
|
noexcept |
Initializes a new instance of xtd::ustring with specified string to move.
str | The string to move. |
|
noexcept |
Initializes a new instance of xtd::ustring with specified string to move and allocator.
str | The string to move. |
allocator | The allocator to use for all memory allocations of this string. |
|
inline |
Initializes a new instance of xtd::ustring with specified first and last iterators of substring.
first | The first iterator of substring. |
last | The first iterator of substring. |
|
inline |
Initializes a new instance of xtd::ustring with specified first and last iterators of substring and allocator.
first | The first iterator of substring. |
last | The first iterator of substring. |
allocator | The allocator to use for all memory allocations of this string. |
xtd::ustring::ustring | ( | std::initializer_list< value_type > | il | ) |
Initializes a new instance of xtd::ustring with specified initializer list.
il | The initializer list to fill. |
xtd::ustring::ustring | ( | std::initializer_list< value_type > | il, |
const allocator_type & | allocator | ||
) |
Initializes a new instance of xtd::ustring with specified initializer list and allocator.
il | The initializer list to fill. |
allocator | The allocator to use for all memory allocations of this string. |
xtd::ustring::ustring | ( | std::initializer_list< char8_t > | il | ) |
Initializes a new instance of xtd::ustring with specified initializer list.
il | The initializer list to fill. |
xtd::ustring::ustring | ( | std::initializer_list< char8_t > | il, |
const allocator_type & | allocator | ||
) |
Initializes a new instance of xtd::ustring with specified initializer list and allocator.
il | The initializer list to fill. |
allocator | The allocator to use for all memory allocations of this string. |
xtd::ustring::ustring | ( | std::initializer_list< char16_t > | il | ) |
Initializes a new instance of xtd::ustring with specified initializer list.
il | The initializer list to fill. |
xtd::ustring::ustring | ( | std::initializer_list< char16_t > | il, |
const allocator_type & | allocator | ||
) |
Initializes a new instance of xtd::ustring with specified initializer list and allocator.
il | The initializer list to fill. |
allocator | The allocator to use for all memory allocations of this string. |
xtd::ustring::ustring | ( | std::initializer_list< char32_t > | il | ) |
Initializes a new instance of xtd::ustring with specified initializer list.
il | The initializer list to fill. |
xtd::ustring::ustring | ( | std::initializer_list< char32_t > | il, |
const allocator_type & | allocator | ||
) |
Initializes a new instance of xtd::ustring with specified initializer list and allocator.
il | The initializer list to fill. |
allocator | The allocator to use for all memory allocations of this string. |
xtd::ustring::ustring | ( | std::initializer_list< wchar_t > | il | ) |
Initializes a new instance of xtd::ustring with specified initializer list.
il | The initializer list to fill. |
xtd::ustring::ustring | ( | std::initializer_list< wchar_t > | il, |
const allocator_type & | allocator | ||
) |
Initializes a new instance of xtd::ustring with specified initializer list and allocator.
il | The initializer list to fill. |
allocator | The allocator to use for all memory allocations of this string. |
|
inlinestatic |
Gets the class name of the object_t.
|
inlinestatic |
Gets the class name of the specified object.
|
inlinestatic |
Gets the class name of the specified object.
Compares two specified string objects and returns an integer that indicates their relative position in the sort order.
str_a | The first string to compare. |
str_b | The second string to compare. |
Value | Condition |
---|---|
Less than zero | str_a precedes str_b in the sort order. |
Zero | str_a occurs in the same position as str_b in the sort order. |
Greater than zero | str_a follows str_b in the sort order. |
|
staticnoexcept |
Compares two specified string objects, ignoring or honoring their case, and returns an integer that indicates their relative position in the sort order.
str_a | The first string to compare. |
str_b | The second string to compare. |
ignore_case | true to ignore case during the comparison; otherwise, false. |
Value | Condition |
---|---|
Less than zero | str_a precedes str_b in the sort order. |
Zero | str_a occurs in the same position as str_b in the sort order. |
Greater than zero | str_a follows str_b in the sort order. |
|
staticnoexcept |
Compares two specified string objects using the specified rules, and returns an integer that indicates their relative position in the sort order.
str_a | The first string to compare. |
str_b | The second string to compare. |
comparison_type | One of the enumeration values that specifies the rules to use in the comparison. |
Value | Condition |
---|---|
Less than zero | str_a precedes str_b in the sort order. |
Zero | str_a occurs in the same position as str_b in the sort order. |
Greater than zero | str_a follows str_b in the sort order. |
|
staticnoexcept |
Compares substrings of two specified string objects and returns an integer that indicates their relative position in the sort order.
str_a | The first string to use in the comparison. |
index_a | The position of the substring within str_a. |
str_b | The second string to use in the comparison. |
index_b | The position of the substring within str_b. |
length | The maximum number of characters in the substrings to compare |
Value | Condition |
---|---|
Less than zero | str_a precedes str_b in the sort order. |
Zero | str_a occurs in the same position as str_b in the sort order. |
Greater than zero | str_a follows str_b in the sort order. |
|
staticnoexcept |
Compares substrings of two specified string objects, ignoring or honoring their case, and returns an integer that indicates their relative position in the sort order.
str_a | The first string to use in the comparison. |
index_a | The position of the substring within str_a. |
str_b | The second string to use in the comparison. |
index_b | The position of the substring within str_b. |
length | The maximum number of characters in the substrings to compare |
ignore_case | true to ignore case during the comparison; otherwise, false. |
Value | Condition |
---|---|
Less than zero | str_a precedes str_b in the sort order. |
Zero | str_a occurs in the same position as str_b in the sort order. |
Greater than zero | str_a follows str_b in the sort order. |
|
staticnoexcept |
Compares substrings of two specified string objects using the specified rules, and returns an integer that indicates their relative position in the sort order.
str_a | The first string to use in the comparison. |
index_a | The position of the substring within str_a. |
str_b | The second string to use in the comparison. |
index_b | The position of the substring within str_b. |
length | The maximum number of characters in the substrings to compare |
comparison_type | One of the enumeration values that specifies the rules to use in the comparison. |
Value | Condition |
---|---|
Less than zero | str_a precedes str_b in the sort order. |
Zero | str_a occurs in the same position as str_b in the sort order. |
Greater than zero | str_a follows str_b in the sort order. |
|
inlinestaticnoexcept |
Concatenates the string representations of the elements in a specified object array.
args | An object array that contains the elements to concatenate. |
Concatenates the elements of a specified string array.
values | An array of string instances. |
Concatenates two specified instances of string.
str_a | The first string to concatenate. |
str_b | The second string to concatenate. |
|
staticnoexcept |
Concatenates three specified instances of string.
str_a | The first string to concatenate. |
str_b | The second string to concatenate. |
str_c | The third string to concatenate. |
|
staticnoexcept |
Concatenates four specified instances of string.
str_a | The first string to concatenate. |
str_b | The second string to concatenate. |
str_c | The third string to concatenate. |
str_d | The fourth string to concatenate. |
|
inlinestaticnoexcept |
Concatenates two specified instances of object.
obj_a | The first object to concatenate. |
obj_b | The second object to concatenate. |
|
inlinestaticnoexcept |
Concatenates three specified instances of object.
obj_a | The first object to concatenate. |
obj_b | The second object to concatenate. |
obj_c | The third object to concatenate. |
|
inlinestaticnoexcept |
Concatenates four specified instances of object.
obj_a | The first object to concatenate. |
obj_b | The second object to concatenate. |
obj_c | The third object to concatenate. |
obj_d | The fourth object to concatenate. |
|
inlinestaticnoexcept |
Creates the string representation of a specified object.
value | The object to represent. |
|
noexcept |
Returns a value indicating whether a specified substring occurs within this string.
value | The string to seek. |
Gets demangled string of name,.
|
staticnoexcept |
Represents the empty string.
|
noexcept |
Determines whether the end of this string matches the specified character.
value | The char_t to compare to the substring at the end of this instance. |
|
noexcept |
Determines whether the end of this string matches the specified string.
value | The string to compare to the substring at the end of this instance. |
|
noexcept |
Determines whether the end of this string instance matches the specified string when compared using the specified culture.
ignore_case | true to ignore case during the comparison; otherwise, false. |
|
noexcept |
Determines whether the end of this string matches the specified string when compared using the specified comparison option.
comparison_type | One of the enumeration values that determines how this string and value are compared. |
|
noexcept |
Determines whether the end of this string matches the specified character.
value | The char_t to compare to the substring at the end of this instance. |
|
inlinestatic |
Gets the fully qualified class name of the objec_t, including the namespace of the objec_t.
|
inlinestatic |
Gets the fully qualified class name of the specified object, including the namespace of the specified object.
|
inlinestatic |
Gets the fully qualified class name of the specified object, including the namespace of the specified object.
|
overridevirtualnoexcept |
|
noexcept |
Reports the index of the first occurrence of the specified string in this string.
value | An unicode character to seek |
|
noexcept |
Reports the index of the first occurrence of the specified character in this string. The search starts at a specified character position.
value | An unicode character to seek |
start_index | The search starting position |
|
noexcept |
Reports the index of the first occurrence of the specified character in this string. The search starts at a specified character position and examines a specified number of character positions.
value | An unicode character to seek |
start_index | The search starting position |
count | The number of character positions to examine |
|
noexcept |
Reports the index of the first occurrence of the specified character in this string.
value | An unicode character to seek |
|
noexcept |
Reports the index of the first occurrence of the specified character in this string. The search starts at a specified character position.
value | An unicode character to seek |
start_index | The search starting position |
|
noexcept |
Reports the index of the first occurrence of the specified character in this string. The search starts at a specified character position and examines a specified number of character positions.
value | An unicode character to seek |
start_index | The search starting position |
count | The number of character positions to examine |
|
noexcept |
Reports the index of the first occurrence in this instance of any character in a specified array of characters.
values | An unicode character array containing one or more characters to seek |
|
noexcept |
Reports the index of the first occurrence in this instance of any character in a specified array of characters. The search starts at a specified character position.
values | An unicode character array containing one or more characters to seek |
start_index | The search starting position |
|
noexcept |
Reports the index of the first occurrence in this instance of any character in a specified array of characters. The search starts at a specified character position.
values | An unicode character array containing one or more characters to seek |
start_index | The search starting position |
count | The number of character positions to examine. |
Inserts a specified instance of string at a specified index position in this instance.
start_index | The index position of the insertion. |
value | The string to insert. |
|
noexcept |
Indicates whether this string is an empty string ("").
|
inlinestaticnoexcept |
Concatenates a specified separator string between each element of a specified object array, yielding a single concatenated string.
separator | A string separator. |
values | An array of Object. |
start_index | The first array element in value to use. |
|
inlinestaticnoexcept |
Concatenates a specified separator string between each element of a specified Object array, yielding a single concatenated string.
separator | A string separator. |
values | An array of Object. |
start_index | The first array element in value to use. |
count | The number of elements of value to use. |
|
inlinestaticnoexcept |
Concatenates a specified separator string between each element of a specified object array, yielding a single concatenated string.
separator | A string separator. |
values | An array of Object. |
|
noexcept |
Reports the index of the last occurrence of the specified string in this string.
value | An unicode character to seek |
|
noexcept |
Reports the index of the last occurrence of the specified character in this string. The search starts at a specified character position.
value | An unicode character to seek |
start_index | The search starting position |
|
noexcept |
Reports the index of the last occurrence of the specified character in this string. The search starts at a specified character position and examines a specified number of character positions.
value | An unicode character to seek |
start_index | The search starting position |
count | The number of character positions to examine |
|
noexcept |
Reports the index of the last occurrence of the specified character in this tring.
value | An unicode character to seek |
|
noexcept |
Reports the index of the last occurrence of the specified character in this string. The search starts at a specified character position.
value | An unicode character to seek |
start_index | The search starting position |
|
noexcept |
Reports the index of the last occurrence of the specified character in this string. The search starts at a specified character position and examines a specified number of character positions.
str | A string to find last index of. |
value | An unicode character to seek |
start_index | The search starting position |
count | The number of character positions to examine |
|
noexcept |
Reports the index of the last occurrence in this instance of any character in a specified array of characters.
values | An unicode character array containing one or more characters to seek |
|
noexcept |
Reports the index of the last occurrence in this instance of any character in a specified array of characters. The search starts at a specified character position.
values | An unicode character array containing one or more characters to seek |
start_index | The search starting position |
|
noexcept |
Reports the index of the last occurrence in this instance of any character in a specified array of characters. The search starts at a specified character position.
values | An unicode character array containing one or more characters to seek |
start_index | The search starting position |
count | The number of character positions to examine. |
|
noexcept |
Right-aligns the characters in this string, padding with spaces on the left for a specified total length.
total_width | The number of characters in the resulting string, equal to the number of original characters plus any additional padding characters. |
|
noexcept |
Right-aligns the characters in this string, padding with spaces on the left for a specified total length.
total_width | The number of characters in the resulting string, equal to the number of original characters plus any additional padding characters. |
paddingChar | An unicode padding character. |
|
noexcept |
Left-aligns the characters in this string, padding with spaces on the right for a specified total length.
totalWidth | The number of characters in the resulting string, equal to the number of original characters plus any additional padding characters. |
|
noexcept |
Left-aligns the characters in this string, padding with spaces on the right for a specified total length.
totalWidth | The number of characters in the resulting string, equal to the number of original characters plus any additional padding characters. |
paddingChar | An unicode padding character. |
|
noexcept |
Deletes all the characters from this string beginning at a specified position and continuing through the last position.
start_index | The position to begin deleting characters. |
|
noexcept |
Deletes all the characters from this string beginning at a specified position and continuing through the last position.
start_index | The position to begin deleting characters. |
count | The number of characters to delete. |
|
noexcept |
Replaces all occurrences of a specified string in this string with another specified string.
old_string | A string to be replaced. |
new_string | A string to replace all occurrences of old_string. |
|
noexcept |
Replaces all occurrences of a specified char_t in this string with another specified char_t.
old_char | A char_t to be replaced. |
new_char | A char_t to replace all occurrences of old_char. |
|
noexcept |
Splits this string into substrings that are based on the default white-space characters. White-space characters are defined by the c++ standard and return true if they are passed to the std::isspace() or std::iswspace() method.
|
noexcept |
Splits this string into substrings that are based on the characters in an array.
separators | A character array that delimits the substrings in this string, an empty array that contains no delimiters. |
|
noexcept |
Splits this string into a maximum number of substrings based on the characters in an array. You also specify the maximum number of substrings to return.
separators | A character array that delimits the substrings in this string, an empty array that contains no delimiters. |
count | The maximum number of substrings to return. |
|
noexcept |
Splits this string into a maximum number of substrings based on the characters in an array.
separators | A character array that delimits the substrings in this string, an empty array that contains no delimiters. |
count | The maximum number of substrings to return. |
options | xtd::string_split_options::remove_empty_entries to omit empty array elements from the array returned; or None to include empty array elements in the array returned. |
|
noexcept |
Splits this string into substrings based on the characters in an array. You can specify whether the substrings include empty array elements.
separators | A character array that delimits the substrings in this string, an empty array that contains no delimiters. |
options | xtd::string_split_options::remove_empty_entries to omit empty array elements from the array returned; or None to include empty array elements in the array returned. |
|
noexcept |
Determines whether the beginning of this instance of String matches a specified String.
value | A String to compare to. |
|
noexcept |
Determines whether the beginning of this instance of String matches a specified String, ignoring or honoring their case.
value | A String to compare to. |
ignore_case | true to ignore case when comparing the specified string and value; otherwise, false |
|
noexcept |
Determines whether the beginning of this instance of String matches a specified String.
value | A String to compare to. |
|
noexcept |
Determines whether the beginning of this instance of String matches a specified String, ignoring or honoring their case.
value | A String to compare to. |
ignore_case | true to ignore case when comparing the specified string and value; otherwise, false |
|
noexcept |
Retrieves a substring from this instance. The substring starts at a specified character position and has a specified length.
str | string to substring. |
start_index | The zero-based starting character position of a substring in this instance. |
|
noexcept |
Retrieves a substring from this instance. The substring starts at a specified character position and has a specified length.
start_index | The zero-based starting character position of a substring in this instance. |
length | The number of characters in the substring. |
|
noexcept |
Copies the characters in this instance to a Unicode character array.
|
noexcept |
Copies the characters in this instance to a Unicode character array starting at specified index.
start_index | The starting position of string to convert. |
|
noexcept |
Copies the characters in this instance to a Unicode character array starting at specified index with specified length.
start_index | The starting position of string to convert. |
length | The length of the string to convert |
|
noexcept |
Returns a copy of the current string converted to lowercase.
|
overridevirtualnoexcept |
Returns a std::string that represents the current object.
Reimplemented from xtd::object.
|
noexcept |
Returns a copy of the current string converted to uppercase.
|
noexcept |
Removes all leading and trailing occurrences of white-space characters from the specified String.
str | String to trim end. |
trim_char | A character to remove. |
|
noexcept |
Removes all leading and trailing occurrences of a set of characters specified in an array from the specified String.
str | String to trim end. |
trim_chars | An array of characters to remove. |
|
noexcept |
Removes all leading and trailing occurrences of a character specified from the specified String .
str | String to trim start. |
trim_char | A character to remove. |
|
noexcept |
Removes all trailing occurrences of white-space characters from the specified String.
str | String to trim end. |
trim_char | A character to remove. |
|
noexcept |
Removes all trailing occurrences of a set of characters specified in an array from the specified String.
str | String to trim end. |
trim_chars | An array of characters to remove. |
|
noexcept |
Removes all trailing occurrences of a character specified from the specified String .
str | String to trim start. |
trim_char | A character to remove. |
|
noexcept |
Removes all leading occurrences of white-space characters from the specified String.
str | String to trim start. |
trim_char | A character to remove. |
|
noexcept |
Removes all leading occurrences of a set of characters specified in an array from the specified String.
str | String to trim start. |
trim_chars | An array of characters to remove. |
|
noexcept |
Removes all leading occurrences of a character specified from the specified String .
str | String to trim start. |
trim_char | A character to remove. |