xtd
1.0.0
Toggle main menu visibility
Loading...
Searching...
No Matches
xtd.core
include
xtd
box_.hpp
Go to the documentation of this file.
1
4
#pragma once
6
#if !defined(__XTD_BOX_INTERNAL__)
7
#error "Do not include this file: Internal use only. Include <xtd/box> or <xtd/box.hpp> instead."
8
#endif
10
11
#include "
globalization/culture_info.hpp
"
12
#include "
box.hpp
"
13
15
template
<
typename
type_t>
16
auto
xtd::box<type_t>::to_string
() const noexcept ->
xtd
::
string
{
17
return
to_string
(
""
,
xtd::globalization::culture_info::current_culture
());
18
}
19
20
template
<
typename
type_t>
21
auto
xtd::box<type_t>::to_string
(
const
xtd::string
& format)
const
->
xtd::string
{
22
return
to_string
(format,
xtd::globalization::culture_info::current_culture
());
23
}
24
25
template
<
typename
type_t>
26
auto
xtd::box<type_t>::to_string
(
const
xtd::string
& format,
const
xtd::globalization::culture_info
& culture)
const
->
xtd::string
{
27
return
xtd::string::format
(culture,
xtd::string::format
(
"{{:{}}}"
, format), value);
28
}
box.hpp
Contains xtd::box struct.
xtd::globalization::culture_info
Provides information about a specific culture (called a locale for unmanaged code development)....
Definition
culture_info.hpp:42
xtd::globalization::culture_info::current_culture
static auto current_culture() noexcept -> xtd::globalization::culture_info
Gets the xtd::globalization::culture_info object that represents the culture used by the current appl...
xtd::object::to_string
virtual auto to_string() const -> xtd::string
Returns a xtd::string that represents the current object.
culture_info.hpp
Contains xtd::globalization::culture_info class.
xtd::basic_string< char >::format
static auto format(const basic_string< char > &fmt, args_t &&... args) -> basic_string
xtd::string
xtd::basic_string< char > string
Represents text as a sequence of UTF-8 code units.
Definition
__string_definitions.hpp:43
xtd
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition
abstract_object.hpp:8
xtd::to_string
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:342
Generated on
for xtd by
Gammasoft
. All rights reserved.