MCPcopy Create free account
hub / github.com/deathkiller/jazz2-native / exceptPrefix

Method exceptPrefix

Sources/Shared/Containers/StringView.cpp:1189–1194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

DEATH_ASSERTFunction · 0.85
exceptPrefixFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected