xtd 0.2.0
Loading...
Searching...
No Matches
xtd::ustring Class Reference
Inheritance diagram for xtd::ustring:
xtd::object xtd::icomparable< ustring > xtd::interface xtd::comparison_operators< type_t, comparable_t >

Definition

Represents text as a sequence of UTF-8 code units.

Namespace
xtd
Library
xtd.core
Remarks
A string is a sequential collection of characters that's used to represent text. A xtd::ustring object is a sequential collection of char that represent a string; a char corresponds to a UTF-8 code unit. The value of the xtd::ustring object is the content of the sequential collection of char, and unlike std::basic_string<char> that value is immutable (that is, it is read-only).
If you want the same mutable string class, you can use xtd::text::ustring_builder class.
xtd::ustring is inherited from std::basic_string<char> and therefore offers the full (immutable) API of std::string.
xtd::ustring cannot inherit from xtd::iequatable <xtd::ustring> because std::basic_string<char> defines the == and != operators.
Examples
action.cpp, action1.cpp, action2.cpp, action3.cpp, application_enable_dark_mode.cpp, application_enable_light_mode.cpp, as.cpp, auto_reset_event.cpp, binary_reader.cpp, binary_reader2.cpp, binary_reader3.cpp, boxed_info.cpp, boxing.cpp, console_clear.cpp, console_cursor.cpp, console_firework.cpp, console_read_line.cpp, console_read_line2.cpp, contains.cpp, create_gtest_like_event_listener.cpp, csf.cpp, current_stack_frame.cpp, date_time_specify_kind.cpp, delegate.cpp, delegate_begin_invoke.cpp, delegate_lambda.cpp, delegate_member_method.cpp, delegate_multicast.cpp, event.cpp, file_info_move_to.cpp, file_info_replace.cpp, folder_browser_box.cpp, folder_browser_dialog.cpp, format_any.cpp, format_boolean.cpp, format_character.cpp, format_class.cpp, format_class_object.cpp, format_class_with_specified_formating.cpp, format_class_with_specified_formating_with_to_string.cpp, format_numeric.cpp, iasync_result.cpp, iclonable.cpp, iformatable.cpp, iformatable_vs_to_string.cpp, interface.cpp, interface2.cpp, interlocked.cpp, iobservable_iobserver.cpp, ip_address.cpp, iprogress.cpp, manual_reset_event.cpp, minesweeper.cpp, mixing_std_and_xtd_threads.cpp, object.cpp, object_and_iequatable.cpp, object_equals2.cpp, open_file_box.cpp, open_file_dialog.cpp, socket_tcp_ip_v4.cpp, socket_tcp_ip_v4_without_thread.cpp, socket_tcp_ip_v6.cpp, socket_udp_ip_v4.cpp, socket_udp_ip_v6.cpp, some_controls.cpp, some_system_controls.cpp, split.cpp, sprintf_class.cpp, sprintf_class_with_specified_formating.cpp, sprintf_class_with_specified_formating_with_to_string.cpp, sprintf_string.cpp, stack_trace_simple.cpp, static.cpp, static_object.cpp, static_object2.cpp, test_forms.cpp, test_tunit.cpp, themes.cpp, time_span_from_hours.cpp, timers_timer_synchronizing_object.cpp, udp_client_ip_v4.cpp, udp_client_ip_v6.cpp, user_dialog.cpp, user_dialog_show_sheet.cpp, wconsole.cpp, and wconsole2.cpp.

Public Fields

static const ustring empty_string
 Represents the empty string.
 

Public Constructors

 ustring () noexcept
 Initializes a new instance of xtd::ustring.
 
 ustring (const allocator_type &allocator) noexcept
 Initializes a new instance of xtd::ustring with 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, char8 character)
 Initializes a new instance of xtd::ustring with specified count copies of character.
 
 ustring (size_t count, char8 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, char16 character)
 Initializes a new instance of xtd::ustring with specified count copies of character.
 
 ustring (size_t count, char16 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 character)
 Initializes a new instance of xtd::ustring with specified count copies of character.
 
 ustring (size_t count, char32 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 character)
 Initializes a new instance of xtd::ustring with specified count copies of character.
 
 ustring (size_t count, wchar character, const allocator_type &allocator)
 Initializes a new instance of xtd::ustring with specified count copies of character and specified 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 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 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 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 (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 (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 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::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 char8 *str)
 Initializes a new instance of xtd::ustring with specified string to copy.
 
 ustring (const char8 *str, const allocator_type &allocator)
 Initializes a new instance of xtd::ustring with specified string to copy, and allocator.
 
 ustring (char8 *str)
 Initializes a new instance of xtd::ustring with specified string to copy.
 
 ustring (char8 *str, const allocator_type &allocator)
 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 char16 *str)
 Initializes a new instance of xtd::ustring with specified string to copy.
 
 ustring (const char16 *str, const allocator_type &allocator)
 Initializes a new instance of xtd::ustring with specified string to copy, and allocator.
 
 ustring (char16 *str)
 Initializes a new instance of xtd::ustring with specified string to copy.
 
 ustring (char16 *str, const allocator_type &allocator)
 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 char32 *str)
 Initializes a new instance of xtd::ustring with specified string to copy.
 
 ustring (const char32 *str, const allocator_type &allocator)
 Initializes a new instance of xtd::ustring with specified string to copy, and allocator.
 
 ustring (char32 *str)
 Initializes a new instance of xtd::ustring with specified string to copy.
 
 ustring (char32 *str, const allocator_type &allocator)
 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 wchar *str)
 Initializes a new instance of xtd::ustring with specified string to copy.
 
 ustring (const wchar *str, const allocator_type &allocator)
 Initializes a new instance of xtd::ustring with specified string to copy, and allocator.
 
 ustring (wchar *str)
 Initializes a new instance of xtd::ustring with specified string to copy.
 
 ustring (wchar *str, const allocator_type &allocator)
 Initializes a new instance of xtd::ustring with specified string to copy, 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.
 
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.
 
template<typename string_view_like_t >
constexpr ustring (const string_view_like_t &string_view, const allocator_type &allocator=allocator_type())
 Initializes a new instance of xtd::ustring with specified string view of substring and allocator.
 
template<typename string_view_like_t >
constexpr ustring (const string_view_like_t &string_view, size_type index, size_type count, const allocator_type &allocator=allocator_type())
 Initializes a new instance of xtd::ustring with specified string view of substring 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< char8 > il)
 Initializes a new instance of xtd::ustring with specified initializer list.
 
 ustring (std::initializer_list< char8 > il, const allocator_type &allocator)
 Initializes a new instance of xtd::ustring with specified initializer list and allocator.
 
 ustring (std::initializer_list< char16 > il)
 Initializes a new instance of xtd::ustring with specified initializer list.
 
 ustring (std::initializer_list< char16 > il, const allocator_type &allocator)
 Initializes a new instance of xtd::ustring with specified initializer list and allocator.
 
 ustring (std::initializer_list< char32 > il)
 Initializes a new instance of xtd::ustring with specified initializer list.
 
 ustring (std::initializer_list< char32 > il, const allocator_type &allocator)
 Initializes a new instance of xtd::ustring with specified initializer list and allocator.
 
 ustring (std::initializer_list< wchar > il)
 Initializes a new instance of xtd::ustring with specified initializer list.
 
 ustring (std::initializer_list< wchar > il, const allocator_type &allocator)
 Initializes a new instance of xtd::ustring with specified initializer list and allocator.
 

Public Methods

int32 compare_to (const ustring &tzi) const noexcept override
 Compares the current instance with another object of the same type.
 
bool contains (value_type value) const noexcept
 Returns a value indicating whether a specified char occurs within this string.
 
bool contains (char8 value) const noexcept
 Returns a value indicating whether a specified char occurs within this string.
 
bool contains (char16 value) const noexcept
 Returns a value indicating whether a specified char occurs within this string.
 
bool contains (char32 value) const noexcept
 Returns a value indicating whether a specified char occurs within this string.
 
bool contains (wchar value) const noexcept
 Returns a value indicating whether a specified char occurs within this string.
 
bool contains (const ustring &value) const noexcept
 Returns a value indicating whether a specified substring occurs within this string.
 
bool equals (const object &obj) const noexcept override
 Determines whether this instance and a specified object, which must also be a xtd::ustring object, have the same value.
 
bool equals (const ustring &value) const noexcept
 Determines whether this instance and another specified String object have the same value.
 
bool equals (const ustring &value, bool ignore_case) const noexcept
 Determines whether this instance and another specified String object have the same value, ignoring or honoring their case.
 
bool ends_with (value_type value) const noexcept
 Determines whether the end of this string matches the specified character.
 
bool ends_with (char8 value) const noexcept
 Determines whether the end of this string matches the specified character.
 
bool ends_with (char16 value) const noexcept
 Determines whether the end of this string matches the specified character.
 
bool ends_with (char32 value) const noexcept
 Determines whether the end of this string matches the specified character.
 
bool ends_with (wchar 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.
 
size_t get_hash_code () const noexcept override
 Returns the hash code for this string.
 
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 (const ustring &value) const noexcept
 Reports the index of the first occurrence of the specified string 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 (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 (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 (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_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 (value_type value) const noexcept
 Reports the index of the last occurrence of the specified character in this tring.
 
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 (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 (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 (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 (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_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.
 
template<typename char_t >
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.
 
template<typename char_t >
ustring pad_left (size_t total_width, char_t padding_char) const
 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.
 
template<typename char_t >
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.
 
template<typename char_t >
ustring pad_right (size_t total_width, char_t padding_char) const
 Left-aligns the characters in this string, padding with spaces on the right for a specified total length.
 
ustring quoted () const
 Allows insertion and extraction of quoted strings, such as the ones found in CSV or XML.
 
ustring quoted (value_type delimiter, value_type escape) const
 Allows insertion and extraction of quoted strings, such as the ones found in CSV or XML ith specified delimiter and escape.
 
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 (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.
 
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.
 
std::vector< ustringsplit (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< ustringsplit () 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 xtd::char_object::isspace() or std::iswspace() method.
 
std::vector< ustringsplit (const std::vector< value_type > &separators) const noexcept
 Splits this string into substrings that are based on the characters in an array.
 
std::vector< ustringsplit (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.
 
std::vector< ustringsplit (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.
 
bool starts_with (value_type value) const noexcept
 Determines whether the beginning of this instance of xtd::ustring matches a specified xtd::ustring.
 
bool starts_with (value_type value, bool ignore_case) const noexcept
 Determines whether the beginning of this instance of xtd::ustring matches a specified xtd::ustring, ignoring or honoring their case.
 
bool starts_with (const ustring &value) const noexcept
 Determines whether the beginning of this instance of xtd::ustring matches a specified xtd::ustring.
 
bool starts_with (const ustring &value, bool ignore_case) const noexcept
 Determines whether the beginning of this instance of xtd::ustring matches a specified xtd::ustring, 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 xtd::ustring that represents the current object.
 
ustring to_title_case () const noexcept
 Converts the current string to title case (except for words that are entirely in uppercase, which are considered to be acronyms).
 
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 xtd::ustring.
 
ustring trim (value_type trim_char) const noexcept
 Removes all leading and trailing occurrences of a character specified from the specified xtd::ustring .
 
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 xtd::ustring.
 
ustring trim_end () const noexcept
 Removes all trailing occurrences of white-space characters from the specified xtd::ustring.
 
ustring trim_end (value_type trim_char) const noexcept
 Removes all trailing occurrences of a character specified from the specified xtd::ustring .
 
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 xtd::ustring.
 
ustring trim_start () const noexcept
 Removes all leading occurrences of white-space characters from the specified xtd::ustring.
 
ustring trim_start (value_type trim_char) const noexcept
 Removes all leading occurrences of a character specified from the specified xtd::ustring .
 
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 xtd::ustring.
 

Public Static Methods

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 int32 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 int32 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 int32 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 int32 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 int32 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 int32 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.
 
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 , 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.
 
static ustring concat (const ustring &str_a, const ustring &str_b, const ustring &str_c) noexcept
 Concatenates three specified instances of string.
 
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.
 
static ustring concat (const ustring &str_a, const ustring &str_b) noexcept
 Concatenates two 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.
 
static ustring concat (const std::vector< ustring > &values) noexcept
 Concatenates the elements of a specified string array.
 
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.
 
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 bool equals (const ustring &a, const ustring &b) noexcept
 Determines whether two specified xtd::ustring objects have the same value.
 
static bool equals (const ustring &a, const ustring &b, bool ignore_case) noexcept
 Determines whether two specified xtd::ustring objects have the same value, ignoring or honoring their case.
 
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.
 
static bool is_empty (const xtd::ustring &string) noexcept
 Indicates whether the specifeid string is an empty 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 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 value_t >
static value_t parse (const ustring &str)
 Converts a string into a value_t type.
 
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) noexcept
 Try to convert a string into a value_t type.
 

Additional Inherited Members

- Public Member Functions inherited from xtd::object
 object ()=default
 Create a new instance of the ultimate base class object.
 
virtual type_object get_type () const noexcept
 Gets the type of the current instance.
 
template<typename object_t >
xtd::uptr< object_t > memberwise_clone () const
 Creates a shallow copy of the current object.
 
- Public Member Functions inherited from xtd::icomparable< ustring >
- Static Public Member Functions inherited from xtd::object
template<typename object_a_t , typename object_b_t >
static bool equals (const object_a_t &object_a, const object_b_t &object_b) noexcept
 Determines whether the specified object instances are considered equal.
 
template<typename object_a_t , typename object_b_t >
static bool reference_equals (const object_a_t &object_a, const object_b_t &object_b) noexcept
 Determines whether the specified object instances are the same instance.
 

The documentation for this class was generated from the following file: