Home | History | Annotate | Download | only in i18n

Lines Matching defs:primary

749     // Note: We use primary byte values 2..255: digits are not compressible.
756 // Primary weight second byte values:
757 // 74 byte values 2.. 75 for small numbers in two-byte primary weights.
758 // 40 byte values 76..115 for medium numbers in three-byte primary weights.
759 // 16 byte values 116..131 for large numbers in four-byte primary weights.
764 // Two-byte primary for 0..73, good for day & month numbers etc.
765 uint32_t primary = numericPrimary | ((firstByte + value) << 16);
766 ceBuffer.append(Collation::makeCE(primary), errorCode);
773 // Three-byte primary for 74..10233=74+40*254-1, good for year numbers and more.
774 uint32_t primary = numericPrimary |
776 ceBuffer.append(Collation::makeCE(primary), errorCode);
783 // Four-byte primary for 10234..1042489=10234+16*254*254-1.
784 uint32_t primary = numericPrimary | (2 + value % 254);
786 primary |= (2 + value % 254) << 8;
788 primary |= (firstByte + value % 254) << 16;
789 ceBuffer.append(Collation::makeCE(primary), errorCode);
796 // The second primary byte value 132..255 indicates the number of digit pairs (4..127),
797 // then we generate primary bytes with those pairs.
803 uint32_t primary = numericPrimary | ((132 - 4 + numPairs) << 16);
824 // Every three pairs/bytes we need to store a 4-byte-primary CE
825 // and start with a new CE with the '0' primary lead byte.
826 primary |= pair;
827 ceBuffer.append(Collation::makeCE(primary), errorCode);
828 primary = numericPrimary;
831 primary |= pair << shift;
837 primary |= (pair - 1) << shift;
838 ceBuffer.append(Collation::makeCE(primary), errorCode);