MCPcopy Create free account
hub / github.com/KhronosGroup/SPIRV-Tools / MatchIgnoreCase

Function MatchIgnoreCase

tools/io.cpp:116–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114}
115
116bool MatchIgnoreCase(const char* token, const char* expect, size_t len) {
117 for (size_t i = 0; i < len; ++i) {
118 if (tolower(token[i]) != tolower(expect[i])) {
119 return false;
120 }
121 }
122
123 return true;
124}
125
126// Helper class to tokenize a hex stream
127class HexTokenizer {

Callers 1

DetermineModeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected