PUMA Library Reference Manual
|
#include <Puma/ParserKey.h>
Options parser key helper.
Supports Unix-like short key '-' and long key '–'.
Static Public Member Functions | |
static char | getKey () |
Get the short key character. | |
static const char * | getLongKey () |
Get the long key character sequence. | |
static unsigned int | getKeyLength () |
Get the length of the short key. | |
static unsigned int | getLongKeyLength () |
Get the length of the long key. | |
static bool | isKey (const std::string &str) |
Check if the given string starts with the short key. | |
static bool | isLongKey (const std::string &str) |
Check if the given string starts with the long key. | |
|
inlinestatic |
Get the short key character.
|
inlinestatic |
Get the length of the short key.
|
inlinestatic |
Get the long key character sequence.
|
inlinestatic |
Get the length of the long key.
|
inlinestatic |
Check if the given string starts with the short key.
The string may still start with a long key, so check this first.
str | The string to check. |
|
inlinestatic |
Check if the given string starts with the long key.
str | The string to check. |