| 458 for(int i=0;i<key_cp.length;i++) { |
458 for(int i=0;i<key_cp.length;i++) { |
| 459 key_cp.ptr[i] = tolower(key_cp.ptr[i]); |
459 key_cp.ptr[i] = tolower(key_cp.ptr[i]); |
| 460 } |
460 } |
| 461 cxmutstr value_cp = cx_strdup(cx_strtrim(value)); |
461 cxmutstr value_cp = cx_strdup(cx_strtrim(value)); |
| 462 |
462 |
| 463 cxMapPut(map, cx_hash_key(key_cp.ptr, key_cp.length), value_cp.ptr); |
463 cxMapPut(map, key_cp, value_cp.ptr); |
| 464 |
464 |
| 465 free(key_cp.ptr); |
465 free(key_cp.ptr); |
| 466 |
466 |
| 467 return sbuffer.length; |
467 return sbuffer.length; |
| 468 } |
468 } |