Home | History | Annotate | Download | only in common

Lines Matching refs:mapping

549             const uint16_t *mapping=getMapping(norm16);
550 uint16_t firstUnit=*mapping;
555 leadCC=(uint8_t)(*(mapping-1)>>8);
559 return buffer.append((const UChar *)mapping+1, length, leadCC, trailCC, errorCode);
583 const uint16_t *mapping=getMapping(norm16);
584 length=*mapping&MAPPING_LENGTH_MASK;
585 return (const UChar *)mapping+1;
591 // so that a raw mapping fits that consists of one unit ("rm0")
592 // plus all but the first two code units of the normal mapping.
593 // The maximum length of a normal mapping is 31=MAPPING_LENGTH_MASK.
596 // We do not loop in this method because an algorithmic mapping itself
614 const uint16_t *mapping=getMapping(norm16);
615 uint16_t firstUnit=*mapping;
616 int32_t mLength=firstUnit&MAPPING_LENGTH_MASK; // length of normal mapping
618 // Read the raw mapping from before the firstUnit and before the optional ccc/lccc word.
620 const uint16_t *rawMapping=mapping-((firstUnit>>7)&1)-1;
626 // Copy the normal mapping and replace its first two code units with rm0.
628 u_memcpy(buffer+1, (const UChar *)mapping+1+2, mLength-2);
634 return (const UChar *)mapping+1;
683 const uint16_t *mapping=getMapping(norm16);
684 uint16_t firstUnit=*mapping;
700 return (firstUnit&MAPPING_HAS_CCC_LCCC_WORD)==0 || (*(mapping-1)&0xff00)==0;
1000 if(norm16>minYesNo) { // composite 'a' has both mapping & compositions list
1001 list+= // mapping pointer
1002 1+ // +1 to skip the first unit with the mapping lenth
1003 (*list&MAPPING_LENGTH_MASK); // + mapping length
1122 * c is either a "noNo" (has a mapping) or a "maybeYes" (combines backward)
1214 // mapping and check for canonical order.
1357 * c is either a "noNo" (has a mapping) or a "maybeYes" (combines backward)
1371 // mapping and check for canonical order.
1448 const uint16_t *mapping=getMapping(norm16);
1449 uint16_t firstUnit=*mapping;
1453 if((firstUnit&MAPPING_HAS_CCC_LCCC_WORD) && (*(mapping-1)&0xff00)) {
1458 U16_NEXT_UNSAFE(mapping, i, c);
1482 const uint16_t *mapping=getMapping(norm16);
1483 uint16_t firstUnit=*mapping;
1543 const uint16_t *mapping=getMapping(norm16);
1544 uint16_t firstUnit=*mapping;
1553 norm16|=*(mapping-1)&0xff00; // lccc
1852 // Inert, or 2-way mapping (including Hangul syllable).
1881 const uint16_t *mapping=getMapping(norm16_2);
1882 uint16_t firstUnit=*mapping;
1885 if(c==c2 && (*(mapping-1)&0xff)!=0) {
1891 ++mapping; // skip over the firstUnit
1894 U16_NEXT_UNSAFE(mapping, i, c2);
1897 // one-way mapping. A 2-way mapping is possible here after
1898 // intermediate algorithmic mapping.
1901 U16_NEXT_UNSAFE(mapping, i, c2);