| 33 | } |
| 34 | |
| 35 | std::string_view StringBox::toStringView() const noexcept { |
| 36 | if (_internedString == nullptr) { |
| 37 | // NOLINTNEXTLINE(bugprone-string-constructor) |
| 38 | return std::string_view("", 0); |
| 39 | } else { |
| 40 | return _internedString->toStringView(); |
| 41 | } |
| 42 | } |
| 43 | |
| 44 | std::string StringBox::slowToString() const noexcept { |
| 45 | return std::string(toStringView()); |
no outgoing calls
no test coverage detected