Changeset 5494
- Timestamp:
- Dec 7, 2016 3:24:16 AM (8 years ago)
- Location:
- pjproject/trunk/pjlib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/include/pj/config_site_sample.h
r5320 r5494 478 478 # define PJSIP_SAFE_MODULE 0 479 479 # define PJ_HAS_STRICMP_ALNUM 0 480 # define PJ_HASH_USE_OWN_TOLOWER 1481 480 # define PJSIP_UNESCAPE_IN_PLACE 1 482 481 -
pjproject/trunk/pjlib/src/pj/hash.c
r4537 r5494 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.