|
Bash++
Bash++ compiler internal documentation
|
Classes | |
| struct | FixedString |
| A fixed-size string class for compile-time string manipulation. More... | |
| struct | OptionView |
| struct | TextView |
| A simple view over a text string. More... | |
Concepts | |
| concept | option_like |
Functions | |
| constexpr bool | is_ws (char c) |
| template<size_t N> | |
| FixedString (const char(&)[N]) -> FixedString< N > | |
| template<option_like T> | |
| constexpr size_t | option_label_length (const T &option) |
| Calculate the length of the option label for help string formatting. | |
| template<size_t N, option_like T> | |
| constexpr size_t | max_option_label_length (const std::array< T, N > &options) |
| Calculate the maximum option label length among a set of options. | |
| template<size_t N, option_like T> | |
| constexpr size_t | calculate_help_string_length (const std::array< T, N > &options) |
| Calculate the length of the help string for a set of options. | |
|
constexpr |
Calculate the length of the help string for a set of options.
| N | The number of options |
| T | The option-like type |
| options | The array of options to calculate the help string length for |
| XGetOpt::Helpers::FixedString | ( | const | char(&)[N] | ) | -> FixedString< N > |
|
constexpr |
|
constexpr |
Calculate the maximum option label length among a set of options.
| N | The number of options |
| T | The option-like type |
| options | The array of options to calculate the maximum label length for |
|
constexpr |
Calculate the length of the option label for help string formatting.
| T | The option-like type |
| option | The option to calculate the label length for |
The option label format:
Where <arg> is used for required arguments and [=arg] is used for optional arguments. And where '-x' is the option's actual shortopt character, '–longopt' is the option's actual longopt string, and 'arg' is the option's argument placeholder string if provided, or 'arg' if not provided.