MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / imemcmp

Function imemcmp

src/SB/Core/x/xString.cpp:254–270  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

252}
253
254S32 imemcmp(void const* d1, void const* d2, size_t size)
255{
256 const char* s1 = (char*)d1;
257 const char* s2 = (char*)d2;
258
259 for (size_t i = 0; i < size; i++)
260 {
261 S32 cval1 = tolower(s1[i]);
262 S32 cval2 = tolower(s2[i]);
263 if (cval1 != cval2)
264 {
265 return cval1 - cval2;
266 }
267 }
268
269 return 0;
270}
271
272namespace
273{

Callers 3

load_tex_argsFunction · 0.70
parse_tag_wrapFunction · 0.70
icompareFunction · 0.70

Calls 1

tolowerFunction · 0.70

Tested by

no test coverage detected