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

This commit is contained in:
q66 2015-07-01 21:03:44 +01:00
parent c86d31e5c2
commit f36c35afae

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) {