Shows how to use xtd::console with unicode characters.
#include <xtd/collections/generic/list>
#include <xtd/console>
auto main() -> int {
console::output_code_page(65001);
constexpr auto nchars = 0x044F - 0x0410 + 1;
auto code_point = U'\U00000410';
for (auto ctr = 0_z; ctr < chars.size(); ctr++) {
chars[ctr] = code_point;
code_point++;
}
console::write_line("Current code page: {}\n", console::output_code_page());
for (auto ch : chars) {
console::write("{0} ", ch);
if (console::cursor_left() >= 70)
console::write_line();
}
console::write_line();
}
Represents a strongly typed list of objects that can be accessed by index. Provides methods to search...
Definition list.hpp:72
The xtd::collections::generic namespace contains interfaces and classes that define generic collectio...
Definition comparer.hpp:15
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10