MCPcopy Create free account
hub / github.com/codereader/DarkRadiant / string_less_nocase

Function string_less_nocase

libs/string/string.h:79–82  ·  view source on GitHub ↗

\brief Returns true if \p string is lexicographically less than \p other. Treats all ascii characters as lower-case during comparisons. O(n)

Source from the content-addressed store, hash-verified

77/// Treats all ascii characters as lower-case during comparisons.
78/// O(n)
79inline bool string_less_nocase(const char* string, const char* other)
80{
81 return string::icmp(string, other) < 0;
82}

Callers 1

operator<Method · 0.85

Calls 1

icmpFunction · 0.85

Tested by

no test coverage detected