| 108 | |
| 109 | #ifndef SFX_MODULE |
| 110 | bool 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 |
no test coverage detected