![]() |
appkit
1.5.1
RoadNarrows Robotics Application Kit
|
Unit test RegEx class. More...
#include <unistd.h>#include <termios.h>#include <string.h>#include <stdio.h>#include <stdlib.h>#include <stdarg.h>#include <iostream>#include <fstream>#include <string>#include "rnr/rnrconfig.h"#include "rnr/log.h"#include "rnr/opts.h"#include "rnr/pkg.h"#include "rnr/appkit/RegEx.h"#include "version.h"Go to the source code of this file.
Macros | |
| #define | APP_EC_OK 0 |
| success exit code | |
| #define | APP_EC_ARGS 2 |
| command-line options/arguments error exit code | |
| #define | APP_EC_EXEC 4 |
| execution exit code | |
Functions | |
| static string | getline (istream &is) |
| static void | utPr (ostream &os, const string name, const RegEx &re) |
| Print RegEx data. More... | |
| static void | utConstRe (ostream &os, const RegEx &re) |
| Print RegEx data. More... | |
| static void | utRun (ostream &os) |
| Test RegEx operations. | |
| static void | mainInit (int argc, char *argv[]) |
| Main initialization. More... | |
| int | main (int argc, char *argv[]) |
| Main. More... | |
Variables | |
| static char * | Argv0 |
| the command | |
| static double | OptsHz = 2 |
| thread hertz rate | |
| static OptsPgmInfo_T | PgmInfo |
| Program information. More... | |
| static OptsInfo_T | OptsInfo [] |
| Command line options information. More... | |
| const RegEx | re0 |
| Globally constructed, pre-compiled re's. | |
| const RegEx | re1 ("^[a-z]*$", RegEx::ReFlagICase) |
| RegEx | re2 = re1 |
| const RegEx | re3 ("['\"]{1,2}([0-9]+)(hello)(^)") |
| const RegEx | re4 ("^[a-z]*$") |
| RegEx | reGo = "([cC]at)|([dD]og)" |
Unit test RegEx class.
Definition in file utRegEx.cxx.
|
static |