| 1187 | } |
| 1188 | |
| 1189 | template<class T> BasicStringView<T> BasicStringView<T>::exceptPrefix(const StringView prefix) const { |
| 1190 | // Stripping a hardcoded prefix is unlikely to be called in a tight loop -- and the main purpose of this API is this |
| 1191 | // check -- so it shouldn't be a debug assert |
| 1192 | DEATH_ASSERT(hasPrefix(prefix), "String doesn't begin with specified prefix", {}); |
| 1193 | return exceptPrefix(prefix.size()); |
| 1194 | } |
| 1195 | |
| 1196 | template<class T> BasicStringView<T> BasicStringView<T>::exceptSuffix(const StringView suffix) const { |
| 1197 | // Stripping a hardcoded suffix is unlikely to be called in a tight loop -- and the main purpose of this API is this |
nothing calls this directly
no test coverage detected