| 64 |
|
|
| 65 |
/* searchStr to Tokens */ |
/* searchStr to Tokens */ |
| 66 |
token = strtok(outbuf, " "); |
token = strtok(outbuf, " "); |
| 67 |
|
if(token == NULL) return list; |
| 68 |
tokenList[0] = (char*)malloc(strlen(token)+1); |
tokenList[0] = (char*)malloc(strlen(token)+1); |
| 69 |
snprintf(tokenList[0], strlen(token)+1, "%s", token); |
snprintf(tokenList[0], strlen(token)+1, "%s", token); |
| 70 |
i = 1; |
i = 1; |
| 95 |
decodeFileName = decode(fileName->mb_str()); |
decodeFileName = decode(fileName->mb_str()); |
| 96 |
snprintf(decodeFileNameBuf, MAX_BUF_SIZE, "%s", decodeFileName); |
snprintf(decodeFileNameBuf, MAX_BUF_SIZE, "%s", decodeFileName); |
| 97 |
toLower(buf); |
toLower(buf); |
|
toLower(outbuf); |
|
| 98 |
toLower(decodeFileNameBuf); |
toLower(decodeFileNameBuf); |
| 99 |
found = TRUE; |
found = TRUE; |
| 100 |
for(i = 0; tokenList[i] != NULL; i++){ |
for(i = 0; tokenList[i] != NULL; i++){ |
| 101 |
|
toLower(tokenList[i]); |
| 102 |
if(strstr((const char*)buf, (const char*)tokenList[i]) || |
if(strstr((const char*)buf, (const char*)tokenList[i]) || |
| 103 |
strstr((const char*)decodeFileName, (const char*)tokenList[i])) { |
strstr((const char*)decodeFileNameBuf, (const char*)tokenList[i])) { |
| 104 |
found = TRUE; |
found = TRUE; |
| 105 |
} |
} |
| 106 |
else { |
else { |