Home
last modified time | relevance | path

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

/external/icu/icu4c/source/common/
Ducnvbocu.cpp87 #define BOCU1_REACH_POS_1 (BOCU1_SINGLE-1) macro
91 #define BOCU1_REACH_POS_2 (BOCU1_REACH_POS_1+BOCU1_LEAD_2*BOCU1_TRAIL_COUNT)
101 #define BOCU1_START_POS_2 (BOCU1_MIDDLE+BOCU1_REACH_POS_1+1)
217 #define DIFF_IS_SINGLE(diff) (BOCU1_REACH_NEG_1<=(diff) && (diff)<=BOCU1_REACH_POS_1)
294 if(diff<=BOCU1_REACH_POS_1) { in packDiff()
301 diff-=BOCU1_REACH_POS_1+1; in packDiff()
525 diff-=BOCU1_REACH_POS_1+1; in _Bocu1FromUnicodeWithOffsets()
766 diff-=BOCU1_REACH_POS_1+1; in _Bocu1FromUnicode()
890 diff=((int32_t)b-BOCU1_START_POS_2)*BOCU1_TRAIL_COUNT+BOCU1_REACH_POS_1+1; in decodeBocu1LeadByte()
1067 diff=((int32_t)c-BOCU1_START_POS_2)*BOCU1_TRAIL_COUNT+BOCU1_REACH_POS_1+1; in _Bocu1ToUnicodeWithOffsets()
[all …]
/external/icu/icu4c/source/test/cintltst/
Dbocu1tst.c97 #define BOCU1_REACH_POS_1 (BOCU1_SINGLE-1) macro
101 #define BOCU1_REACH_POS_2 (BOCU1_REACH_POS_1+BOCU1_LEAD_2*BOCU1_TRAIL_COUNT)
111 #define BOCU1_START_POS_2 (BOCU1_MIDDLE+BOCU1_REACH_POS_1+1)
292 if(diff<=BOCU1_REACH_POS_1) { in packDiff()
297 diff-=BOCU1_REACH_POS_1+1; in packDiff()
423 c=((int32_t)b-BOCU1_START_POS_2)*BOCU1_TRAIL_COUNT+BOCU1_REACH_POS_1+1; in decodeBocu1LeadByte()
795 log_verbose("reach of single bytes: %ld\n", 1+BOCU1_REACH_POS_1-BOCU1_REACH_NEG_1); in TestBOCU1RefDiff()
799 …se(" BOCU1_REACH_NEG_1 %8ld BOCU1_REACH_POS_1 %8ld\n", BOCU1_REACH_NEG_1, BOCU1_REACH_POS_1); in TestBOCU1RefDiff()
/external/icu/icu4j/main/classes/charset/src/com/ibm/icu/charset/
DCharsetBOCU1.java61 private static final int BOCU1_REACH_POS_1 = (BOCU1_SINGLE-1); field in CharsetBOCU1
65 private static final int BOCU1_REACH_POS_2 = (BOCU1_REACH_POS_1+BOCU1_LEAD_2*BOCU1_TRAIL_COUNT);
75 private static final int BOCU1_START_POS_2 = (BOCU1_MIDDLE+BOCU1_REACH_POS_1+1);
211 return (BOCU1_REACH_NEG_1<=(diff) && (diff)<=BOCU1_REACH_POS_1); in DIFF_IS_SINGLE()
300 diff-=BOCU1_REACH_POS_1+1; in packDiff()
559 diff -= BOCU1_REACH_POS_1 +1; in regularLoop()
731 diffValue = (b - BOCU1_START_POS_2)*BOCU1_TRAIL_COUNT + BOCU1_REACH_POS_1+1;
961 diff=(c - BOCU1_START_POS_2)*BOCU1_TRAIL_COUNT + BOCU1_REACH_POS_1 + 1; in afterGetTrail()