6#define __XTD_CORE_INTERNAL__
8#undef __XTD_CORE_INTERNAL__
19 void print(FILE* file, arg_t&& value) {
20 __xtd_print_with_file_write__(
false, file,
string::format(
"{}", value));
24 template<
class type_t>
25 void print(FILE* file, std::initializer_list<type_t>&& il) {
26 __xtd_print_with_file_write__(
false, file,
string::format(
"{}", il));
36 template<
class ...args_t>
38 __xtd_print_with_file_write__(
false, file,
string::format(fmt, std::forward<args_t>(values)...));
46 template<
class ...args_t>
47 void print(FILE* file,
const char* fmt, args_t&& ... values) {
50#if defined(__xtd__cpp_lib_char8_t)
57 template<
class ...args_t>
58 void print(FILE* file,
const char8_t* fmt, args_t&& ... values) {
68 template<
class ...args_t>
69 void print(FILE* file,
const char16_t* fmt, args_t&& ... values) {
78 template<
class ...args_t>
79 void print(FILE* file,
const char32_t* fmt, args_t&& ... values) {
88 template<
class ...args_t>
89 void print(FILE* file,
const wchar_t* fmt, args_t&& ... values) {
98 void print(std::ostream& os, arg_t&& value) {
99 __xtd_print_with_ostream_write__(
false, os,
string::format(
"{}", value));
103 template<
class type_t>
104 void print(std::ostream& os, std::initializer_list<type_t>&& il) {
105 __xtd_print_with_ostream_write__(
false, os,
string::format(
"{}", il));
114 template<
class ...args_t>
116 __xtd_print_with_ostream_write__(
false, os,
string::format(fmt, std::forward<args_t>(values)...));
123 template<
class ...args_t>
124 void print(std::ostream& os,
const char* fmt, args_t&& ... values) {
127#if defined(__xtd__cpp_lib_char8_t)
133 template<
class ...args_t>
134 void print(std::ostream& os,
const char8_t* fmt, args_t&& ... values) {
143 template<
class ...args_t>
144 void print(std::ostream& os,
const char16_t* fmt, args_t&& ... values) {
152 template<
class ...args_t>
153 void print(std::ostream& os,
const char32_t* fmt, args_t&& ... values) {
161 template<
class ...args_t>
162 void print(std::ostream& os,
const wchar_t* fmt, args_t&& ... values) {
169 template<
class arg_t>
173 template<
class type_t>
174 void print(std::initializer_list<type_t>&& il) {
print(stdout, il);}
181 template<
class ...args_t>
187 template<
class ...args_t>
188 void print(
const char* fmt, args_t&& ... values) {
print(stdout, fmt, std::forward<args_t>(values)...);}
189#if defined(__xtd__cpp_lib_char8_t)
194 template<
class ...args_t>
195 void print(
const char8_t* fmt, args_t&& ... values) {
print(stdout, fmt, std::forward<args_t>(values)...);}
201 template<
class ...args_t>
202 void print(
const char16_t* fmt, args_t&& ... values) {
print(stdout, fmt, std::forward<args_t>(values)...);}
207 template<
class ...args_t>
208 void print(
const char32_t* fmt, args_t&& ... values) {
print(stdout, fmt, std::forward<args_t>(values)...);}
213 template<
class ...args_t>
214 void print(
const wchar_t* fmt, args_t&& ... values) {
print(stdout, fmt, std::forward<args_t>(values)...);}
Contains xtd_print_with_file_write and xtd_print_with_ostream_write methods.
Represents text as a sequence of character units.
Definition basic_string.hpp:71
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10
Contains xtd::string alias.