Ignore:
Timestamp:
Jul 3, 2006 10:08:47 PM (17 years ago)
Author:
bennylp
Message:

Various performance improvements in PJSIP: (1) optimizing for common case to minimize stricmp() calls (header names, method, URI schemes), (2) added functionality in scanner to parse and unescape in-place, (3) etc..

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib-util/include/pjlib-util/scanner.h

    r570 r583  
    333333 
    334334/**  
     335 * Just like #pj_scan_get(), but additionally performs unescaping when 
     336 * escaped ('%') character is found. The input spec MUST NOT contain the 
     337 * specification for '%' characted. 
     338 * 
     339 * @param scanner   The scanner. 
     340 * @param spec      The spec to match input string. 
     341 * @param out       String to store the result. 
     342 */ 
     343PJ_DECL(void) pj_scan_get_unescape( pj_scanner *scanner, 
     344                                    const pj_cis_t *spec, pj_str_t *out); 
     345 
     346 
     347/**  
    335348 * Get characters between quotes. If current input doesn't match begin_quote, 
    336349 * syntax error will be thrown. Note that the resulting string will contain 
Note: See TracChangeset for help on using the changeset viewer.