summaryrefslogtreecommitdiff
path: root/fixedstring.h
diff options
context:
space:
mode:
authorJohn Fultz <jfultz@wolfram.com>2015-10-18 23:35:21 -0500
committerJohn Fultz <jfultz@wolfram.com>2015-10-18 23:35:21 -0500
commit2c2a91a6154a8dafa1415ec546ac07b2486b6743 (patch)
treecc2f799c30b4d1fdcfaac9970680998abb0788ec /fixedstring.h
parent06b0b048147df0387001f8c4bf8f52851d722240 (diff)
parent23f13f666c42068ed086c5a5791063465db653c7 (diff)
Merge branch 'feature/editablesettings'
Diffstat (limited to 'fixedstring.h')
-rw-r--r--fixedstring.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/fixedstring.h b/fixedstring.h
index 46d1011..a31ecd6 100644
--- a/fixedstring.h
+++ b/fixedstring.h
@@ -54,6 +54,8 @@ class FixedLengthString
size_type size() const { return length(); }
void clear() { m_end = m_data; }
void push_back(char c);
+ void pop_back();
+ const char* constData() const { return m_data; }
int compare(const FixedLengthString& s) const;
@@ -220,6 +222,13 @@ FixedLengthString::push_back(char c)
*this += c;
}
+inline void
+FixedLengthString::pop_back()
+{
+ assert(size() > 0);
+ m_end--;
+}
+
inline int
FixedLengthString::compare(const FixedLengthString& s) const
{