|
Returns a reference to the character at specified location pos . /
/
/ / - Returns
- Reference to the requested character. /
- Exceptions
-
/ Compares two character sequences. / - Parameters
-
str | The other string to compare to. / |
- Returns
- / * Negative value if
*this appears before the character sequence specified by the arguments, in lexicographical order. / * Zero if both character sequences compare equivalent. / * Positive value if *this appears after the character sequence specified by the arguments, in lexicographical order. /
- Parameters
-
pos1 | The position of the first character in this string to compare. / |
count1 | The number of characters of this string to compare. / |
str | The other string to compare to. / |
- Returns
- / * Negative value if
*this appears before the character sequence specified by the arguments, in lexicographical order. / * Zero if both character sequences compare equivalent. / * Positive value if *this appears after the character sequence specified by the arguments, in lexicographical order. /
- Parameters
-
pos1 | The position of the first character in this string to compare. / |
count1 | The number of characters of this string to compare. / |
str | The other string to compare to. / |
pos2 | The position of the first character of the given string to compare. / |
- Returns
- / * Negative value if
*this appears before the character sequence specified by the arguments, in lexicographical order. / * Zero if both character sequences compare equivalent. / * Positive value if *this appears after the character sequence specified by the arguments, in lexicographical order. /
- Parameters
-
pos1 | The position of the first character in this string to compare. / |
count1 | The number of characters of this string to compare. / |
str | The other string to compare to. / |
pos2 | The position of the first character of the given string to compare. / |
count2 | The number of characters of the given string to compare. / |
- Returns
- A 32-bit signed integer that indicates whether this instance precedes, follows, or appears in the same position in the sort order as the value parameter: / * Negative value if
*this appears before the character sequence specified by the arguments, in lexicographical order. / * Zero if both character sequences compare equivalent. / * Positive value if *this appears after the character sequence specified by the arguments, in lexicographical order. /
- Parameters
-
s | pointer to the character string to compare to. / |
- Returns
- / * Negative value if
*this appears before the character sequence specified by the arguments, in lexicographical order. / * Zero if both character sequences compare equivalent. / * Positive value if *this appears after the character sequence specified by the arguments, in lexicographical order. /
- Parameters
-
pos1 | The position of the first character in this string to compare. / |
count1 | The number of characters of this string to compare. / |
s | pointer to the character string to compare to. / |
- Returns
- / * Negative value if
*this appears before the character sequence specified by the arguments, in lexicographical order. / * Zero if both character sequences compare equivalent. / * Positive value if *this appears after the character sequence specified by the arguments, in lexicographical order. /
|
int32 | compare (size_type pos1, size_type count1, const_pointer s) const |
|
int32 | compare (size_type pos1, size_type count1, const_pointer s, size_type count2) const |
| Compares two character sequences.
|
|
int32 | compare_to (const object &value) const |
| Compares this instance with a specified xtd::object and indicates whether this instance precedes, follows, or appears in the same position in the sort order as the specified xtd::object.
|
|
int32 | compare_to (const basic_string &value) const noexcept override |
| Compares this instance with a specified xtd::basic_string object and indicates whether this instance precedes, follows, or appears in the same position in the sort order as the specified string.
|
|
virtual bool | contains (value_type value) const noexcept |
| Returns a value indicating whether a specified char occurs within this basic_string.
|
|
virtual bool | contains (const basic_string &value) const noexcept |
| Returns a value indicating whether a specified substring occurs within this basic_string.
|
|
bool | equals (const object &obj) const noexcept override |
| Determines whether this instance and a specified object, which must also be a xtd::basic_string object, have the same value.
|
|
bool | equals (const basic_string &value) const noexcept override |
| Determines whether this instance and another specified xtd::basic_string object have the same value.
|
|
bool | equals (const basic_string &value, bool ignore_case) const noexcept |
| Determines whether this instance and another specified xtd::basic_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 basic_string matches the specified character.
|
|
bool | ends_with (value_type value, bool ignore_case) const noexcept |
| Determines whether the end of this basic_string matches the specified character, ignoring or honoring their case.
|
|
bool | ends_with (const basic_string &value) const noexcept |
| Determines whether the end of this basic_string matches the specified basic_string.
|
|
bool | ends_with (const basic_string &value, bool ignore_case) const noexcept |
| Determines whether the end of this basic_string instance matches the specified basic_string, ignoring or honoring their case.
|
|
bool | ends_with (const basic_string &value, xtd::string_comparison comparison_type) const noexcept |
| Determines whether the end of this basic_string matches the specified basic_string when compared using the specified comparison option.
|
|
size_type | find (const basic_string &str) const |
| Finds the first substring equal to the given character sequence. Search begins at 0 , i.e. the found substring must not begin in a position preceding 0 .
|
|
size_type | find (const basic_string &str, size_type pos) const |
| Finds the first substring equal to the given character sequence. Search begins at pos , i.e. the found substring must not begin in a position preceding pos .
|
|
size_type | find (const_pointer s, size_type pos, size_type count) const |
| Finds the first substring equal to the given character sequence. Search begins at pos , i.e. the found substring must not begin in a position preceding pos .
|
|
size_type | find (const_pointer s) const |
| Finds the first substring equal to the given character sequence. Search begins at 0 , i.e. the found substring must not begin in a position preceding 0 .
|
|
size_type | find (const_pointer s, size_type pos) const |
| Finds the first substring equal to the given character sequence. Search begins at pos , i.e. the found substring must not begin in a position preceding pos .
|
|
size_type | find (value_type ch) const |
| Finds the first substring equal to the given character sequence. Search begins at 0 , i.e. the found substring must not begin in a position preceding 0 .
|
|
size_type | find (value_type ch, size_type pos) const |
| Finds the first substring equal to the given character sequence. Search begins at pos , i.e. the found substring must not begin in a position preceding pos .
|
|
size_type | find_first_of (const basic_string &str) const |
| Finds the first character equal to one of the characters in the given character sequence. The search considers only the range [pos , size()). If none of the characters in the given character sequence is present in the range, xtd::basic_string::npos will be returned. @parzm str The string identifying characters to search for.
|
|
size_type | find_first_of (const basic_string &str, size_type pos) const |
| Finds the first character equal to one of the characters in the given character sequence. The search considers only the range [pos , size()). If none of the characters in the given character sequence is present in the range, xtd::basic_string::npos will be returned.
|
|
size_type | find_first_of (const_pointer s, size_type pos, size_type count) const |
| Finds the first character equal to one of the characters in the given character sequence. The search considers only the range [pos , size()). If none of the characters in the given character sequence is present in the range, xtd::basic_string::npos will be returned.
|
|
size_type | find_first_of (const_pointer s) const |
| Finds the first character equal to one of the characters in the given character sequence. The search considers only the range [pos , size()). If none of the characters in the given character sequence is present in the range, xtd::basic_string::npos will be returned.
|
|
size_type | find_first_of (const_pointer s, size_type pos) const |
| Finds the first character equal to one of the characters in the given character sequence. The search considers only the range [pos , size()). If none of the characters in the given character sequence is present in the range, xtd::basic_string::npos will be returned.
|
|
size_type | find_first_of (char_t ch) const |
| Finds the first character equal to one of the characters in the given character sequence. The search considers only the range [pos , size()). If none of the characters in the given character sequence is present in the range, xtd::basic_string::npos will be returned.
|
|
size_type | find_first_of (char_t ch, size_type pos) const |
| Finds the first character equal to one of the characters in the given character sequence. The search considers only the range [pos , size()). If none of the characters in the given character sequence is present in the range, xtd::basic_string::npos will be returned.
|
|
size_type | find_first_not_of (const basic_string &str) const |
| Finds the first character equal to none of the characters in the given character sequence. The search considers only the range [pos , size()). If all characters in the range can be found in the given character sequence, xtd::basic_string::npos will be returned. @parzm str The string identifying characters to search for.
|
|
size_type | find_first_not_of (const basic_string &str, size_type pos) const |
| Finds the first character equal to none of the characters in the given character sequence. The search considers only the range [pos , size()). If all characters in the range can be found in the given character sequence, xtd::basic_string::npos will be returned.
|
|
size_type | find_first_not_of (const_pointer s, size_type pos, size_type count) const |
| Finds the first character equal to none of the characters in the given character sequence. The search considers only the range [pos , size()). If all characters in the range can be found in the given character sequence, xtd::basic_string::npos will be returned.
|
|
size_type | find_first_not_of (const_pointer s) const |
| Finds the first character equal to none of the characters in the given character sequence. The search considers only the range [pos , size()). If all characters in the range can be found in the given character sequence, xtd::basic_string::npos will be returned.
|
|
size_type | find_first_not_of (const_pointer s, size_type pos) const |
| Finds the first character equal to none of the characters in the given character sequence. The search considers only the range [pos , size()). If all characters in the range can be found in the given character sequence, xtd::basic_string::npos will be returned.
|
|
size_type | find_first_not_of (char_t ch) const |
| Finds the first character equal to none of the characters in the given character sequence. The search considers only the range [pos , size()). If all characters in the range can be found in the given character sequence, xtd::basic_string::npos will be returned.
|
|
size_type | find_first_not_of (char_t ch, size_type pos) const |
| Finds the first character equal to none of the characters in the given character sequence. The search considers only the range [pos , size()). If all characters in the range can be found in the given character sequence, xtd::basic_string::npos will be returned.
|
|
size_type | find_last_of (const basic_string &str) const |
| Finds the last character equal to one of characters in the given character sequence. The exact search algorithm is not specified. The search considers only the range [0 , pos ]. If none of the characters in the given character sequence is present in the range, xtd::basic_string::npos will be returned. @parzm str The string identifying characters to search for.
|
|
size_type | find_last_of (const basic_string &str, size_type pos) const |
| Finds the last character equal to one of characters in the given character sequence. The exact search algorithm is not specified. The search considers only the range [0 , pos ]. If none of the characters in the given character sequence is present in the range, xtd::basic_string::npos will be returned.
|
|
size_type | find_last_of (const_pointer s, size_type pos, size_type count) const |
| Finds the last character equal to one of characters in the given character sequence. The exact search algorithm is not specified. The search considers only the range [0 , pos ]. If none of the characters in the given character sequence is present in the range, xtd::basic_string::npos will be returned.
|
|
size_type | find_last_of (const_pointer s) const |
| Finds the last character equal to one of characters in the given character sequence. The exact search algorithm is not specified. The search considers only the range [0 , pos ]. If none of the characters in the given character sequence is present in the range, xtd::basic_string::npos will be returned.
|
|
size_type | find_last_of (const_pointer s, size_type pos) const |
| Finds the last character equal to one of characters in the given character sequence. The exact search algorithm is not specified. The search considers only the range [0 , pos ]. If none of the characters in the given character sequence is present in the range, xtd::basic_string::npos will be returned.
|
|
size_type | find_last_of (char_t ch) const |
| Finds the last character equal to one of characters in the given character sequence. The exact search algorithm is not specified. The search considers only the range [0 , pos ]. If none of the characters in the given character sequence is present in the range, xtd::basic_string::npos will be returned.
|
|
size_type | find_last_of (char_t ch, size_type pos) const |
| Finds the last character equal to one of characters in the given character sequence. The exact search algorithm is not specified. The search considers only the range [0 , pos ]. If none of the characters in the given character sequence is present in the range, xtd::basic_string::npos will be returned.
|
|
size_type | find_last_not_of (const basic_string &str) const |
| Finds the last character equal to none of the characters in the given character sequence. The search considers only the range [0 , pos ]. If all characters in the range can be found in the given character sequence,xtd::basic_string::npos will be returned. @parzm str The string identifying characters to search for.
|
|
size_type | find_last_not_of (const basic_string &str, size_type pos) const |
| Finds the last character equal to none of the characters in the given character sequence. The search considers only the range [0 , pos ]. If all characters in the range can be found in the given character sequence,xtd::basic_string::npos will be returned.
|
|
size_type | find_last_not_of (const_pointer s, size_type pos, size_type count) const |
| Finds the last character equal to none of the characters in the given character sequence. The search considers only the range [0 , pos ]. If all characters in the range can be found in the given character sequence,xtd::basic_string::npos will be returned.
|
|
size_type | find_last_not_of (const_pointer s) const |
| Finds the last character equal to none of the characters in the given character sequence. The search considers only the range [0 , pos ]. If all characters in the range can be found in the given character sequence,xtd::basic_string::npos will be returned.
|
|
size_type | find_last_not_of (const_pointer s, size_type pos) const |
| Finds the last character equal to none of the characters in the given character sequence. The search considers only the range [0 , pos ]. If all characters in the range can be found in the given character sequence,xtd::basic_string::npos will be returned.
|
|
size_type | find_last_not_of (char_t ch) const |
| Finds the last character equal to none of the characters in the given character sequence. The search considers only the range [0 , pos ]. If all characters in the range can be found in the given character sequence,xtd::basic_string::npos will be returned.
|
|
size_type | find_last_not_of (char_t ch, size_type pos) const |
| Finds the last character equal to none of the characters in the given character sequence. The search considers only the range [0 , pos ]. If all characters in the range can be found in the given character sequence,xtd::basic_string::npos will be returned.
|
|
allocator_type | get_allocator () const |
| Returns the allocator associated with the string.
|
|
virtual const base_type & | get_base_type () const noexcept |
| Returns the underlying base type.
|
|
xtd::size | get_hash_code () const noexcept override |
| Returns the hash code for this basic_string.
|
|
enumerator_type | get_enumerator () const noexcept override |
| Returns an enumerator that iterates through a collection.
|
|
xtd::size | index_of (const basic_string &value) const noexcept |
| Reports the index of the first occurrence of the specified basic_string in this basic_string.
|
|
xtd::size | index_of (const basic_string &value, xtd::size start_index) const |
| Reports the index of the first occurrence of the specified character in this basic_string. The search starts at a specified character position.
|
|
xtd::size | index_of (const basic_string &value, xtd::size start_index, xtd::size count) const |
| Reports the index of the first occurrence of the specified character in this basic_string. The search starts at a specified character position and examines a specified number of character positions.
|
|
xtd::size | index_of (value_type value) const noexcept |
| Reports the index of the first occurrence of the specified character in this basic_string.
|
|
xtd::size | index_of (value_type value, xtd::size start_index) const |
| Reports the index of the first occurrence of the specified character in this basic_string. The search starts at a specified character position.
|
|
xtd::size | index_of (value_type value, xtd::size start_index, xtd::size count) const |
| Reports the index of the first occurrence of the specified character in this basic_string. The search starts at a specified character position and examines a specified number of character positions.
|
|
xtd::size | index_of_any (const xtd::array< value_type > &values) const noexcept |
| Reports the index of the first occurrence in this instance of any character in a specified array of characters.
|
|
xtd::size | index_of_any (const xtd::array< value_type > &values, xtd::size start_index) const |
| 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.
|
|
xtd::size | index_of_any (const xtd::array< value_type > &values, xtd::size start_index, xtd::size count) const |
| 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.
|
|
basic_string | insert (xtd::size start_index, const basic_string &value) const |
| Inserts a specified instance of basic_string at a specified index position in this instance.
|
|
bool | is_empty () const noexcept |
| Indicates whether this basic_string is an empty basic_string ("").
|
|
xtd::size | last_index_of (const basic_string &value) const noexcept |
| Reports the index of the last occurrence of the specified basic_string in this basic_string.
|
|
xtd::size | last_index_of (const basic_string &value, xtd::size start_index) const |
| Reports the index of the last occurrence of the specified character in this basic_string. The search starts at a specified character position.
|
|
xtd::size | last_index_of (const basic_string &value, xtd::size start_index, xtd::size count) const |
| Reports the index of the last occurrence of the specified character in this basic_string. The search starts at a specified character position and examines a specified number of character positions.
|
|
xtd::size | last_index_of (value_type value) const noexcept |
| Reports the index of the last occurrence of the specified character in this tring.
|
|
xtd::size | last_index_of (value_type value, xtd::size start_index) const |
| Reports the index of the last occurrence of the specified character in this basic_string. The search starts at a specified character position.
|
|
xtd::size | last_index_of (value_type value, xtd::size start_index, xtd::size count) const |
| Reports the index of the last occurrence of the specified character in this basic_string. The search starts at a specified character position and examines a specified number of character positions.
|
|
xtd::size | last_index_of_any (const xtd::array< value_type > &values) const noexcept |
| Reports the index of the last occurrence in this instance of any character in a specified array of characters.
|
|
xtd::size | last_index_of_any (const xtd::array< value_type > &values, xtd::size start_index) const |
| 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.
|
|
xtd::size | last_index_of_any (const xtd::array< value_type > &values, xtd::size start_index, xtd::size count) const |
| 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.
|
|
basic_string | pad_left (xtd::size total_width) const noexcept |
| Right-aligns the characters in this basic_string, padding with spaces on the left for a specified total length.
|
|
basic_string | pad_left (xtd::size total_width, char32 padding_char) const noexcept |
| Right-aligns the characters in this basic_string, padding with spaces on the left for a specified total length.
|
|
basic_string | pad_right (xtd::size total_width) const noexcept |
| Left-aligns the characters in this basic_string, padding with spaces on the right for a specified total length.
|
|
basic_string | pad_right (xtd::size total_width, char32 padding_char) const noexcept |
| Left-aligns the characters in this basic_string, padding with spaces on the right for a specified total length.
|
|
basic_string | quoted () const |
| Allows insertion and extraction of quoted strings, such as the ones found in CSV or XML.
|
|
basic_string | quoted (value_type delimiter) const |
| Allows insertion and extraction of quoted strings, such as the ones found in CSV or XML ith specified delimiter.
|
|
basic_string | 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.
|
|
basic_string | remove (xtd::size start_index) const |
| Deletes all the characters from this basic_string beginning at a specified position and continuing through the last position.
|
|
basic_string | remove (xtd::size start_index, xtd::size count) const |
| Deletes all the characters from this basic_string beginning at a specified position and continuing through the last position.
|
|
basic_string | replace (value_type old_char, value_type new_char) const noexcept |
| Replaces all occurrences of a specified char_t in this basic_string with another specified char_t.
|
|
basic_string | replace (const basic_string &old_string, const basic_string &new_string) const noexcept |
| Replaces all occurrences of a specified basic_string in this basic_string with another specified basic_string.
|
|
size_type | rfind (const_pointer s) const |
| Finds the last substring that is equal to the given character sequence. The search begins at xtd::basic_string::nposand proceeds from right to left (thus, the found substring, if any, cannot begin in a position following xtd::basic_string::npos). If xtd::basic_string::npos or any value not smaller than xtd::basic_string::size() - 1 is passed as xtd::basic_string::npos, the whole string will be searched. / @return Position of the first character of the found substring or xtd::basic_string::npos if no such substring is found. / @remarks Finds the first substring equal to str. size_type rfind(const basic_string & str) const {return chars_.rfind(str);} / @brief Finds the last substring that is equal to the given character sequence. The search begins at posand proceeds from right to left (thus, the found substring, if any, cannot begin in a position following pos). If xtd::basic_string::npos or any value not smaller than xtd::basic_string::size() - 1 is passed as pos, the whole string will be searched. / @param str The string to search for. / @param pos The position at which to start the search / @return Position of the first character of the found substring or xtd::basic_string::npos if no such substring is found. / @remarks Finds the first substring equal to str. size_type rfind(const basic_string & str, size_type pos) const {return chars_.rfind(str, pos);} / @brief Finds the last substring that is equal to the given character sequence. The search begins at posand proceeds from right to left (thus, the found substring, if any, cannot begin in a position following pos). If xtd::basic_string::npos or any value not smaller than xtd::basic_string::size() - 1 is passed as pos, the whole string will be searched. / @param str The string to search for. / @param pos The position at which to start the search / @param count The length of substring to search for. / @return Position of the first character of the found substring or xtd::basic_string::npos if no such substring is found. / @remarks Finds the first substring equal to the range [s, s + count). / @remarks This range may contain null characters. If [ s, s + count) is not a valid range, the behavior is undefined. size_type rfind(const_pointer s, size_type pos, size_type count) const {return chars_.rfind(s, pos, count);} / @brief Finds the last substring that is equal to the given character sequence. The search begins at xtd::basic_string::npos and proceeds from right to left (thus, the found substring, if any, cannot begin in a position following xtd::basic_string::npos). If xtd::basic_string::npos or any value not smaller than xtd::basic_string::size() - 1 is passed as xtd::basic_string::npos, the whole string will be searched.
|
|
size_type | rfind (const_pointer s, size_type pos) const |
| Finds the last substring that is equal to the given character sequence. The search begins at pos and proceeds from right to left (thus, the found substring, if any, cannot begin in a position following pos ). If xtd::basic_string::npos or any value not smaller than xtd::basic_string::size() - 1 is passed as pos , the whole string will be searched.
|
|
|
using | value_type |
| Represents the xtd::collections::generic::ienumerable value type.
|
|
using | iterator |
| Represents the iterator of xtd::collections::generic::ienumerable value type.
|
|
using | const_iterator |
| Represents the const iterator of xtd::collections::generic::ienumerable value type.
|
|
using | iterator |
| Represents the iterator of enumerable value type.
|
|
using | const_iterator |
| Represents the const iterator of enumerable value type.
|
|
using | enumerable_type |
| Represents the ienumerable enumerable type.
|
|
using | source_type |
| Represents the ienumerable source type.
|
|
using | ienumerable |
| Represents the ienumerable value type.
|
|
using | list |
| Represents the list value type.
|
|
| 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<class object_t> |
xtd::unique_ptr_object< object_t > | memberwise_clone () const |
| Creates a shallow copy of the current object.
|
|
virtual xtd::string | to_string () const noexcept |
| Returns a xtd::string that represents the current object.
|
|
virtual const_iterator | begin () const |
| Returns an iterator to the first element of the enumerable.
|
|
virtual iterator | begin () |
| Returns an iterator to the first element of the enumerable.
|
|
virtual const_iterator | cbegin () const |
| Returns an iterator to the first element of the enumerable.
|
|
virtual const_iterator | cend () const |
| Returns an iterator to the element following the last element of the enumerable.
|
|
virtual const_iterator | end () const |
| Returns an iterator to the element following the last element of the enumerable.
|
|
virtual iterator | end () |
| Returns an iterator to the element following the last element of the enumerable.
|
|
char_t | aggregate (const std::function< char_t(const char_t &, const char_t &)> &func) const |
| Applies an accumulator function over a sequence.
|
|
char_t | aggregate (const char_t &seed, const std::function< char_t(const char_t &, const char_t &)> &func) const |
| Applies an accumulator function over a sequence. The specified seed value is used as the initial accumulator value.
|
|
accumulate_t | aggregate (const accumulate_t &seed, const std::function< accumulate_t(const char_t &, const accumulate_t &)> &func) const |
| Applies an accumulator function over a sequence. The specified seed value is used as the initial accumulator value.
|
|
char_t | aggregate (const char_t &seed, const std::function< char_t(const char_t &, const char_t &)> &func, const std::function< char_t(const char_t &)> &result_selector) const |
| Applies an accumulator function over a sequence. The specified seed value is used as the initial accumulator value, and the specified function is used to select the result value.
|
|
result_t | aggregate (const accumulate_t &seed, const std::function< accumulate_t(const char_t &, const accumulate_t &)> &func, const std::function< result_t(const accumulate_t &)> &result_selector) const |
| Applies an accumulator function over a sequence. The specified seed value is used as the initial accumulator value, and the specified function is used to select the result value.
|
|
bool | all (const std::function< bool(const char_t &)> &predicate) const |
| Determines whether all elements of a sequence satisfy a condition.
|
|
bool | any () const noexcept |
| Determines whether a sequence contains any elements.
|
|
bool | any (const std::function< bool(const char_t &)> &predicate) const |
| Determines whether any element of a sequence satisfies a condition.
|
|
auto | append (const char_t &element) const noexcept |
| Appends a value to the end of the sequence.
|
|
auto | as_enumerable () const noexcept |
| Returns the input typed as xtd::collections::generic::ienumerable <type_t>.
|
|
auto | average () const noexcept |
| Computes the average of a sequence of source_t values.
|
|
auto | cast () const noexcept |
| Casts the elements of an xtd::collections::generic::ienumerable to the specified type.
|
|
auto | chunk (size_t size) const |
| Splits the elements of a sequence into chunks of size at most size.
|
|
auto | concat (const ienumerable< char_t > &second) const noexcept |
| Concatenates two sequences.
|
|
bool | contains (const char_t &value) const noexcept |
| Determines whether a sequence contains a specified element by using the default equality comparer.
|
|
bool | contains (const char_t &value, const xtd::collections::generic::iequality_comparer< char_t > &comparer) const noexcept |
| Determines whether a sequence contains a specified element by using a specified equality comparer.
|
|
size_t | count () const noexcept |
| Returns the number of elements in current sequence.
|
|
size_t | count (const std::function< bool(const char_t &)> &predicate) const noexcept |
| Returns a number that represents how many elements in the specified sequence satisfy a condition.
|
|
xtd::size | count (const char_t &value) const noexcept |
| Returns the number of elements with the specified value.
|
|
auto | count_by (const std::function< key_t(const char_t &)> &key_selector) const noexcept |
| Returns the count of elements in the current sequence grouped by key.
|
|
auto | count_by (const std::function< key_t(const char_t &)> &key_selector, const iequality_comparer< key_t > &key_comparer) const noexcept |
| Returns the count of elements in the current sequence grouped by key.
|
|
auto | default_if_empty () const noexcept |
| Returns the elements of the specified sequence or the type parameter's default value in a singleton collection if the current sequence is empty.
|
|
auto | default_if_empty (const char_t &default_value) const noexcept |
| Returns the elements of the specified sequence or the specified value in a singleton collection if the current sequence is empty.
|
|
auto | distinct () const noexcept |
| Returns distinct elements from a sequence by using the default equality comparer to compare values.
|
|
auto | distinct (const xtd::collections::generic::iequality_comparer< char_t > &comparer) const noexcept |
| Returns distinct elements from a sequence by using a specified xtd::collections::generic::iequality_comparer <type_t> to compare values.
|
|
char_t | first_or_default (const std::function< bool(const char_t &)> &predicate, const char_t &default_value) const noexcept |
| Returns the first element of the sequence that satisfies a condition, or a specified default value if no such element is found.
|
|
char_t | first_or_default (const std::function< bool(const char_t &)> &predicate) const noexcept |
| Returns the first element of the sequence that satisfies a condition or a default value if no such element is found.
|
|
char_t | first_or_default (const char_t default_value) const noexcept |
| Returns the first element of the sequence that satisfies a condition or a default value if no such element is found.
|
|
char_t | first_or_default () const noexcept |
| Returns the first element of the sequence that satisfies a condition or a default value if no such element is found.
|
|
auto | order_by (const std::function< char_t(const char_t &)> &key_selector) const |
| Sorts the elements of a sequence in ascending order according to a key.
|
|
auto | order_by (const std::function< key_t(const char_t &)> &key_selector) const |
| Sorts the elements of a sequence in ascending order according to a key.
|
|
auto | order_by_descending (const std::function< key_t(const char_t &)> &key_selector) const |
| Sorts the elements of a sequence in descending order according to a key.
|
|
auto | order_by_descending (const std::function< char_t(const char_t &)> &key_selector) const |
| Sorts the elements of a sequence in descending order according to a key.
|
|
auto | select (const std::function< result_t(const char_t &)> &selector) const |
| Projects each element of a sequence into a new form.
|
|
auto | select (const std::function< char_t(const char_t &)> &selector) const |
| Projects each element of a sequence into a new form.
|
|
auto | select (const std::function< result_t(const char_t &, size_t index)> &selector) const |
| Projects each element of a sequence into a new form by incorporating the element's index.
|
|
auto | select (const std::function< char_t(const char_t &, size_t index)> &selector) const |
| Projects each element of a sequence into a new form by incorporating the element's index.
|
|
const list< char_t > & | to_list () const noexcept |
| Creates a xtd::collections::generic::list <type_t> from an xtd::collections::generic::ienumerable <type_t>.
|
|
auto | where (const std::function< bool(const char_t &)> &predicate) const |
| Filters a sequence of values based on a predicate.
|
|
auto | where (const std::function< bool(const char_t &, size_t)> &predicate) const |
| Filters a sequence of values based on a predicate. Each element's index is used in the logic of the predicate function.
|
|
template<class object_a_t, class 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<class object_a_t, class 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.
|
|
static target_collection_t::const_iterator | to_const_iterator (typename source_collection_t::const_iterator &value, const source_collection_t &source_collection, const target_collection_t &target_collection) noexcept |
| Converts source iterator to target iterator.
|
|
static target_collection_t::const_iterator | to_const_iterator (typename source_collection_t::const_iterator &value, source_collection_t &source_collection, target_collection_t &target_collection) noexcept |
| Converts source iterator to target iterator.
|
|
static target_collection_t::const_iterator | to_iterator (typename source_collection_t::const_iterator &value, const source_collection_t &source_collection, const target_collection_t &target_collection) noexcept |
| Converts source iterator to target iterator.
|
|
static target_collection_t::iterator | to_iterator (typename source_collection_t::iterator &value, const source_collection_t &source_collection, const target_collection_t &target_collection) noexcept |
| Converts source iterator to target iterator.
|
|
static target_collection_t::const_iterator | to_iterator (typename source_collection_t::const_iterator &value, source_collection_t &source_collection, target_collection_t &target_collection) noexcept |
| Converts source iterator to target iterator.
|
|
static target_collection_t::iterator | to_iterator (typename source_collection_t::iterator &value, source_collection_t &source_collection, target_collection_t &target_collection) noexcept |
| Converts source iterator to target iterator.
|
|