xtd 0.2.0
Loading...
Searching...
No Matches
iformatable.hpp
Go to the documentation of this file.
1
4#pragma once
5#define __XTD_CORE_INTERNAL__
7#undef __XTD_CORE_INTERNAL__
8#include "interface.hpp"
9//#include "globalization/culture_info.hpp"
10#include <locale>
11
13namespace xtd {
15 namespace globalization {
16 class culture_info;
17 }
19
42 public:
44
50 virtual xtd::string to_string(const xtd::string& format, const globalization::culture_info& culture) const = 0;
52 };
53}
Contains string definitions.
Provides information about a specific culture (called a locale for unmanaged code development)....
Definition culture_info.hpp:43
Provides functionality to format the value of an object into a string representation.
Definition iformatable.hpp:41
virtual xtd::string to_string(const xtd::string &format, const globalization::culture_info &culture) const =0
Formats the value of the current instance using the specified format.
xtd::string format(const xtd::string &fmt, args_t &&... args)
Writes the text representation of the specified arguments list, to string using the specified format ...
Definition format.hpp:21
#define interface_
This keyword is use to represent an interface.
Definition interface.hpp:58
xtd::basic_string< char > string
Represents text as a sequence of UTF-8 code units.
Definition __string_definitions.hpp:43
Contains xtd::interface interface.
Contains classes that define culture-related information, including language, country/region,...
Definition culture_info.hpp:20
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8