Ignore:
Timestamp:
Jan 26, 2008 10:45:52 AM (16 years ago)
Author:
bennylp
Message:

Added pj_strstr() and pj_stristr() in pjlib

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_call.c

    r1745 r1757  
    254254 
    255255    return PJSUA_INVALID_ID; 
    256 } 
    257  
    258 static pj_bool_t pj_stristr(const pj_str_t *str, const pj_str_t *substr) 
    259 { 
    260     int i; 
    261  
    262     for (i=0; i<=(str->slen-substr->slen); ++i) { 
    263         pj_str_t s; 
    264         s.ptr = str->ptr+i; 
    265         s.slen = substr->slen; 
    266  
    267         if (pj_stricmp(&s, substr)==0) 
    268             return PJ_TRUE; 
    269     } 
    270     return PJ_FALSE; 
    271256} 
    272257 
Note: See TracChangeset for help on using the changeset viewer.