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 "types.hpp"
10#include <locale>
11
13namespace xtd {
36 public:
38
44 virtual xtd::string to_string(const xtd::string& format, const std::locale& loc) const = 0;
46
47
49 std::string __opague_internal_formatable__(intptr, intptr, intptr, intptr) const;
51 };
52}
Contains string definitions.
Represents text as a sequence of character units.
Definition basic_string.hpp:79
Provides functionality to format the value of an object into a string representation.
Definition iformatable.hpp:35
virtual xtd::string to_string(const xtd::string &format, const std::locale &loc) 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:20
#define interface_
This keyword is use to represent an interface.
Definition interface.hpp:58
intmax_t intptr
Represent a pointer or a handle.
Definition intptr.hpp:23
Contains xtd::interface interface.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10
Contains xtd fundamental types.