diff options
Diffstat (limited to 'src/util/regexp.h')
-rw-r--r-- | src/util/regexp.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/util/regexp.h b/src/util/regexp.h index 31a39e6f9..024bfd32e 100644 --- a/src/util/regexp.h +++ b/src/util/regexp.h @@ -57,6 +57,10 @@ public: } } + String(const char c) { + d_str.push_back( convertCharToUnsignedInt(c) ); + } + String(const std::vector<unsigned int> &s) : d_str(s) { } ~String() {} @@ -151,6 +155,10 @@ public: return d_str.size(); } + char getFirstChar() const { + return convertUnsignedIntToChar( d_str[0] ); + } + String substr(unsigned i) const { std::vector<unsigned int> ret_vec; std::vector<unsigned int>::const_iterator itr = d_str.begin() + i; |