xtd
1.0.0
Toggle main menu visibility
Loading...
Searching...
No Matches
xtd.core
include
xtd
iformatable.hpp
Go to the documentation of this file.
1
4
#pragma once
5
#define __XTD_CORE_INTERNAL__
6
#include "
internal/__string_definitions.hpp
"
7
#undef __XTD_CORE_INTERNAL__
8
#include "
generic_stream_output.hpp
"
9
#include "
interface.hpp
"
10
//#include "globalization/culture_info.hpp"
11
#include <locale>
12
14
namespace
xtd
{
16
namespace
globalization
{
17
class
culture_info
;
18
}
20
42
class
iformatable
interface_
{
43
public
:
45
51
[[nodiscard]]
virtual
auto
to_string
(
const
xtd::string
&
format
,
const
globalization::culture_info
& culture)
const
->
xtd::string
= 0;
53
};
54
}
__string_definitions.hpp
xtd::globalization::culture_info
Provides information about a specific culture (called a locale for unmanaged code development)....
Definition
culture_info.hpp:42
xtd::iformatable
Provides functionality to format the value of an object into a string representation.
Definition
iformatable.hpp:42
xtd::iformatable::to_string
virtual auto to_string(const xtd::string &format, const globalization::culture_info &culture) const -> xtd::string=0
Formats the value of the current instance using the specified format.
generic_stream_output.hpp
Contains generic stream output methods.
xtd::format
auto format(const xtd::string &fmt, args_t &&... args) -> xtd::string
Writes the text representation of the specified arguments list, to string using the specified format ...
Definition
format.hpp:21
interface_
#define interface_
This keyword is use to represent an interface.
Definition
interface.hpp:58
xtd::string
xtd::basic_string< char > string
Represents text as a sequence of UTF-8 code units.
Definition
__string_definitions.hpp:43
interface.hpp
Contains xtd::interface interface.
xtd::globalization
Contains classes that define culture-related information, including language, country/region,...
Definition
culture_info.hpp:19
xtd
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition
abstract_object.hpp:8
Generated on
for xtd by
Gammasoft
. All rights reserved.