OLD | NEW |
1 /* | 1 /* |
2 ******************************************************************************* | 2 ******************************************************************************* |
3 * | 3 * |
4 * Copyright (C) 1999-2012, International Business Machines | 4 * Copyright (C) 1999-2014, International Business Machines |
5 * Corporation and others. All Rights Reserved. | 5 * Corporation and others. All Rights Reserved. |
6 * | 6 * |
7 ******************************************************************************* | 7 ******************************************************************************* |
8 * file name: store.c | 8 * file name: store.c |
9 * encoding: US-ASCII | 9 * encoding: US-ASCII |
10 * tab size: 8 (not used) | 10 * tab size: 8 (not used) |
11 * indentation:4 | 11 * indentation:4 |
12 * | 12 * |
13 * created on: 2003-02-06 | 13 * created on: 2003-02-06 |
14 * created by: Ram Viswanadha | 14 * created by: Ram Viswanadha |
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 | 229 |
230 /* Callback for comparing two entries */ | 230 /* Callback for comparing two entries */ |
231 static UBool U_CALLCONV compareEntries(const UHashTok p1, const UHashTok p2) { | 231 static UBool U_CALLCONV compareEntries(const UHashTok p1, const UHashTok p2) { |
232 return (UBool)(p1.integer != p2.integer); | 232 return (UBool)(p1.integer != p2.integer); |
233 } | 233 } |
234 | 234 |
235 | 235 |
236 static void | 236 static void |
237 storeMappingData(){ | 237 storeMappingData(){ |
238 | 238 |
239 int32_t pos = -1; | 239 int32_t pos = UHASH_FIRST; |
240 const UHashElement* element = NULL; | 240 const UHashElement* element = NULL; |
241 ValueStruct* value = NULL; | 241 ValueStruct* value = NULL; |
242 int32_t codepoint = 0; | 242 int32_t codepoint = 0; |
243 int32_t elementCount = 0; | 243 int32_t elementCount = 0; |
244 int32_t writtenElementCount = 0; | 244 int32_t writtenElementCount = 0; |
245 int32_t mappingLength = 1; /* minimum mapping length */ | 245 int32_t mappingLength = 1; /* minimum mapping length */ |
246 int32_t oldMappingLength = 0; | 246 int32_t oldMappingLength = 0; |
247 uint16_t trieWord =0; | 247 uint16_t trieWord =0; |
248 int32_t limitIndex = 0; | 248 int32_t limitIndex = 0; |
249 | 249 |
(...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
638 #endif /* #if !UCONFIG_NO_IDNA */ | 638 #endif /* #if !UCONFIG_NO_IDNA */ |
639 | 639 |
640 /* | 640 /* |
641 * Hey, Emacs, please set the following: | 641 * Hey, Emacs, please set the following: |
642 * | 642 * |
643 * Local Variables: | 643 * Local Variables: |
644 * indent-tabs-mode: nil | 644 * indent-tabs-mode: nil |
645 * End: | 645 * End: |
646 * | 646 * |
647 */ | 647 */ |
OLD | NEW |