Ignore:
Timestamp:
Nov 21, 2005 5:01:50 PM (19 years ago)
Author:
bennylp
Message:

Added pj_stricmp_alnum() to speedup the parser!!!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/include/pj/string.h

    r66 r72  
    335335 * @return  
    336336 *      - < 0 if str1 is less than str2 
    337  *      - 0   if str1 is identical to str2 
    338  *      - > 0 if str1 is greater than str2 
    339  */ 
    340 PJ_IDECL(int) pj_stricmp( const pj_str_t *str1, const pj_str_t *str2); 
     337 *      - 0   if str1 is equal to str2 
     338 *      - > 0 if str1 is greater than str2 
     339 */ 
     340PJ_IDECL(int) pj_stricmp(const pj_str_t *str1, const pj_str_t *str2); 
     341 
     342/** 
     343 * Perform lowercase comparison to the strings which consists of only 
     344 * alnum characters. More over, it will only return non-zero if both 
     345 * strings are not equal, and is not able to detect which string is 
     346 * 'less'. 
     347 * 
     348 * If non-alnum inputs are given, then the function may mistakenly  
     349 * treat two strings as equal while they're not. 
     350 * 
     351 * @param str1      The string to compare. 
     352 * @param str2      The string to compare. 
     353 * 
     354 * @return  
     355 *      - 0         if str1 is equal to str2 
     356 *      - (-1)      if not equal. 
     357 */ 
     358PJ_IDECL(int) pj_stricmp_alnum(const pj_str_t *str1, const pj_str_t *str2); 
    341359 
    342360/** 
Note: See TracChangeset for help on using the changeset viewer.