|
static char | cflush (istream &, char) |
| Read up to first occurrence of a given character. More...
|
|
static char | rflush (istream &, char) |
| Read up to first character c1 not equal to a specified character. More...
|
|
static bool | verify (istream &, char) |
| If next character on input stream is the character c, read it and return true. More...
|
|
static bool | skipBlank (istream &) |
| Advance to the first non-blank character, skipping over comments. More...
|
|
static bool | readNum (istream &, int &) |
| If next thing on current line is a number, read it into i and return true. More...
|
|
static bool | readNum (istream &, char &) |
|
static bool | readNum (istream &, uint16_t &) |
|
static bool | readNum (istream &, uint32_t &) |
| If next thing on current line is an unsigned number, read it into i and return true. More...
|
|
static bool | readWord (istream &, string &) |
| Read next word (string containing letters, numbers, underscores, @-signs, periods, slashes) on the current line and return it in s. More...
|
|
static bool | readName (istream &, string &) |
| Read next name (string containing letters, numbers, underscores, starting with a letter) on the current line and return it in s. More...
|
|
static bool | readString (istream &, string &) |
| Read next string (enclosed in double quotes). More...
|
|
static void | addNum2string (string &, int) |
| Add the string representation of an integer to the end of a given string. More...
|
|
static void | addNum2string (string &, uint64_t) |
|
static string | num2string (int) |
| Create a string representation of a numeric value. More...
|
|
static string | num2string (uint64_t) |
|
static string | nstime2string (uint64_t) |
| Create a string representation of a time value based on a ns time value. More...
|
|
static char | nam (int) |
| Convert a small integer to a lower-case letter. More...
|
|
static int | num (char) |
| Convert a lower-case letter to a small integer. More...
|
|
static bool | readNode (istream &, int &, int) |
| Read a graph "node" from the input. More...
|
|
static void | writeNode (ostream &, int, int) |
|
static bool | readAlpha (istream &, int &) |
| Read the next non-whitespace character from in. More...
|
|
static void | writeAlpha (ostream &, int) |
| Output the character corresponding to the integer x. More...
|
|
static void | addNode2string (string &, int, int) |
| Add the string representation of a data structure node to the end of a given string. More...
|
|
static string | node2string (int, int) |
| Create a string representation of a data structure node. More...
|
|
static bool | prefix (string, string) |
| Return true if s1 is a non-empty substring of s2. More...
|
|
static void | genPerm (int, int *) |
| Create random permutation on integers 1..n and return in p.
|
|
static int | strnlen (char *, int) |
| Replacement for the missing strnlen function.
|
|
static time_t | currentTime () |
| Return the current time in number of seconds since epoch. More...
|
|
static uint32_t | getTime () |
| Return time expressed as a free-running microsecond clock. More...
|
|
static uint64_t | getTimeNs () |
| Return time expressed as a free-running nanosecond clock. More...
|
|
Definition at line 17 of file MiscX.h.
bool forest::Misc::readWord |
( |
istream & |
in, |
|
|
string & |
s |
|
) |
| |
|
static |
Read next word (string containing letters, numbers, underscores, @-signs, periods, slashes) on the current line and return it in s.
Return true on success, false on failure.
Definition at line 104 of file Misc.cpp.