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

Method Search

Libraries/unrar/strlist.cpp:110–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108
109#ifndef SFX_MODULE
110bool StringList::Search(const wchar *Str,bool CaseSensitive)
111{
112 SavePosition();
113 Rewind();
114 bool Found=false;
115 wchar *CurStr;
116 while (GetString(&CurStr))
117 {
118 if (Str!=NULL && CurStr!=NULL)
119 if ((CaseSensitive ? wcscmp(Str,CurStr):wcsicomp(Str,CurStr))!=0)
120 continue;
121 Found=true;
122 break;
123 }
124 RestorePosition();
125 return Found;
126}
127#endif
128
129

Callers 1

ExtractArchiveMethod · 0.80

Calls 1

wcsicompFunction · 0.85

Tested by

no test coverage detected