Sprintf examples
July 4, 2024 ยท View on GitHub
This folder contains xtd::ustring::sprintf examples used by Reference Guide and more.
- sprintf shows how to use xtd::ustring::sprintf method.
- sprintf_boolean shows how to use xtd::ustring::sprinyf method with bool.
- sprintf_character shows how to use xtd::ustring::sprinyf method with characters (char, wchar_t, char8_t, char16_t and char32_t).
- sprintf_class shows how to use xtd::ustring::sprinyf method with owner class.
- sprintf_class_with_specified_formatting shows how to use xtd::ustring::sprinyf method with owner class and with specified formatting args.
- sprintf_class_with_specified_formating_with_to_string shows how to use xtd::ustring::sprinyf method with owner class and with specified formatting args.
- sprintf_date_time shows how to use xtd::ustring::sprinyf method with date time (time_t, std::tm and std::chrono:system_clock::time_point).
- sprintf_duration shows how to use xtd::ustring::sprinyf method with duration (std::chrono::duration).
- sprintf_enum shows how to use xtd::ustring::sprinyf method with owner enum.
- sprintf_enum_class shows how to use xtd::ustring::sprinyf method with owner enum class.
- sprintf_floating_point shows how to use xtd::ustring::sprinyf method with floating point (float, double and long double).
- sprintf_numeric shows how to use xtd::ustring::sprinyf method with numeric (int8_t, int16_t, int32_t, int64_t, uint8_t, uint16_t, uint32_t and uint64_t).
- sprintf_string shows how to use xtd::ustring::sprinyf method with strings (std::string, std::wstring, std::u8string, std::u16string and std::u32string).
- sprintf_with_alignment shows how to use xtd::ustring::sprinyf method with specified alignment args.
- sprintf_with_order shows how to use xtd::ustring::sprinyf 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