xo-object: + DString.compare() + utest
This commit is contained in:
parent
ad59fac380
commit
52d72ac0e5
3 changed files with 30 additions and 1 deletions
|
|
@ -84,6 +84,12 @@ namespace xo {
|
|||
return *this;
|
||||
}
|
||||
|
||||
int
|
||||
DString::compare(const DString & lhs, const DString & rhs) noexcept
|
||||
{
|
||||
return ::strcmp(lhs.chars_, rhs.chars_);
|
||||
}
|
||||
|
||||
auto
|
||||
DString::fixup_size() noexcept -> size_type
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue