MString edebugged.

This commit is contained in:
Brad Arant committed 2022-05-20 19:04:48 -07:00
1 parent b25650c5a7
commit e411d31cb6
3 files changed
+41 -17

No files matched your search

+17 -1
View File
@@ -6,6 +6,7 @@
#include <string>
#include <ostream>
#include <vector>
#include <stack>
namespace coreutils {
@@ -27,7 +28,7 @@ namespace coreutils {
/// 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
/// You can stream the ZString to an output stream using the << operator and the entire
/// contents of the ZString will be output regardless of parsing activity.
///
@@ -99,6 +100,20 @@ namespace coreutils {
///
int incrementCursor(int length);
///
/// Use the push method to push the current cursor pointer to a stack.
///
void push();
///
/// Use the pop method to pop a previously pushed cursor pointer from the
/// cursor stack. The cursor will point to the same location in the
/// ZString where the cursor was pushed.
///
void pop();
///
/// Return the value of the ZString from the cursor to the end.
@@ -282,6 +297,7 @@ namespace coreutils {
private:
std::vector<ZString> list;
std::stack<char *> stack;
bool isCharacter(char ch, const char *string);
};