Home | History | Annotate | Download | only in common

Lines Matching full:mapping

650             const uint16_t *mapping=getMapping(norm16);
651 uint16_t firstUnit=*mapping;
656 leadCC=(uint8_t)(*(mapping-1)>>8);
660 return buffer.append((const UChar *)mapping+1, length, leadCC, trailCC, errorCode);
684 const uint16_t *mapping=getMapping(norm16);
685 length=*mapping&MAPPING_LENGTH_MASK;
686 return (const UChar *)mapping+1;
692 // so that a raw mapping fits that consists of one unit ("rm0")
693 // plus all but the first two code units of the normal mapping.
694 // The maximum length of a normal mapping is 31=MAPPING_LENGTH_MASK.
697 // We do not loop in this method because an algorithmic mapping itself
715 const uint16_t *mapping=getMapping(norm16);
716 uint16_t firstUnit=*mapping;
717 int32_t mLength=firstUnit&MAPPING_LENGTH_MASK; // length of normal mapping
719 // Read the raw mapping from before the firstUnit and before the optional ccc/lccc word.
721 const uint16_t *rawMapping=mapping-((firstUnit>>7)&1)-1;
727 // Copy the normal mapping and replace its first two code units with rm0.
729 u_memcpy(buffer+1, (const UChar *)mapping+1+2, mLength-2);
735 return (const UChar *)mapping+1;
784 const uint16_t *mapping=getMapping(norm16);
785 uint16_t firstUnit=*mapping;
801 return (firstUnit&MAPPING_HAS_CCC_LCCC_WORD)==0 || (*(mapping-1)&0xff00)==0;
1101 if(norm16>minYesNo) { // composite 'a' has both mapping & compositions list
1102 list+= // mapping pointer
1103 1+ // +1 to skip the first unit with the mapping lenth
1104 (*list&MAPPING_LENGTH_MASK); // + mapping length
1223 * c is either a "noNo" (has a mapping) or a "maybeYes" (combines backward)
1315 // mapping and check for canonical order.
1458 * c is either a "noNo" (has a mapping) or a "maybeYes" (combines backward)
1472 // mapping and check for canonical order.
1549 const uint16_t *mapping=getMapping(norm16);
1550 uint16_t firstUnit=*mapping;
1554 if((firstUnit&MAPPING_HAS_CCC_LCCC_WORD) && (*(mapping-1)&0xff00)) {
1559 U16_NEXT_UNSAFE(mapping, i, c);
1583 const uint16_t *mapping=getMapping(norm16);
1584 uint16_t firstUnit=*mapping;
1644 const uint16_t *mapping=getMapping(norm16);
1645 uint16_t firstUnit=*mapping;
1654 norm16|=*(mapping-1)&0xff00; // lccc
1937 // Inert, or 2-way mapping (including Hangul syllable).
1966 const uint16_t *mapping=getMapping(norm16_2);
1967 uint16_t firstUnit=*mapping;
1970 if(c==c2 && (*(mapping-1)&0xff)!=0) {
1976 ++mapping; // skip over the firstUnit
1979 U16_NEXT_UNSAFE(mapping, i, c2);
1982 // one-way mapping. A 2-way mapping is possible here after
1983 // intermediate algorithmic mapping.
1986 U16_NEXT_UNSAFE(mapping, i, c2);