| 171 |
iconv(codeSet, (ICONV_CONST char**)&inbufPtr, (size_t*)&inbufSize, &outbufPtr, (size_t*)&outbufSize); |
iconv(codeSet, (ICONV_CONST char**)&inbufPtr, (size_t*)&inbufSize, &outbufPtr, (size_t*)&outbufSize); |
| 172 |
|
|
| 173 |
typeToken = new wxString(outbuf, conv); |
typeToken = new wxString(outbuf, conv); |
|
//wxLogMessage(wxT("[%s]"), typeToken->c_str()); |
|
| 174 |
addSearchStr(typeToken); |
addSearchStr(typeToken); |
| 175 |
delete typeToken; |
delete typeToken; |
| 176 |
ptr = NULL; |
ptr = NULL; |
| 234 |
if(strstr((const char*)buf, TYPE_TAG)){ /* search TYPE line */ |
if(strstr((const char*)buf, TYPE_TAG)){ /* search TYPE line */ |
| 235 |
typeToken = strtok(typeStrCopy, ":"); |
typeToken = strtok(typeStrCopy, ":"); |
| 236 |
typeToken = strtok(NULL, ":"); /* second field separated by colon(:) */ |
typeToken = strtok(NULL, ":"); /* second field separated by colon(:) */ |
| 237 |
|
if(typeToken == NULL) return false; |
| 238 |
toLower(typeToken); |
toLower(typeToken); |
| 239 |
toLower(buf); |
toLower(buf); |
| 240 |
if(strstr(buf, typeToken)) return true; |
if(strstr(buf, typeToken)) return true; |
| 249 |
|
|
| 250 |
if(searchStrList->Index(searchStr->c_str()) == wxNOT_FOUND){ |
if(searchStrList->Index(searchStr->c_str()) == wxNOT_FOUND){ |
| 251 |
string = new wxString(searchStr->c_str()); |
string = new wxString(searchStr->c_str()); |
| 252 |
//searchStrList->Add(*string, 1); |
searchStrList->Add(*string, 1); |
| 253 |
searchStrList->Insert(*string, 0); |
//searchStrList->Insert(*string, 0); |
| 254 |
} |
} |
| 255 |
} |
} |
| 256 |
|
|