| 140 | } |
| 141 | |
| 142 | void stringReplace(std::string& input, std::string_view searchPattern, std::string_view replacement) noexcept { |
| 143 | for (;;) { |
| 144 | auto index = input.find(searchPattern); |
| 145 | if (index == std::string::npos) { |
| 146 | break; |
| 147 | } |
| 148 | |
| 149 | input.replace(index, searchPattern.size(), replacement); |
| 150 | } |
| 151 | } |
| 152 | |
| 153 | const Ref<InternedStringImpl>& StringBox::getInternedString() const noexcept { |
| 154 | return _internedString; |
no test coverage detected