Parser helper.
More...
Parser helper.
Definition at line 18 of file parserhelper.h.
◆ GetNextWord()
Copies the next word in a string into a string object.
- Parameters
-
pSrc | [in] The source string. |
strDest | [out] The destination string. |
pAdditionalSeparator | [in] Additional separator characters. |
bUseEscape | [in] Uses the \ character to detect a word too |
- Returns
- tTrue if successful, otherwise tFalse.
◆ SeekChars()
Advances a pointer in a string to the next occurance of specified characters.
- Parameters
-
p | [inout] The current position. |
pChars | [in] The characters to look for. |
bIgnoreQuotes | [in] Whether or not to ignore occurences which occur between quotes. |
- Returns
- void
- This method is real-time safe.\nSee @ref page_real_time_safe.\n
◆ SeekString()
Advances a pointer in a string to the next occurcance of a string.
- Parameters
-
p | [inout] The current position. |
pString | [in] The string to look for. |
ptrComment | [out] Optional buffer that will be filled with the skipped characters. |
bIgnoreQuotes | [in] Whether or not to ignore occurences which occur between quotes. |
- Returns
- void
- This method is real-time safe.\nSee @ref page_real_time_safe.\n
◆ SkipWhitespace()
static tVoid SkipWhitespace |
( |
const tChar *& |
p, |
|
|
const tChar * |
pAdditionalWhitechars = nullptr |
|
) |
| |
|
static |
Advances the pointer to point at a position after the next whitespace sequence.
- Parameters
-
p | [inout] The current position. |
pAdditionalWhitechars | [in] Additional characters which are to be skipped. |
- Returns
- void
- This method is real-time safe.\nSee @ref page_real_time_safe.\n