MCPcopy Create free account
hub / github.com/abbeycode/UnrarKit / wcscasestr

Function wcscasestr

Libraries/unrar/unicode.cpp:474–485  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

472
473
474const wchar_t* wcscasestr(const wchar_t *str, const wchar_t *search)
475{
476 for (size_t i=0;str[i]!=0;i++)
477 for (size_t j=0;;j++)
478 {
479 if (search[j]==0)
480 return str+i;
481 if (tolowerw(str[i+j])!=tolowerw(search[j]))
482 break;
483 }
484 return NULL;
485}
486
487
488#ifndef SFX_MODULE

Callers

nothing calls this directly

Calls 1

tolowerwFunction · 0.85

Tested by

no test coverage detected