Home | History | Annotate | Download | only in genprops

Lines Matching full:value

78   i0..i3 all have the same value in format version 4.0;
136 0 no numeric value (0)
137 1 decimal digit value (0..9)
138 2 digit value (0..9)
139 3 (U_NT_NUMERIC) normal non-digit numeric value 0..0xff
147 8..15 numeric value
151 // n is the 8-bit numeric value from bits 8..15 of the trie word (shifted down)
161 // n is the 8-bit numeric value from bits 8..15 of the trie word (shifted down)
279 fprintf(stderr, "genprops error: unable to encode numeric type & value %d %ld/%lu E%d\n",
290 int32_t type, value, exp;
292 /* encode numeric type & value */
294 value=p->numericValue;
301 value<-1 || value==0 || value>UPROPS_FRACTION_MAX_NUM ||
309 if(value==-1) {
310 value=0;
313 value=(value<<UPROPS_FRACTION_NUM_SHIFT)|den;
315 /* very large value */
317 value<1 || 9<value ||
329 if(value!=1) {
332 value=0;
335 value=(value<<UPROPS_LARGE_MANT_SHIFT)|exp;
336 } else if(value>UPROPS_MAX_SMALL_NUMBER) {
337 /* large value */
343 /* split the value into mantissa and exponent, base 10 */
344 while((value%10)==0) {
345 value/=10;
348 if(value>9) {
353 value=(value<<UPROPS_LARGE_MANT_SHIFT)|exp;
354 } else if(value<0) {
358 /* } else normal value=0..0xff { */
365 ((uint32_t)value<<UPROPS_NUMERIC_VALUE_SHIFT);