xo-object2: + DString methods

This commit is contained in:
Roland Conybeare 2026-01-13 17:40:06 -05:00
commit 46bad19f7c
2 changed files with 29 additions and 0 deletions

View file

@ -63,6 +63,14 @@ namespace xo {
return *this;
}
auto
DString::fixup_size() noexcept -> size_type
{
this->chars_[capacity_ - 1] = '\0';
this->size_ = ::strlen(chars_);
return this->size_;
}
} /*namespace scm*/
} /*namespace xo*/