MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / find

Method find

src/string.cpp:279–285  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

277 }
278
279 static const char *find(const char *s, size_t n, char a)
280 {
281 for (; n > 0; --n, ++s) {
282 if (toupper(*s) == toupper(a)) return s;
283 }
284 return nullptr;
285 }
286};
287
288/** Case insensitive string view. */

Callers 3

StrContainsIgnoreCaseFunction · 0.45
StrNaturalContainsFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected