#include <xtd/console>
#include <xtd/environment>
#include <xtd/format>
enum class cap {title, middle,
end};
else
}
auto main() -> int {
print_character(string {"a"}, 'a', cap::title);
print_character(string {u8"1"}, u8'1', cap::middle);
print_character(string {L"\x1F603"}, L'\x1F603', cap::middle);
print_character(
string {
u"\u4eb0"},
u'\u4eb0', cap::middle);
print_character(string {U"\U0001F428"}, U'\U0001F428', cap::end);
}
static int32 output_code_page()
Gets the code page the console uses to write output.
static std::ostream out
Gets the standard output stream. A std::basic_ostream<char_t> that represents the standard output str...
Definition console.hpp:52
static xtd::string new_line() noexcept
Gets the newline string defined for this environment.
xtd::basic_string< xtd::char32 > u32string
Represents text as a sequence of UTF-32 code units.
Definition __string_definitions.hpp:65
char32_t char32
Represents a 32-bit unicode character.
Definition char32.hpp:26
@ c
The C key.
Definition console_key.hpp:92
@ u
The U key.
Definition console_key.hpp:128
Contains classes that represent ASCII and Unicode character encodings; abstract base classes for conv...
Definition basic_string_builder.hpp:16
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8
const_iterator end() const
Returns an iterator to the end.
Definition read_only_span.hpp:213