add StringBase::length which will eventually deal with unicode and return the number of codepoints

master
Daniel Kolesa 2015-07-01 21:03:44 +01:00
parent c86d31e5c2
commit f36c35afae
1 changed files with 5 additions and 0 deletions

View File

@ -248,6 +248,11 @@ public:
return p_buf.capacity() - 1;
}
octa::Size length() const {
/* TODO: unicode */
return size();
}
bool empty() const { return (size() == 0); }
void push(T v) {