summaryrefslogtreecommitdiffhomepage
path: root/FoundationEx/Text.h
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2022-01-30 17:41:24 +0100
committerAki <please@ignore.pl>2022-01-30 17:41:24 +0100
commit51657e10769faa2617d546a06c42e4c62a19bb50 (patch)
tree688ad8b61ac02e50974684b9b7d3f886fb469e5f /FoundationEx/Text.h
parentdb987e23d5dd33a5db8764743facbb906ac22b0f (diff)
downloadstarshatter-51657e10769faa2617d546a06c42e4c62a19bb50.zip
starshatter-51657e10769faa2617d546a06c42e4c62a19bb50.tar.gz
starshatter-51657e10769faa2617d546a06c42e4c62a19bb50.tar.bz2
Removed trailing whitespace all over the place
Diffstat (limited to 'FoundationEx/Text.h')
-rw-r--r--FoundationEx/Text.h16
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();