Changeset 14444
- Timestamp:
- 03/06/12 18:24:22 (10 years ago)
- Location:
- titan/titan
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/titan/epgsearch.h
r14434 r14444 32 32 { 33 33 if(epgnode->title != NULL) 34 result = strstr(epgnode->title, search);34 result = ostrstrcase(epgnode->title, search); 35 35 } 36 36 if((searchtype == 1 || searchtype == 2) && result == NULL) … … 39 39 if(epgdesc != NULL) 40 40 { 41 result = strstr(epgdesc, search);41 result = ostrstrcase(epgdesc, search); 42 42 free(epgdesc); epgdesc = NULL; 43 43 } -
titan/titan/global.h
r14382 r14444 4696 4696 } 4697 4697 4698 char* ostrstrcase(char* str, char* sub) 4699 { 4700 size_t len = 0; 4701 4702 if(str == NULL || sub == NULL) return NULL; 4703 4704 len = strlen(sub); 4705 while(*str) 4706 { 4707 if(toupper(*str) == toupper(*sub) && strncasecmp(str, sub, len) == 0) 4708 return str; 4709 ++str; 4710 } 4711 return NULL; 4712 } 4713 4698 4714 #endif
Note: See TracChangeset
for help on using the changeset viewer.