Format examples
December 16, 2024 ยท View on GitHub
This folder contains format examples used by Reference Guide and more.
- format shows how to use xtd::format method.
- format_associative_containers shows how to use xtd::format method with associative containers (std::set, std::multiset, std::map and std::multimap).
- format_boolean shows how to use xtd::format method with bool.
- format_character shows how to use xtd::format method with characters (char, wchar_t, char8_t, char16_t and char32_t).
- format_class shows how to use xtd::format method with owner class.
- format_class_with_specified_formatting shows how to use xtd::format method with owner class and with specified formatting args.
- format_class_with_specified_formating_with_to_string shows how to use xtd::format method with owner class and with specified formatting args.
- format_date_time shows how to use xtd::format method with xtd::date_time class.
- format_duration shows how to use xtd::format method with duration (std::chrono::duration).
- format_enum shows how to use xtd::format method with owner enum.
- format_enum_class shows how to use xtd::format method with owner enum class.
- format_exception shows how to use xtd::format method with exceptions (std::exception and inherited classes, xtd::system_exception and inherited classes).
- format_floating_point shows how to use xtd::format method with floating point (float, double and long double).
- format_nullptr shows how to use xtd::format method with nullptr and null.
- format_number shows how to use xtd::format method with numeric (int8_t, int16_t, int32_t, int64_t, uint8_t, uint16_t, uint32_t and uint64_t).
- format_optional shows how to use xtd::format method with xtd::optional.
- format_pair shows how to use xtd::format method with std::pair.
- format_pointer shows how to use xtd::format method with std::shared_ptr, std::unique_ptr and classic pointer.
- format_sequence_containers shows how to use xtd::format method with sequence containers (std::initializer_list, std::array, std::forward_list, std::list, std::deque and std::vector).
- format_string shows how to use xtd::format method with strings (std::string, std::wstring, std::u8string, std::u16string and std::u32string).
- format_system_clock shows how to use xtd::format method with std::chrono::system_clock class.
- format_time_span shows how to use xtd::format method with xtd::time_span class.
- format_tm shows how to use xtd::format method with std::tm struct.
- format_tuple shows how to use xtd::format method with std::tuple.
- format_unordered_associative_containers shows how to use xtd::format method with associative containers (std::unordered_set, std::unordered_multiset, std::unordered_map and std::unordered_multimap).
- format_with_alignment shows how to use xtd::format method with specified alignment args.
- format_with_order shows how to use xtd::format method with specified order args.
Build and run any project
Open "Command Prompt" or "Terminal". Navigate to the folder that contains the project and type the following:
xtdc run -t any_project_name