add StringBase::length which will eventually deal with unicode and return the number of codepoints
This commit is contained in:
parent
c86d31e5c2
commit
f36c35afae
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue