Home | History | Annotate | Download | only in gensprep

Lines Matching full:value

80  * Each code point is associated with a value (trie-word) in the trie.
84 * i) A value greater than or equal to _SPREP_TYPE_THRESHOLD (0xFFF0)
94 * ii) A value less than _SPREP_TYPE_THRESHOLD means the type is USPREP_MAP and
98 * 1 - ON : The value in the next 14 bits is an index into the mapping table
99 * OFF: The value in the next 14 bits is an delta value from the code point
101 * (value = _SPREP_MAX_INDEX_VALUE) then the type is USPREP_DELETE
106 * If the type of the code point is USPREP_MAP and value in trie word is an index, the index
129 /* indexes[] value names */
218 /* Callback for deleting the value from the hashtable */
220 ValueStruct* value = (ValueStruct*) obj;
221 uprv_free(value->mapping);
222 uprv_free(value);
241 ValueStruct* value = NULL;
265 value = (ValueStruct*)element->value.pointer;
282 if(value->length == mappingLength){
289 fprintf(stderr,"trieWord cannot contain value greater than 0x%04X.\n",_SPREP_TYPE_THRESHOLD);
300 * the codepoint has value something other than prohibited
308 /* now set the value in the trie */
310 fprintf(stderr,"Could not set the value for code point.\n");
318 if(currentIndex+value->length+1 > _SPREP_MAX_INDEX_VALUE){
319 fprintf(stderr, "Too many entries in the mapping table %i. Maximum allowed is %i\n", currentIndex+value->length, _SPREP_MAX_INDEX_VALUE);
324 if(currentIndex+value->length+1 <= mappingDataCapacity){
331 uprv_memmove(mappingData+currentIndex, value->mapping, value->length*U_SIZEOF_UCHAR);
332 currentIndex += value->length;
351 uprv_memmove(mappingData+currentIndex, value->mapping, value->length*U_SIZEOF_UCHAR);
352 currentIndex += value->length;
380 ValueStruct *value = NULL;
397 * the codepoint has value something other than prohibited
416 /* make sure that the value of trieWord is less than the threshold */
418 /* now set the value in the trie */
420 fprintf(stderr,"Could not set the value for code point.\n");
423 /* value is set so just return */
426 fprintf(stderr,"trieWord cannot contain value greater than threshold 0x%04X.\n",_SPREP_TYPE_THRESHOLD);
444 /* make sure that the value of trieWord is less than the threshold */
446 /* now set the value in the trie */
448 fprintf(stderr,"Could not set the value for code point.\n");
451 /* value is set so just return */
476 value = (ValueStruct*) uprv_malloc(sizeof(ValueStruct));
477 value->mapping = map;
478 value->type = type;
479 value->length = adjustedLen;
480 if(value->length > _SPREP_MAX_INDEX_TOP_LENGTH){
483 if(maxLength < value->length){
484 maxLength = value->length;
486 uhash_iput(hashTable,codepoint,value,status);
501 fprintf(stderr,"trieWord cannot contain value greater than 0xFFFF.\n");
504 trieWord = (_SPREP_TYPE_THRESHOLD + type); /* the top 4 bits contain the value */
522 /* make sure that the value of trieWord is less than the threshold */
524 /* now set the value in the trie */
526 fprintf(stderr,"Could not set the value for code point.\n");
529 /* value is set so just return */
532 fprintf(stderr,"trieWord cannot contain value greater than threshold 0x%04X.\n",_SPREP_TYPE_THRESHOLD);
537 fprintf(stderr,"Value for codepoint \\U%08X already set!.\n", (int)start);
540 /* if savedTrieWord == trieWord .. fall through and set the value */
543 fprintf(stderr,"Could not set the value for code point \\U%08X.\n", (int)start);
548 fprintf(stderr,"Value for certain codepoint already set.\n");
555 /* folding value: just store the offset (16 bits) if there is any non-0 entry */
558 uint32_t foldedValue, value;
566 value=utrie_get32(trie, start, &inBlockZero);
569 } else if(value!=0) {