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

Function icompare

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

Source from the content-addressed store, hash-verified

283} // End anonymous namespace
284
285S32 icompare(const substr& s1, const substr& s2)
286{
287 U32 len = MIN(s1.size, s2.size);
288 S32 result = imemcmp(s1.text, s2.text, len);
289 switch (result)
290 {
291 case 0:
292 if (s1.size == s2.size)
293 {
294 result = 0;
295 }
296 else
297 {
298 result = 1;
299 if (s1.size < s2.size)
300 {
301 result = -1;
302 }
303 }
304 break;
305 }
306 return result;
307}

Callers 12

parse_next_tag_jotFunction · 0.70
load_tex_argsFunction · 0.70
load_model_argsFunction · 0.70
find_entryMethod · 0.70
parse_tag_xjustifyFunction · 0.70
parse_tag_yjustifyFunction · 0.70
register_tagsMethod · 0.70
find_format_tagMethod · 0.70
find_varFunction · 0.50
read_boolFunction · 0.50
load_wait_contextFunction · 0.50
parse_tag_soundFunction · 0.50

Calls 1

imemcmpFunction · 0.70

Tested by

no test coverage detected