MCPcopy Create free account
hub / github.com/ClassiCube/ClassiCube / String_CaselessStarts

Function String_CaselessStarts

src/String.c:382–393  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

380}
381
382int String_CaselessStarts(const cc_string* str, const cc_string* sub) {
383 char strCur, subCur;
384 int i;
385 if (str->length < sub->length) return false;
386
387 for (i = 0; i < sub->length; i++) {
388 strCur = str->buffer[i]; Char_MakeLower(strCur);
389 subCur = sub->buffer[i]; Char_MakeLower(subCur);
390 if (strCur != subCur) return false;
391 }
392 return true;
393}
394
395int String_CaselessEnds(const cc_string* str, const cc_string* sub) {
396 char strCur, subCur;

Callers 15

DynamicLib_Load2Function · 0.85
HttpClient_ParseHeaderFunction · 0.85
StoredHotkeys_LoadAllFunction · 0.85
Soundboard_LoadFunction · 0.85
Http_ParseHeaderFunction · 0.85
Http_AddFunction · 0.85
Process_StartOpenFunction · 0.85
Cw_Callback_4Function · 0.85
DisconnectScreen_ShowFunction · 0.85
Commands_FindMatchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected