Home | History | Annotate | Download | only in common

Lines Matching full:mapping

601             const uint16_t *mapping=getMapping(norm16);
602 uint16_t firstUnit=*mapping;
607 leadCC=(uint8_t)(*(mapping-1)>>8);
611 return buffer.append((const UChar *)mapping+1, length, leadCC, trailCC, errorCode);
635 const uint16_t *mapping=getMapping(norm16);
636 length=*mapping&MAPPING_LENGTH_MASK;
637 return (const UChar *)mapping+1;
643 // so that a raw mapping fits that consists of one unit ("rm0")
644 // plus all but the first two code units of the normal mapping.
645 // The maximum length of a normal mapping is 31=MAPPING_LENGTH_MASK.
648 // We do not loop in this method because an algorithmic mapping itself
666 const uint16_t *mapping=getMapping(norm16);
667 uint16_t firstUnit=*mapping;
668 int32_t mLength=firstUnit&MAPPING_LENGTH_MASK; // length of normal mapping
670 // Read the raw mapping from before the firstUnit and before the optional ccc/lccc word.
672 const uint16_t *rawMapping=mapping-((firstUnit>>7)&1)-1;
678 // Copy the normal mapping and replace its first two code units with rm0.
680 u_memcpy(buffer+1, (const UChar *)mapping+1+2, mLength-2);
686 return (const UChar *)mapping+1;
735 const uint16_t *mapping=getMapping(norm16);
736 uint16_t firstUnit=*mapping;
752 return (firstUnit&MAPPING_HAS_CCC_LCCC_WORD)==0 || (*(mapping-1)&0xff00)==0;
1052 if(norm16>minYesNo) { // composite 'a' has both mapping & compositions list
1053 list+= // mapping pointer
1054 1+ // +1 to skip the first unit with the mapping lenth
1055 (*list&MAPPING_LENGTH_MASK); // + mapping length
1174 * c is either a "noNo" (has a mapping) or a "maybeYes" (combines backward)
1266 // mapping and check for canonical order.
1409 * c is either a "noNo" (has a mapping) or a "maybeYes" (combines backward)
1423 // mapping and check for canonical order.
1500 const uint16_t *mapping=getMapping(norm16);
1501 uint16_t firstUnit=*mapping;
1505 if((firstUnit&MAPPING_HAS_CCC_LCCC_WORD) && (*(mapping-1)&0xff00)) {
1510 U16_NEXT_UNSAFE(mapping, i, c);
1534 const uint16_t *mapping=getMapping(norm16);
1535 uint16_t firstUnit=*mapping;
1595 const uint16_t *mapping=getMapping(norm16);
1596 uint16_t firstUnit=*mapping;
1605 norm16|=*(mapping-1)&0xff00; // lccc
1888 // Inert, or 2-way mapping (including Hangul syllable).
1917 const uint16_t *mapping=getMapping(norm16_2);
1918 uint16_t firstUnit=*mapping;
1921 if(c==c2 && (*(mapping-1)&0xff)!=0) {
1927 ++mapping; // skip over the firstUnit
1930 U16_NEXT_UNSAFE(mapping, i, c2);
1933 // one-way mapping. A 2-way mapping is possible here after
1934 // intermediate algorithmic mapping.
1937 U16_NEXT_UNSAFE(mapping, i, c2);