xo-object2: + DString methods
This commit is contained in:
parent
4c468d88e3
commit
46bad19f7c
2 changed files with 29 additions and 0 deletions
|
|
@ -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*/
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue