MString updates.

This commit is contained in:
Brad Arant committed 2022-07-28 08:06:33 -07:00
1 parent d2f13c192c
commit 036978130d
7 files changed
+80 -45

No files matched your search

+29 -17
View File
@@ -8,12 +8,12 @@
namespace coreutils {
///
/// Use the MString object when you need a permanent backing store on the heap
/// Use the MString object when you need a permanent backing store on the heap
/// for a ZString style functionality. Because MString has a backing store we
/// added functionalities to build strings as well as the parsing power of the
/// ZString.
///
class MString : public ZString {
public:
@@ -21,9 +21,9 @@ namespace coreutils {
///
///
///
MString();
///
///
///
@@ -42,13 +42,19 @@ namespace coreutils {
/// Consructor providing a copy of a ZString.
///
MString(const MString &zstring);
MString(ZString &zstring);
///
/// Consructor providing a copy of a ZString.
///
MString(const MString &mstring);
///
/// Consructor from a string.
///
MString(std::string string);
MString(std::string data);
~MString();
@@ -62,6 +68,12 @@ namespace coreutils {
/// Assignment operator will copy data to backing store.
///
MString& operator=(coreutils::MString& data);
///
/// Assignment operator will copy data to backing store.
///
MString& operator=(const char *data);
///
@@ -74,24 +86,24 @@ namespace coreutils {
///
///
MString& operator<<(const char *value);
///
///
///
int write(char ch);
MString& operator<<(const char *value);
///
///
///
int write(ZString &value);
MString& write(char ch);
///
///
///
MString& write(ZString &value);
private:
int bufferSize = 0;
void setSize(int size);
};
}