Ignore:
Timestamp:
Nov 11, 2005 7:01:31 PM (18 years ago)
Author:
bennylp
Message:

First clean compile of pjsip

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/main/pjlib/src/pj/hash.c

    r6 r43  
    5050    } 
    5151    return hash; 
     52} 
     53 
     54PJ_DEF(pj_uint32_t) pj_hash_calc_tolower( pj_uint32_t hval, 
     55                                          char *result, 
     56                                          const pj_str_t *key) 
     57{ 
     58    long i; 
     59 
     60    for (i=0; i<key->slen; ++i) { 
     61        result[i] = (char)pj_tolower(key->ptr[i]); 
     62        hval = hval * PJ_HASH_MULTIPLIER + result[i]; 
     63    } 
     64 
     65    return hval; 
    5266} 
    5367 
Note: See TracChangeset for help on using the changeset viewer.