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

Added pj_strstr() and pj_stristr() in pjlib

File:
1 edited

Legend:

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

    r1397 r1757  
    473473 
    474474/** 
     475 * Find the occurence of a substring substr in string str. 
     476 * 
     477 * @param str       The string to search. 
     478 * @param substr    The string to search fo. 
     479 * 
     480 * @return the pointer to the position of substr in str, or NULL. Note 
     481 *         that if str is not NULL terminated, the returned pointer 
     482 *         is pointing to non-NULL terminated string. 
     483 */ 
     484PJ_DECL(char*) pj_strstr(const pj_str_t *str, const pj_str_t *substr); 
     485 
     486/** 
     487 * Performs substring lookup like pj_strstr() but ignores the case of 
     488 * both strings. 
     489 * 
     490 * @param str       The string to search. 
     491 * @param substr    The string to search fo. 
     492 * 
     493 * @return the pointer to the position of substr in str, or NULL. Note 
     494 *         that if str is not NULL terminated, the returned pointer 
     495 *         is pointing to non-NULL terminated string. 
     496 */ 
     497PJ_DECL(char*) pj_stristr(const pj_str_t *str, const pj_str_t *substr); 
     498 
     499/** 
    475500 * Remove (trim) leading whitespaces from the string. 
    476501 * 
Note: See TracChangeset for help on using the changeset viewer.