35 template<
class char_t,
class traits_t = std::
char_traits<
char_t>,
class allocator_t = xtd::collections::
generic::helpers::allocator<
char_t >>
43 using base_type = std::basic_string<char_t, traits_t, allocator_t>;
45 using traits_type =
typename base_type::traits_type;
47 using value_type =
typename base_type::value_type;
49 using allocator_type =
typename base_type::allocator_type;
51 using size_type =
typename base_type::size_type;
53 using difference_type =
typename base_type::difference_type;
55 using reference =
typename base_type::reference;
57 using const_reference =
typename base_type::const_reference;
59 using pointer =
typename base_type::pointer;
61 using const_pointer =
typename base_type::const_pointer;
64 using iterator =
typename base_type::iterator;
67 using const_iterator =
typename base_type::const_iterator;
69 using reverse_iterator =
typename base_type::reverse_iterator;
71 using const_reverse_iterator =
typename base_type::const_reverse_iterator;
78 inline static constexpr size_type npos = base_type::npos;
175 chars_ = base_type(str.chars_, index);
184 chars_ = base_type(str.chars_, index, allocator);
194 chars_ = base_type(str.chars_, index, count);
204 chars_ = base_type(str.chars_, index, count, allocator);
239 chars_ = base_type(str);
246 chars_ = base_type(str, allocator);
253 chars_ = base_type(str, count);
261 chars_ = base_type(str, count);
270 basic_string_builder(
const std::basic_string<value_type>& str,
const allocator_type & allocator) noexcept : chars_(str, allocator) {}
275 template<
class input_iterator_t>
281 template<
class input_iterator_t>
291 basic_string_builder(std::initializer_list<value_type> il,
const allocator_type & allocator) : chars_(il, allocator) {}
308 const_iterator
begin()
const {
return chars_.begin();}
311 iterator
begin() {
return chars_.begin();}
321 const_pointer c_str()
const noexcept {
return chars_.c_str();}
325 size_type capacity()
const noexcept {
return chars_.capacity();}
335 const_iterator
cbegin()
const {
return chars_.cbegin();}
339 const base_type & chars()
const noexcept {
return chars_;}
343 base_type & chars()
noexcept {
return chars_;}
347 const_iterator
cend()
const {
return chars_.cend();}
356 const_pointer
data()
const noexcept {
return chars_.data();}
364 pointer
data()
noexcept {
return chars_.data();}
368 bool empty()
const noexcept {
return chars_.empty();}
372 const_iterator
end()
const {
return chars_.end();}
375 iterator
end() {
return chars_.end();}
393 size_type
length()
const noexcept {
return chars_.size();}
404 if (value !=
length()) resize(value);
410 size_type max_capacity()
const noexcept {
return max_capacity_;}
414 size_type max_size()
const noexcept {
return chars_.max_size();}
418 size_type
size()
const noexcept {
return chars_.size();}
748 basic_string_builder & append(value_type value, size_type repeat_count) {
return append(repeat_count, value);}
765 template<
class object_t>
813 chars_.append(str.chars_, pos, count);
844 template<
class input_iterator_t>
878 template<
class ...args_t>
889 template<
class collection_t>
899 template<
class collection_t>
903 template<
class value_t>
905 template<
class value_t>
928 const_reference
at(size_type pos)
const {
return operator [](pos);}
983 int32 compare(size_type pos1, size_type count1,
const basic_string_builder & str)
const {
return chars_.compare(pos1, count1, str);}
1007 int32 compare(size_type pos1, size_type count1,
const basic_string_builder & str, size_type pos2)
const {
return chars_.compare(pos1, count1, str, pos2);}
1032 int32 compare(size_type pos1, size_type count1,
const basic_string_builder & str, size_type pos2, size_type count2)
const {
return chars_.compare(pos1, count1, str, pos2, count2);}
1051 int32 compare(const_pointer
s)
const {
return chars_.compare(
s);}
1073 int32 compare(size_type pos1, size_type count1, const_pointer
s)
const {
return chars_.compare(pos1, count1,
s);}
1096 int32 compare(size_type pos1, size_type count1, const_pointer
s, size_type count2)
const {
return chars_.compare(pos1, count1,
s, count2);}
1103 size_type
copy(pointer dest, size_type count)
const {
1105 return chars_.copy(dest, count);
1103 size_type
copy(pointer dest, size_type count)
const {
…}
1113 size_type
copy(pointer dest, size_type count, size_type pos)
const {
1115 return chars_.copy(dest, count, pos);
1113 size_type
copy(pointer dest, size_type count, size_type pos)
const {
…}
1129 copy(destination.
data() + destination_index, destination_count, source_index);
1148 if (this->capacity() < capacity) this->capacity(capacity);
1149 return this->capacity();
1165 chars_.erase(index);
1175 chars_.erase(index, count);
1183 iterator
erase(const_iterator position) {
return chars_.erase(position);}
1209 size_type
find(const_pointer
s, size_type pos, size_type count)
const {
return chars_.find(
s, pos, count);}
1215 size_type
find(const_pointer
s)
const {
return chars_.find(
s);}
1222 size_type
find(const_pointer
s, size_type pos)
const {
return chars_.find(
s, pos);}
1227 size_type
find(value_type ch)
const {
return chars_.find(ch);}
1233 size_type
find(value_type ch, size_type pos)
const {
return chars_.find(ch, pos);}
1253 size_type
find_first_of(const_pointer
s, size_type pos, size_type count)
const {
return chars_.find_first_of(
s, pos, count);}
1266 size_type
find_first_of(const_pointer
s, size_type pos)
const {
return chars_.find_first_of(
s, pos);}
1277 size_type
find_first_of(value_type ch, size_type pos)
const {
return chars_.find_first_of(ch, pos);}
1297 size_type
find_first_not_of(const_pointer
s, size_type pos, size_type count)
const {
return chars_.find_first_not_of(
s, pos, count);}
1321 size_type
find_first_not_of(value_type ch, size_type pos)
const {
return chars_.find_first_not_of(ch, pos);}
1341 size_type
find_last_of(const_pointer
s, size_type pos, size_type count)
const {
return chars_.find_last_of(
s, pos, count);}
1354 size_type
find_last_of(const_pointer
s, size_type pos)
const {
return chars_.find_last_of(
s, pos);}
1359 size_type
find_last_of(value_type ch)
const {
return chars_.find_last_of(ch);}
1365 size_type
find_last_of(value_type ch, size_type pos)
const {
return chars_.find_last_of(ch, pos);}
1385 size_type
find_last_not_of(const_pointer
s, size_type pos, size_type count)
const {
return chars_.find_last_not_of(
s, pos, count);}
1398 size_type
find_last_not_of(const_pointer
s, size_type pos)
const {
return chars_.find_last_not_of(
s, pos);}
1409 size_type
find_last_not_of(value_type ch, size_type pos)
const {
return chars_.find_last_not_of(ch, pos);}
1601 template<
class object_t>
1613 chars_.insert(index, count, ch);
1630 basic_string_builder &
insert(size_type index, const_pointer
s, size_type count) {
return insert(index, basic_string_builder(
s, count));}
1637 basic_string_builder &
insert(size_type index,
const basic_string_builder & str) {
return insert(index, str, 0, str.length());}
1650 chars_.insert(index, str.chars_, s_index, count);
1667 iterator
insert(const_iterator pos, value_type ch) {
return insert(pos, 1, ch);}
1675 iterator
insert(const_iterator pos, size_type count, value_type ch) {
1678 return chars_.insert(pos, count, ch);
1688 template<
class input_iterator_t>
1689 iterator
insert(const_iterator pos, input_iterator_t
first, input_iterator_t
last) {
1700 iterator
insert(const_iterator pos, std::initializer_list<value_type> ilist) {
1702 return chars_.insert(pos, ilist);
1707 void pop_back() {chars_.pop_back();}
1711 void push_back(value_type ch) {chars_.push_back(ch);}
1727 basic_string_builder &
replace(value_type old_char, value_type new_char)
noexcept {
return replace(old_char, new_char, 0,
length());}
1735 basic_string_builder &
replace(value_type old_char, value_type new_char, size_type start_index, size_type count) {
return replace(xtd::basic_string<char_t>(1, old_char), xtd::basic_string<char_t>(1, new_char), start_index, count);}
1753 auto old_size = old_value.size();
1754 auto new_size = new_value.size();
1757 index =
find(old_value, index);
1758 if (index == npos || index >= start_index + count)
break;
1759 if (index >= start_index) {
1760 if (old_size == new_size)
replace(index, old_size, new_value);
1762 erase(index, old_value.size());
1763 insert(index, new_value);
1766 index += new_value.size();
1777 basic_string_builder &
replace(size_type pos, size_type count,
const basic_string_builder & str) {
1779 chars_.replace(pos, count, str);
1803 chars_.replace(pos, count, str, pos2);
1817 chars_.replace(pos, count, str, pos2, count2);
1829 chars_.replace(pos, count, cstr, count2);
1842 chars_.replace(
first,
last, cstr, count2);
1851 basic_string_builder &
replace(size_type pos, size_type count, const_pointer cstr) {
1852 chars_.replace(pos, count, cstr);
1873 chars_.replace(pos, count, count2, ch);
1884 chars_.replace(
first,
last, count2, ch);
1895 template<
class input_iterator_t>
1917 void reserve(size_type new_cap) {
1919 if (new_cap <= capacity())
return;
1920 chars_.reserve(new_cap);
1927 void resize(size_type count) {chars_.resize(count);}
1933 void resize(size_type count, value_type ch) {chars_.resize(count, ch);}
1952 size_type
rfind(const_pointer
s, size_type pos, size_type count)
const {
return chars_.rfind(
s, pos, count);}
1958 size_type
rfind(const_pointer
s)
const {
return chars_.rfind(
s);}
1965 size_type
rfind(const_pointer
s, size_type pos)
const {
return chars_.rfind(
s, pos);}
1970 size_type
rfind(value_type ch)
const {
return chars_.rfind(ch);}
1976 size_type
rfind(value_type ch, size_type pos)
const {
return chars_.rfind(ch, pos);}
1995 return chars_.substr(pos);
2005 return chars_.substr(pos, count);
2034 return chars_[index];
2042 return chars_[index];
2047 operator const base_type & ()
const noexcept {
return chars_;}
2050 operator base_type & ()
noexcept {
return chars_;}
2056 chars_ = str.chars_;
2064 chars_ = std::move(str.chars_);
2080 chars_ = std::move(str);
2096 chars_ = std::move(str);
2130 chars_ += str.chars_;
2138 chars_ += std::move(str.chars_);
2175 auto result = std::move(lhs);
2176 result += std::move(rhs);
2185 auto result = std::move(lhs);
2196 result += std::move(rhs);
2215 auto result = std::move(lhs);
2225 return lhs + rhs.chars_;
2233 return lhs + std::move(rhs).chars_;
2251 auto result = std::move(lhs);
2272 result += std::move(rhs);
2285 friend std::basic_ostream<char>&
operator <<(std::basic_ostream<char>& stream,
const basic_string_builder & str) {
return stream << xtd::basic_string<char>(str.chars()).chars();}
2292 friend std::basic_ostream<xtd::wchar>&
operator <<(std::basic_ostream<xtd::wchar>& stream,
const basic_string_builder & str) {
return stream << xtd::basic_string<xtd::wchar>(str.chars()).chars();}
2303 auto s = std::basic_string<char> {};
2317 auto s = std::basic_string<xtd::wchar> {};
2326 size_type max_capacity_ = chars_.max_size();
Contains xtd::argument_exception exception.
Contains xtd::argument_out_of_range_exception exception.
Contains xtd::basic_string class.
Provides methods for creating, manipulating, searching, and sorting arrays, thereby serving as the ba...
Definition array.hpp:61
virtual pointer data() noexcept
Returns pointer to the underlying array serving as element storage.
Definition basic_array.hpp:166
virtual size_type size() const noexcept
Returns the number of elements in the container, i.e. std::distance(xtd::array::begin(),...
Definition basic_array.hpp:246
Represents text as a sequence of character units.
Definition basic_string.hpp:71
static xtd::string new_line() noexcept
Gets the newline string defined for this environment.
static xtd::size combine(args_t... values) noexcept
Combines values into a hash code.
Definition hash_code.hpp:70
static void throws(xtd::helpers::exception_case exception_case, const source_location &location=source_location::current())
Throws an exption with specified exception case.
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition iequatable.hpp:22
object()=default
Create a new instance of the ultimate base class object.
Represents a mutable string of characters. This class cannot be inherited.
Definition basic_string_builder.hpp:36
size_type find_first_of(const basic_string_builder &str, size_type pos) const
Finds the first character equal to one of the characters in the given character sequence....
Definition basic_string_builder.hpp:1245
size_type find_first_of(value_type ch, size_type pos) const
Finds the first character equal to one of the characters in the given character sequence....
Definition basic_string_builder.hpp:1277
basic_string_builder & operator+=(const basic_string_builder &str)
Addition assignment operator. Appends additional characters to the string.
Definition basic_string_builder.hpp:2129
size_type find_last_not_of(value_type ch) const
Finds the last character equal to none of the characters in the given character sequence....
Definition basic_string_builder.hpp:1403
iterator erase(const_iterator position)
Removes specified characters from the string.
Definition basic_string_builder.hpp:1183
bool equals(const basic_string_builder &value) const noexcept override
Determines whether this instance and another specified xtd::text::basic_string_builder object have th...
Definition basic_string_builder.hpp:1140
basic_string_builder & replace(size_type pos, size_type count, const basic_string_builder &str, size_type pos2)
Replaces the characters in the range [begin() + pos, begin() + std::min(pos + count,...
Definition basic_string_builder.hpp:1800
size_type find_first_of(const_pointer s) const
Finds the first character equal to one of the characters in the given character sequence....
Definition basic_string_builder.hpp:1259
basic_string_builder & replace(const_iterator first, const_iterator last, input_iterator_t first2, input_iterator_t last2)
Replaces the characters in the range [begin() + pos, begin() + std::min(pos + count,...
Definition basic_string_builder.hpp:1896
size_type find_first_of(const basic_string_builder &str) const
Finds the first character equal to one of the characters in the given character sequence....
Definition basic_string_builder.hpp:1239
basic_string_builder & insert(size_type index, xtd::uint16 value)
Inserts the string representation of a specified 16-bit unsigned integer into this instance at the sp...
Definition basic_string_builder.hpp:1543
size_type find_last_of(const basic_string_builder &str) const
Finds the last character equal to one of characters in the given character sequence....
Definition basic_string_builder.hpp:1327
basic_string_builder substr() const
Returns a substring [pos, pos + count). If the requested substring extends past the end of the string...
Definition basic_string_builder.hpp:1987
size_type find_first_of(value_type ch) const
Finds the first character equal to one of the characters in the given character sequence....
Definition basic_string_builder.hpp:1271
basic_string_builder & insert(size_type index, double value)
Inserts the string representation of a specified double into this instance at the specified character...
Definition basic_string_builder.hpp:1483
size_type find(value_type ch) const
Finds the first substring equal to the given character sequence. Search begins at 0,...
Definition basic_string_builder.hpp:1227
friend std::basic_istream< char > & operator>>(std::basic_istream< char > &stream, basic_string_builder &str)
Input stream operator. Behaves as a FormattedInputFunction. After constructing and checking the sentr...
Definition basic_string_builder.hpp:2302
basic_string_builder & operator=(const basic_string_builder &str) noexcept
Copy assignment operator. Replaces the contents with a copy of the contents of str.
Definition basic_string_builder.hpp:2055
basic_string_builder & replace(size_type pos, size_type count, const_pointer cstr, size_type count2)
Replaces the characters in the range [begin() + pos, begin() + std::min(pos + count,...
Definition basic_string_builder.hpp:1827
size_type find_first_not_of(value_type ch, size_type pos) const
Finds the first character equal to none of the characters in the given character sequence....
Definition basic_string_builder.hpp:1321
virtual const base_type & get_base_type() const noexcept
Returns the underlying base type.
Definition basic_string_builder.hpp:1417
size_type rfind(value_type ch) const
Finds the last substring that is equal to the given character sequence. The search begins at xtd::tex...
Definition basic_string_builder.hpp:1970
size_type find_first_not_of(value_type ch) const
Finds the first character equal to none of the characters in the given character sequence....
Definition basic_string_builder.hpp:1315
basic_string_builder & replace(const_iterator first, const_iterator last, const_pointer cstr)
Replaces the characters in the range [begin() + pos, begin() + std::min(pos + count,...
Definition basic_string_builder.hpp:1861
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....
Definition basic_string_builder.hpp:1391
basic_string_builder & replace(size_type pos, size_type count, const basic_string_builder &str, size_type pos2, size_type count2)
Replaces the characters in the range [begin() + pos, begin() + std::min(pos + count,...
Definition basic_string_builder.hpp:1814
size_type find(const_pointer s, size_type pos) const
Finds the first substring equal to the given character sequence. Search begins at pos,...
Definition basic_string_builder.hpp:1222
size_type find_last_of(value_type ch) const
Finds the last character equal to one of characters in the given character sequence....
Definition basic_string_builder.hpp:1359
basic_string_builder & insert(size_type index, xtd::decimal value)
Inserts the string representation of a specified 8decimal into this instance at the specified charact...
Definition basic_string_builder.hpp:1473
const_reference operator[](xtd::size index) const
Returns a reference to the character at specified location index.
Definition basic_string_builder.hpp:2032
void shrink_to_fit()
Requests the removal of unused capacity.
Definition basic_string_builder.hpp:1981
basic_string_builder substr(size_type pos, size_type count) const
Returns a substring [pos, pos + count). If the requested substring extends past the end of the string...
Definition basic_string_builder.hpp:2003
iterator erase(const_iterator first, const_iterator last)
Removes specified characters from the string.
Definition basic_string_builder.hpp:1190
size_type find_last_of(const_pointer s) const
Finds the last character equal to one of characters in the given character sequence....
Definition basic_string_builder.hpp:1347
basic_string_builder & insert(size_type index, value_type value, size_type repeat_count)
Inserts a specified number of copies of the string representation of a Unicode character to this inst...
Definition basic_string_builder.hpp:1584
size_type find_last_not_of(value_type ch, size_type pos) const
Finds the last character equal to none of the characters in the given character sequence....
Definition basic_string_builder.hpp:1409
basic_string_builder & insert(size_type index, size_type count, value_type ch)
Inserts characters into the string.
Definition basic_string_builder.hpp:1610
size_type rfind(const basic_string_builder &str, size_type pos) const
Finds the last substring that is equal to the given character sequence. The search begins at pos and ...
Definition basic_string_builder.hpp:1944
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....
Definition basic_string_builder.hpp:1266
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....
Definition basic_string_builder.hpp:1303
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....
Definition basic_string_builder.hpp:1310
size_type find_last_not_of(const basic_string_builder &str) const
Finds the last character equal to none of the characters in the given character sequence....
Definition basic_string_builder.hpp:1371
basic_string_builder & erase()
Removes specified characters from the string.
Definition basic_string_builder.hpp:1155
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....
Definition basic_string_builder.hpp:1253
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....
Definition basic_string_builder.hpp:1354
xtd::size get_hash_code() const noexcept override
Returns the hash code for this basic_string_builder.
Definition basic_string_builder.hpp:1421
size_type find_first_not_of(const basic_string_builder &str, size_type pos) const
Finds the first character equal to none of the characters in the given character sequence....
Definition basic_string_builder.hpp:1289
basic_string_builder & insert(size_type index, const basic_string_builder &str, size_type s_index, size_type count)
Inserts characters into the string.
Definition basic_string_builder.hpp:1646
size_type copy(pointer dest, size_type count, size_type pos) const
Copies a substring [pos, pos + count) to character string pointed to by dest. If the requested substr...
Definition basic_string_builder.hpp:1113
size_type find_last_of(const basic_string_builder &str, size_type pos) const
Finds the last character equal to one of characters in the given character sequence....
Definition basic_string_builder.hpp:1333
basic_string_builder & insert(size_type index, xtd::boolean value)
Inserts the string representation of a boolean value into this instance at the specified character po...
Definition basic_string_builder.hpp:1453
size_type find_first_not_of(const basic_string_builder &str) const
Finds the first character equal to none of the characters in the given character sequence....
Definition basic_string_builder.hpp:1283
basic_string_builder & insert(size_type index, value_type value)
Inserts the string representation of a specified Unicode character into this instance at the specifie...
Definition basic_string_builder.hpp:1573
basic_string_builder & replace(const_iterator first, const_iterator last, const basic_string_builder &str)
Replaces, within a substring of this instance, all occurrences of a specified string with another spe...
Definition basic_string_builder.hpp:1789
size_type find_last_not_of(const basic_string_builder &str, size_type pos) const
Finds the last character equal to none of the characters in the given character sequence....
Definition basic_string_builder.hpp:1377
basic_string_builder & insert(size_type index, xtd::uint64 value)
Inserts the string representation of a specified 64-bit unsigned integer into this instance at the sp...
Definition basic_string_builder.hpp:1563
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,...
Definition basic_string_builder.hpp:1209
xtd::string to_string() const noexcept override
Converts the value of this instance to a xtd::text::basic_string_builder <char>.
Definition basic_string_builder.hpp:2016
friend std::basic_ostream< char > & operator<<(std::basic_ostream< char > &stream, const basic_string_builder &str)
Output stream operator. Behaves as a FormattedOutputFunction. After constructing and checking the sen...
Definition basic_string_builder.hpp:2285
basic_string_builder & replace(const xtd::basic_string< char_t > &old_value, const xtd::basic_string< char_t > &new_value) noexcept
Inserts characters into the string.
Definition basic_string_builder.hpp:1742
basic_string_builder & insert(size_type index, object_t value)
Inserts the string representation of a specified object into this instance at the specified character...
Definition basic_string_builder.hpp:1602
basic_string_builder & insert(size_type index, xtd::int32 value)
Inserts the string representation of a specified 32-bit signed integer into this instance at the spec...
Definition basic_string_builder.hpp:1513
basic_string_builder & replace(size_type pos, size_type count, size_type count2, value_type ch)
Replaces the characters in the range [begin() + pos, begin() + std::min(pos + count,...
Definition basic_string_builder.hpp:1871
size_type rfind(const_pointer s, size_type pos, size_type count) const
Finds the last substring that is equal to the given character sequence. The search begins at pos and ...
Definition basic_string_builder.hpp:1952
int32 compare(size_type pos1, size_type count1, const_pointer s, size_type count2) const
Compares two character sequences.
Definition basic_string_builder.hpp:1096
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....
Definition basic_string_builder.hpp:1398
void swap(basic_string_builder &other) noexcept
Exchanges the contents of the string with those of other. All iterators and references may be invalid...
Definition basic_string_builder.hpp:2010
size_type find(const_pointer s) const
Finds the first substring equal to the given character sequence. Search begins at 0,...
Definition basic_string_builder.hpp:1215
basic_string_builder substr(size_type pos) const
Returns a substring [pos, pos + count). If the requested substring extends past the end of the string...
Definition basic_string_builder.hpp:1993
basic_string_builder & erase(size_type index)
Removes specified characters from the string.
Definition basic_string_builder.hpp:1163
void copy_to(xtd::size source_index, xtd::array< value_type > &destination, xtd::size destination_index, xtd::size destination_count) const
Copies the characters from a specified segment of this instance to a specified segment of a destinati...
Definition basic_string_builder.hpp:1126
allocator_type get_allocator() const
Returns the allocator associated with the string.
Definition basic_string_builder.hpp:1413
basic_string_builder & insert(size_type index, xtd::byte value)
Inserts the string representation of a specified 8-bit unsigned integer into this instance at the spe...
Definition basic_string_builder.hpp:1463
basic_string_builder & erase(size_type index, size_type count)
Removes specified characters from the string.
Definition basic_string_builder.hpp:1173
size_type ensure_capacity(size_type capacity)
Ensures that the capacity of this instance of xtd::text::basic_string_builder is at least the specifi...
Definition basic_string_builder.hpp:1147
basic_string_builder & insert(size_type index, xtd::sbyte value)
Inserts the string representation of a specified 8-bit signed integer into this instance at the speci...
Definition basic_string_builder.hpp:1533
basic_string_builder & insert(size_type index, const xtd::basic_string< char_t > &value, size_type count)
Inserts one or more copies of a specified string into this instance at the specified character positi...
Definition basic_string_builder.hpp:1443
size_type find(const basic_string_builder &str, size_type pos) const
Finds the first substring equal to the given character sequence. Search begins at pos,...
Definition basic_string_builder.hpp:1201
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....
Definition basic_string_builder.hpp:1297
size_type find(value_type ch, size_type pos) const
Finds the first substring equal to the given character sequence. Search begins at pos,...
Definition basic_string_builder.hpp:1233
friend basic_string_builder operator+(const basic_string_builder &lhs, const basic_string_builder &rhs)
Addition operator. Returns a string containing characters from lhs followed by the characters from rh...
Definition basic_string_builder.hpp:2164
basic_string_builder & insert(size_type index, const xtd::basic_string< char_t > &value)
Inserts a string into this instance at the specified character position.
Definition basic_string_builder.hpp:1432
size_type rfind(value_type ch, size_type pos) const
Finds the last substring that is equal to the given character sequence. The search begins at pos and ...
Definition basic_string_builder.hpp:1976
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....
Definition basic_string_builder.hpp:1385
size_type find(const basic_string_builder &str) const
Finds the first substring equal to the given character sequence. Search begins at 0,...
Definition basic_string_builder.hpp:1195
size_type copy(pointer dest, size_type count) const
Copies a substring [pos, pos + count) to character string pointed to by dest. If the requested substr...
Definition basic_string_builder.hpp:1103
basic_string_builder & insert(size_type index, xtd::uint32 value)
Inserts the string representation of a specified 32-bit unsigned integer into this instance at the sp...
Definition basic_string_builder.hpp:1553
basic_string_builder & insert(size_type index, xtd::int64 value)
Inserts the string representation of a specified 64-bit signed integer into this instance at the spec...
Definition basic_string_builder.hpp:1523
basic_string_builder & insert(size_type index, xtd::int16 value)
Inserts the string representation of a specified 16-bit signed integer into this instance at the spec...
Definition basic_string_builder.hpp:1503
basic_string_builder & insert(size_type index, xtd::single value)
Inserts the string representation of a specified single into this instance at the specified character...
Definition basic_string_builder.hpp:1493
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....
Definition basic_string_builder.hpp:1341
size_type find_last_of(value_type ch, size_type pos) const
Finds the last character equal to one of characters in the given character sequence....
Definition basic_string_builder.hpp:1365
bool equals(const object &obj) const noexcept override
Determines whether this instance and a specified object, which must also be a xtd::text::basic_string...
Definition basic_string_builder.hpp:1135
size_type rfind(const basic_string_builder &str) const
Replaces the characters in the range [begin() + pos, begin() + std::min(pos + count,...
Definition basic_string_builder.hpp:1938
Contains xtd::environment class.
@ index_out_of_range
The index is out of range.
Definition exception_case.hpp:59
@ argument_out_of_range
The argument is out of range.
Definition exception_case.hpp:35
@ null_pointer
The pointer is null.
Definition exception_case.hpp:77
xtd::basic_string< char > string
Represents text as a sequence of UTF-8 code units.
Definition __string_definitions.hpp:43
size_t size
Represents a size of any object in bytes.
Definition size.hpp:23
__slong__ slong
Represents a 32-bit or 64-bit signed integer.
Definition slong.hpp:27
null_ptr null
Represents a null pointer value.
int8_t sbyte
Represents a 8-bit signed integer.
Definition sbyte.hpp:23
int32_t int32
Represents a 32-bit signed integer.
Definition int32.hpp:23
bool boolean
Represents a boolean.
Definition boolean.hpp:23
__ulong__ ulong
Represents a 32-bit or 64-bit unsigned integer.
Definition ulong.hpp:27
long double decimal
Represents a decimal-precision floating-point number.
Definition decimal.hpp:23
uint8_t byte
Represents a 8-bit unsigned integer.
Definition byte.hpp:23
int64_t int64
Represents a 64-bit signed integer.
Definition int64.hpp:23
int16_t int16
Represents a 16-bit signed integer.
Definition int16.hpp:23
uint16_t uint16
Represents a 16-bit unsigned integer.
Definition uint16.hpp:23
uint32_t uint32
Represents a 32-bit unsigned integer.
Definition uint32.hpp:23
uint64_t uint64
Represents a 64-bit unsigned integer.
Definition uint64.hpp:23
float single
Represents a single-precision floating-point number.
Definition single.hpp:23
@ other
The operating system is other.
Definition platform_id.hpp:58
@ clear
The CLEAR key.
Definition console_key.hpp:26
@ s
The S key.
Definition console_key.hpp:124
@ separator
The Separator key.
Definition console_key.hpp:172
@ insert
The INS (INSERT) key.
Definition console_key.hpp:62
Contains xtd::index_out_of_range_exception exception.
virtual bool remove(const type_t &item)=0
Contains classes that represent ASCII and Unicode character encodings; abstract base classes for conv...
Definition basic_string_builder.hpp:17
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8
const_reference front() const
Gets the first element.
Definition read_only_span.hpp:218
const_iterator begin() const
Returns an iterator to the beginning.
Definition read_only_span.hpp:183
const_iterator cbegin() const
Returns an iterator to the beginning.
Definition read_only_span.hpp:187
read_only_span< type_t, count > first() const
Obtains a subspan consisting of the first count elements of the sequence.
Definition read_only_span.hpp:282
const_iterator end() const
Returns an iterator to the end.
Definition read_only_span.hpp:213
read_only_span< type_t, count > last() const
Obtains a subspan consisting of the last N elements of the sequence.
Definition read_only_span.hpp:307
const_iterator cend() const
Returns an iterator to the end.
Definition read_only_span.hpp:190
const_reference at(size_type pos) const
Gets the specified element with bounds checking.
Definition read_only_span.hpp:255
constexpr size_type length() const noexcept
Returns the length of the current read_only_span.
Definition read_only_span.hpp:229
const_reference back() const
Gets the last element.
Definition read_only_span.hpp:176
constexpr const_pointer data() const noexcept
Gets direct access to the underlying contiguous storage.
Definition read_only_span.hpp:201
Contains xtd::null_pointer_exception exception.
Contains xtd numeric literals.