This concrete class tokenizes a Text Block that has the following format:
Definition TextBlock.h:64
bool isTerminated() const noexcept
Returns true if the parsing stopped because the terminator character was encounter (vs....
Definition TextBlock.h:112
TextBlock(char *string, char delimiter=',', char terminator=';', char quote='"', char escape='\\' )
Constructor.
void removeWhiteSpace(char *startOfTokenPtr, char *firstNonSpacePtr, char *lastNonSpacePtr) noexcept
Helpter method.
const char * remaining() const noexcept
Returns a pointer to the portion of the string that has not been tokenized, i.e.
Definition TextBlock.h:119
bool isValidTokens() const noexcept
Returns true if the string was successfully tokenized.
Definition TextBlock.h:100
const char * getParameter(unsigned index) const noexcept
Returns the Nth parameter (index starts with 0). Return a null pointer if index is out-of-range.
unsigned numParameters() const noexcept
Returns the number of parameter fields in the Text block.
Definition TextBlock.h:104