5#define __XTD_CORE_INTERNAL__
7#undef __XTD_CORE_INTERNAL__
24 using string = xtd::basic_string<char>;
36 using ustring [[deprecated(
"Replaced by xtd::string - Will be removed in version 1.2.0.")]] =
xtd::string;
77 template<
typename type_t>
86 template<
typename type_t>
87 [[deprecated(
"Replaced by xtd::to_string - Will be removed in version 1.2.0.")]]
93 namespace collections {
95 template<
typename type_t>
98 for (
auto item :
self_)
108template<
typename char_t,
typename traits_t,
typename allocator_t>
111template<
typename char_t,
typename traits_t,
typename allocator_t>
114template<
typename type_t>
116 return obj->to_string();
119template<
typename key_t,
typename value_t>
122template<
typename type_t>
125template<
typename type_t,
typename param_t>
128template<
typename type_t>
131template<
typename type_t>
132[[nodiscard]]
inline auto xtd::shared_ptr_object<type_t>::to_string() const noexcept ->
xtd::
string {
return xtd::string::format(
"{} [pointer={}]",
xtd::object::to_string(), ptr_ ==
xtd::null ?
"null" : string::format(
"0x{:X16}, use_count={}", get(), use_count()));}
134template<
typename type_t,
typename deleter_t>
139#define __XTD_CORE_INTERNAL__
141#undef __XTD_CORE_INTERNAL__
Contains xtd::basic_string class.
static auto join(const basic_string &separator, const collection_t &values) noexcept -> basic_string
Definition basic_string.hpp:1240
auto operator[](xtd::usize index) const -> const_reference
Returns a reference to the character at specified location index.
Definition basic_string.hpp:1378
auto operator()(xtd::usize index) const -> const_reference
Returns a reference to the character at specified location index.
Definition basic_string.hpp:1396
Provides a way to represent the current object as a string.
Definition istringable.hpp:26
virtual auto to_string() const -> xtd::string
Returns a xtd::string that represents the current object.
Contains xtd::collections::generic::enumerable_generator <> class.
#define self_
The self_ expression is a reference value expression whose value is the reference of the implicit obj...
Definition self.hpp:20
xtd::basic_string< char > string
Represents text as a sequence of UTF-8 code units.
Definition __string_definitions.hpp:43
xtd::string ustring
Represents text as a sequence of UTF-8 code units.
null_ptr null
Represents a null pointer value.
Contains xtd::index struct.
Contains xtd::collections::generic::key_value_pair <key_t, value_t> struct.
Contains xtd::string suffixes.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8
auto to_string() const noexcept -> xtd::string override
Returns the string representation of this xtd::read_only_span <type_t> object.
Definition read_only_span.hpp:354
const type_t & const_reference
Represents the read_only_span const reference type.
Definition read_only_span.hpp:75
auto to_ustring(type_t val) -> xtd::string
Converts a type_t to xtd::string.
Definition string.hpp:88
constexpr auto length() const noexcept -> size_type
Returns the length of the current read_only_span.
Definition read_only_span.hpp:209
Represents a type that can be used to index a collection either from the beginning or the end.
Definition index.hpp:38