Changeset 5513 for pjproject/branches/projects/uwp/pjlib/src/pj/hash.c
- Timestamp:
- Dec 28, 2016 3:40:07 AM (8 years ago)
- Location:
- pjproject/branches/projects/uwp
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/projects/uwp
- Property svn:mergeinfo changed
/pjproject/trunk (added) merged: 5209,5212-5234,5237-5253,5255,5257-5292,5294-5297,5299-5332,5334-5394,5396-5438,5440-5469,5471-5496,5498-5510
- Property svn:mergeinfo changed
-
pjproject/branches/projects/uwp/pjlib/src/pj/hash.c
r4537 r5513 77 77 long i; 78 78 79 #if defined(PJ_HASH_USE_OWN_TOLOWER) && PJ_HASH_USE_OWN_TOLOWER != 080 for (i=0; i<key->slen; ++i) {81 pj_uint8_t c = key->ptr[i];82 char lower;83 if (c & 64)84 lower = (char)(c | 32);85 else86 lower = (char)c;87 if (result)88 result[i] = lower;89 hval = hval * PJ_HASH_MULTIPLIER + lower;90 }91 #else92 79 for (i=0; i<key->slen; ++i) { 93 80 char lower = (char)pj_tolower(key->ptr[i]); … … 96 83 hval = hval * PJ_HASH_MULTIPLIER + lower; 97 84 } 98 #endif99 85 100 86 return hval;
Note: See TracChangeset
for help on using the changeset viewer.