<< operator now outputs fulll ZString.

This commit is contained in:
Brad Arant committed 2022-04-04 13:35:15 -07:00
1 parent 59228ad356
commit b25650c5a7
4 files changed
+83 -43

No files matched your search

+26 -3
View File
@@ -1,3 +1,4 @@
#ifndef __ZString_h__
#define __ZString_h__
@@ -23,6 +24,12 @@ namespace coreutils {
/// ZString and is used to point to the current parsing point. Several methods are
/// provided to advance through the parsing based upon content and rule checks.
///
/// During the parsing process you can retrieve the parsed and unparsed sections of
/// the ZString as ZStrings.
///
/// You can stream the ZString to an output stream usinf the << operator and the entire
/// contents of the ZString will be output regardless of parsing activity.
///
class ZString {
@@ -87,6 +94,12 @@ namespace coreutils {
int asInteger();
///
///
///
int incrementCursor(int length);
///
/// Return the value of the ZString from the cursor to the end.
///
@@ -213,6 +226,8 @@ namespace coreutils {
char* getCursor();
void setCursor(char *cursor);
///
/// Return the length of the ZString.
///
@@ -227,10 +242,18 @@ namespace coreutils {
void setZString(ZString zstring);
///
///
/// Use the parsed method to return a ZString that represents the portion
/// ZString that has been parsed. The returned ZString represents the
/// portion of the ZString from the data pointer to the cursor.
///
ZString getParsed();
ZString parsed();
///
///
///
ZString unparsed();
///
///
@@ -252,7 +275,7 @@ namespace coreutils {
void nextChar();
// protected:
protected:
char *data;
char *cursor;
size_t length;