Lines Matching refs:mapping

37  * The file format prepared and written here contains a 16-bit trie and a mapping table.
70 * indexes[_SPREP_ONE_UCHAR_MAPPING_INDEX_START] -- The starting index of 1 UChar mapping index in the mapping table
71 * indexes[_SPREP_TWO_UCHARS_MAPPING_INDEX_START] -- The starting index of 2 UChars mapping index in the mapping table
72 * indexes[_SPREP_THREE_UCHARS_MAPPING_INDEX_START] -- The starting index of 3 UChars mapping index in the mapping table
73 * indexes[_SPREP_FOUR_UCHARS_MAPPING_INDEX_START] -- The starting index of 4 UChars mapping index in the mapping table
98 * 1 - ON : The value in the next 14 bits is an index into the mapping table
105 * The data in mapping table is sorted according to the length of the mapping sequence.
120 * // The first position in the mapping table contains the length
153 static int32_t mappingDataCapacity = 0; /* we skip the first index in mapping data */
155 static int32_t maxLength = 0; /* maximum length of mapping string */
213 UChar* mapping;
221 uprv_free(value->mapping);
245 int32_t mappingLength = 1; /* minimum mapping length */
255 /*initialize the mapping data */
301 * and a mapping .. error!
319 fprintf(stderr, "Too many entries in the mapping table %i. Maximum allowed is %i\n", currentIndex+value->length, _SPREP_MAX_INDEX_VALUE);
323 /* copy the mapping data */
331 uprv_memmove(mappingData+currentIndex, value->mapping, value->length*U_SIZEOF_UCHAR);
338 fprintf(stderr, "Could not realloc the mapping data!\n");
351 uprv_memmove(mappingData+currentIndex, value->mapping, value->length*U_SIZEOF_UCHAR);
373 storeMapping(uint32_t codepoint, uint32_t* mapping,int32_t length,
398 * and a mapping .. error!
407 if(mapping[i] > 0xFFFF){
433 int16_t delta = (int16_t)((int32_t)codepoint - (int16_t) mapping[0]);
457 * just fall through for storing the mapping in the mapping table
467 if(mapping[i] <= 0xFFFF){
468 map[i] = (uint16_t)mapping[i];
470 map[i] = UTF16_LEAD(mapping[i]);
471 map[i+1] = UTF16_TRAIL(mapping[i]);
477 value->mapping = map;
510 * A mapping is stored in the trie word
598 /* sort and add mapping data */
611 printf("size of mapping data array %5u bytes\n",(int)mappingDataCapacity * U_SIZEOF_UCHAR);
613 printf("Maximum length of the mapping string is : %i \n", (int)maxLength);