int stricompcw(const wchar *Str1,const wchar *Str2) { #if defined(_UNIX) return(strcmpw(Str1,Str2)); #else return(stricmpw(Str1,Str2)); #endif }
bool StringList::Search(char *Str,wchar *StrW,bool CaseSensitive) { SavePosition(); Rewind(); bool Found=false; char *CurStr; wchar *CurStrW; while (GetString(&CurStr,&CurStrW)) { if ((CaseSensitive ? strcmp(Str,CurStr):stricomp(Str,CurStr))!=0) continue; if (StrW!=NULL && CurStrW!=NULL) if ((CaseSensitive ? strcmpw(StrW,CurStrW):stricmpw(StrW,CurStrW))!=0) continue; Found=true; break; } RestorePosition(); return(Found); }
int mstricompcw(const wchar *Str1,const wchar *Str2,bool ForceCase) { if (ForceCase) return(strcmpw(Str1,Str2)); return(stricompcw(Str1,Str2)); }