ADTF  3.18.4
parserhelper.h
Go to the documentation of this file.
1 
7 #ifndef _PARSER_HELPER_CLASS_HEADER_
8 #define _PARSER_HELPER_CLASS_HEADER_
9 
10 namespace A_UTILS_NS
11 {
12 
18 class DOEXPORT cParserHelper
19 {
20  private:
21  cParserHelper();
22  ~cParserHelper();
23 
24  public:
33  static tVoid SkipWhitespace(const tChar*& p, const tChar* pAdditionalWhitechars=nullptr);
34 
45  static tBool GetNextWord(const tChar*& pSrc,
46  cString &strDest,
47  const tChar* pAdditionalSeparator=nullptr,
48  tBool bUseEscape = tTrue);
49 
58  static tVoid SeekChars(const tChar*& p, const tChar* pChars, tBool bIgnoreQuotes=tFalse);
59 
69  static tVoid SeekString(const tChar*& p, const tChar* pString, tChar* ptrComment = nullptr, tBool bIgnoreQuotes=tFalse);
70 };
71 
72 } // namespace A_UTILS_NS
73 
74 #endif // _PARSER_HELPER_CLASS_HEADER_
char tChar
The tChar defines the type for platform character set (platform and compiler dependent type).
void tVoid
The tVoid is always the definition for the void (non-type).
bool tBool
The tBool defines the type for the Values tTrue and tFalse (platform and compiler dependent).
static tVoid SkipWhitespace(const tChar *&p, const tChar *pAdditionalWhitechars=nullptr)
Advances the pointer to point at a position after the next whitespace sequence.
static tVoid SeekChars(const tChar *&p, const tChar *pChars, tBool bIgnoreQuotes=tFalse)
Advances a pointer in a string to the next occurance of specified characters.
static tVoid SeekString(const tChar *&p, const tChar *pString, tChar *ptrComment=nullptr, tBool bIgnoreQuotes=tFalse)
Advances a pointer in a string to the next occurcance of a string.
static tBool GetNextWord(const tChar *&pSrc, cString &strDest, const tChar *pAdditionalSeparator=nullptr, tBool bUseEscape=tTrue)
Copies the next word in a string into a string object.
#define tFalse
Value for tBool.
Definition: constants.h:60
#define tTrue
Value for tBool.
Definition: constants.h:62
ADTF A_UTIL Namespace - Within adtf this is used as adtf::util or adtf_util.
Definition: d_ptr.h:11