diff options
Diffstat (limited to 'FoundationEx/Text.h')
-rw-r--r-- | FoundationEx/Text.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/FoundationEx/Text.h b/FoundationEx/Text.h index 170eafe..9366812 100644 --- a/FoundationEx/Text.h +++ b/FoundationEx/Text.h @@ -58,7 +58,7 @@ private: TextRep(const char* s, int len); TextRep(char c, int len); TextRep(const TextRep* rep); - + void addref(); long deref(); @@ -69,7 +69,7 @@ private: int length; unsigned hash; bool sensitive; - + static ThreadSync sync; static TextRep nullrep; }; @@ -96,16 +96,16 @@ public: // comparison int compare(const char* s) const; int compare(const Text& s) const; - + // assignment Text& operator=(const char* s); Text& operator=(const Text& s); - + // catenation Text& append(char c); Text& append(const char* s); Text& append(const Text& s); - + Text operator+(char c); Text operator+(const char* s); Text operator+(const Text& s); @@ -119,7 +119,7 @@ public: char operator()(int index) const; char& operator[](int index); char& operator()(int index); - + Text operator()(int start, int len) const; // access @@ -128,7 +128,7 @@ public: const char* data() const { return sym; } operator const char* () const { return sym; } - + bool contains(char c) const; bool contains(const char* s) const; @@ -136,7 +136,7 @@ public: int indexOf(char c) const; int indexOf(const char* s) const; - + // mutation void toLower(); void toUpper(); |