add StringBase::length which will eventually deal with unicode and return the number of codepoints
parent
c86d31e5c2
commit
f36c35afae
|
@ -248,6 +248,11 @@ public:
|
||||||
return p_buf.capacity() - 1;
|
return p_buf.capacity() - 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
octa::Size length() const {
|
||||||
|
/* TODO: unicode */
|
||||||
|
return size();
|
||||||
|
}
|
||||||
|
|
||||||
bool empty() const { return (size() == 0); }
|
bool empty() const { return (size() == 0); }
|
||||||
|
|
||||||
void push(T v) {
|
void push(T v) {
|
||||||
|
|
Loading…
Reference in New Issue