| 25 | StringBox::StringBox(StringBox&& other) noexcept : _internedString(std::move(other._internedString)) {} |
| 26 | |
| 27 | const char* StringBox::getCStr() const noexcept { |
| 28 | if (_internedString == nullptr) { |
| 29 | return ""; |
| 30 | } else { |
| 31 | return _internedString->getCStr(); |
| 32 | } |
| 33 | } |
| 34 | |
| 35 | std::string_view StringBox::toStringView() const noexcept { |
| 36 | if (_internedString == nullptr) { |
no outgoing calls