Developed MString.

This commit is contained in:
Brad Arant committed 2022-03-15 20:07:43 -07:00
1 parent 91286649cc
commit 59228ad356
4 files changed
+195 -13

No files matched your search

+29 -6
View File
@@ -29,7 +29,7 @@ namespace coreutils {
public:
///
/// Consructor providing an empty ZString..
/// Consructor providing an empty ZString.
///
ZString();
@@ -144,6 +144,12 @@ namespace coreutils {
///
///
bool startsWith(const char *value);
///
///
///
bool equals(const char *value);
///
@@ -171,6 +177,8 @@ namespace coreutils {
bool ifNext(const char *value);
bool ifNext(ZString &value);
int ifEqualsCount(ZString &comparator);
///
@@ -199,6 +207,12 @@ namespace coreutils {
char* getData();
///
///
///
char* getCursor();
///
/// Return the length of the ZString.
///
@@ -216,6 +230,12 @@ namespace coreutils {
///
///
ZString getParsed();
///
///
///
void reset();
///
@@ -230,12 +250,15 @@ namespace coreutils {
bool ifCRLF();
private:
char *data;
size_t length;
char *cursor;
std::vector<ZString> list;
void nextChar();
// protected:
char *data;
char *cursor;
size_t length;
private:
std::vector<ZString> list;
bool isCharacter(char ch, const char *string);
};