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

Function string_equal_nocase

libs/string/string.h:71–74  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

69/// Treats all ascii characters as lower-case during comparisons.
70/// O(n)
71inline bool string_equal_nocase(const char* string, const char* other)
72{
73 return string::icmp(string, other) == 0;
74}
75
76/// \brief Returns true if \p string is lexicographically less than \p other.
77/// Treats all ascii characters as lower-case during comparisons.

Callers 1

shader_equalFunction · 0.85

Calls 1

icmpFunction · 0.85

Tested by

no test coverage detected