5#define __XTD_CORE_INTERNAL__
7#undef __XTD_CORE_INTERNAL__
23 using string = xtd::basic_string<char>;
35 using ustring [[deprecated(
"Replaced by xtd::string - Will be removed in version 1.2.0.")]] =
xtd::string;
76 template<
typename type_t>
85 template<
typename type_t>
86 [[deprecated(
"Replaced by xtd::to_string - Will be removed in version 1.2.0.")]]
92 namespace collections {
94 template<
typename type_t>
97 for (
auto item :
self_)
109#if defined(__xtd__cpp_lib_format)
111struct std::formatter<xtd::string> : std::formatter<std::string> {
112 template<typename object_t, typename format_context_t>
113 auto format(const object_t& obj, format_context_t& ctx) const {return std::format_to(ctx.out(), "{}", std::string {obj.to_string()});}
120template<
typename type_t>
122 return obj->to_string();
125template<
typename key_t,
typename value_t>
128template<
typename type_t>
131template<
typename type_t,
typename param_t>
134template<
typename type_t>
137template<
typename type_t>
138[[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()));}
140template<
typename type_t,
typename deleter_t>
Contains xtd::basic_string class.
static auto join(const basic_string &separator, const collection_t &values) noexcept -> basic_string
Definition basic_string.hpp:1258
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::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:341
auto to_ustring(type_t val) -> xtd::string
Converts a type_t to xtd::string.
Definition string.hpp:87