template<typename CharType, typename Traits = std::char_traits<CharType>, typename Alloc = std::allocator<CharType>>
class ookii::basic_localized_string_provider< CharType, Traits, Alloc >
Provides custom localized strings.
You can derive from this class and override its members to provide customized or localized strings. A custom string provider can be provided to the command_line_builder::command_line_builder() constructor.
Two typedefs for common character types are provided:
- Template Parameters
-
CharType | The character type used for strings. |
Traits | The character traits to use for strings. Defaults to std::char_traits<CharType> . |
Alloc | The allocator to use for strings. Defaults to std::allocator<CharType> . |
template<typename CharType , typename Traits = std::char_traits<CharType>, typename Alloc = std::allocator<CharType>>
Gets the short name of the help argument created if basic_parser_builder::automatic_help_argument() was not set to false
.
In addition to the short name, the help argument will automatically have a short alias that is the lower case first character of the value returned by automatic_help_name(). If the short name and short alias are equal, then no alias is added.
If you are not using parsing_mode::long_short, the short name and short alias will be used as regular aliases instead.