Home
last modified time | relevance | path

Searched refs:BOCU1_START_POS_2 (Results 1 – 3 of 3) sorted by relevance

/external/icu/icu4c/source/common/
Ducnvbocu.cpp101 #define BOCU1_START_POS_2 (BOCU1_MIDDLE+BOCU1_REACH_POS_1+1) macro
102 #define BOCU1_START_POS_3 (BOCU1_START_POS_2+BOCU1_LEAD_2)
113 ((BOCU1_START_NEG_2<=(lead) && (lead)<BOCU1_START_POS_2) ? 1 : \
308 result|=(BOCU1_START_POS_2+diff)<<8; in packDiff()
528 diff+=BOCU1_START_POS_2; in _Bocu1FromUnicodeWithOffsets()
769 diff+=BOCU1_START_POS_2; in _Bocu1FromUnicode()
890 diff=((int32_t)b-BOCU1_START_POS_2)*BOCU1_TRAIL_COUNT+BOCU1_REACH_POS_1+1; in decodeBocu1LeadByte()
1009 if(BOCU1_START_NEG_2<=(c=*source) && c<BOCU1_START_POS_2) { in _Bocu1ToUnicodeWithOffsets()
1042 if(BOCU1_START_NEG_2<=c && c<BOCU1_START_POS_2) { in _Bocu1ToUnicodeWithOffsets()
1067 diff=((int32_t)c-BOCU1_START_POS_2)*BOCU1_TRAIL_COUNT+BOCU1_REACH_POS_1+1; in _Bocu1ToUnicodeWithOffsets()
[all …]
/external/icu/icu4j/main/classes/charset/src/com/ibm/icu/charset/
DCharsetBOCU1.java75 private static final int BOCU1_START_POS_2 = (BOCU1_MIDDLE+BOCU1_REACH_POS_1+1); field in CharsetBOCU1
76 private static final int BOCU1_START_POS_3 = (BOCU1_START_POS_2+BOCU1_LEAD_2);
307 result|=(BOCU1_START_POS_2+diff)<<8; in packDiff()
562 diff+=BOCU1_START_POS_2; in regularLoop()
731 diffValue = (b - BOCU1_START_POS_2)*BOCU1_TRAIL_COUNT + BOCU1_REACH_POS_1+1;
854 …(c=source.get(source.position())&UConverterConstants.UNSIGNED_BYTE_MASK) && c< BOCU1_START_POS_2) { in fastSingle()
931 if(BOCU1_START_NEG_2 <= c && c < BOCU1_START_POS_2) { in afterGetTrail()
961 diff=(c - BOCU1_START_POS_2)*BOCU1_TRAIL_COUNT + BOCU1_REACH_POS_1 + 1; in afterGetTrail()
/external/icu/icu4c/source/test/cintltst/
Dbocu1tst.c111 #define BOCU1_START_POS_2 (BOCU1_MIDDLE+BOCU1_REACH_POS_1+1) macro
112 #define BOCU1_START_POS_3 (BOCU1_START_POS_2+BOCU1_LEAD_2)
123 ((BOCU1_START_NEG_2<=(lead) && (lead)<BOCU1_START_POS_2) ? 1 : \
298 lead=BOCU1_START_POS_2; in packDiff()
423 c=((int32_t)b-BOCU1_START_POS_2)*BOCU1_TRAIL_COUNT+BOCU1_REACH_POS_1+1; in decodeBocu1LeadByte()
572 if(b>=BOCU1_START_NEG_2 && b<BOCU1_START_POS_2) { in decodeBocu1()
804 … BOCU1_START_NEG_2 0x%02x BOCU1_START_POS_2 0x%02x\n", BOCU1_START_NEG_2, BOCU1_START_POS_2); in TestBOCU1RefDiff()