Changeset 43 for pjproject/main/pjlib/src/pj/hash.c
- Timestamp:
- Nov 11, 2005 7:01:31 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/main/pjlib/src/pj/hash.c
r6 r43 50 50 } 51 51 return hash; 52 } 53 54 PJ_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; 52 66 } 53 67
Note: See TracChangeset
for help on using the changeset viewer.