Home | History | Annotate | Download | only in src

Lines Matching defs:uc

903 static inline Form form(unsigned short uc) {
904 if (uc < 0x900 || uc > 0xdff) {
905 if (uc == 0x25cc)
907 if (uc == 0x200c || uc == 0x200d)
911 return (Form)indicForms[uc-0x900];
914 static inline Position indic_position(unsigned short uc) {
915 if (uc < 0x900 || uc > 0xdff)
917 return (Position) indicPosition[uc-0x900];
1243 HB_UChar16 *uc = reordered;
1263 if (form(*uc) == Consonant || (script == HB_Script_Bengali && form(*uc) == IndependentVowel)) {
1265 (*uc == ra || *uc == 0x9f0) && *(uc+1) == halant)
1268 if (beginsWithRa && form(*(uc+2)) == Control)
1285 position[i] = form(uc[i]);
1288 vattu = (!vattu && uc[i] == ra);
1299 position[i] = form(uc[i]);
1317 Position charPosition = indic_position(uc[i]);
1344 if (uc[base+1] == halant)
1346 else if (uc[base+1] == nukta && uc[base+2] == halant)
1351 uc[i] = uc[i+1];
1352 uc[lastConsonant] = halant;
1369 matra_position = indic_position(uc[matra]);
1374 if (toPos < len && uc[toPos] == nukta)
1376 if (toPos < len && uc[toPos] == halant)
1378 if (toPos < len && uc[toPos] == 0x200d)
1380 if (toPos < len-1 && uc[toPos] == ra && uc[toPos+1] == halant)
1394 uc[i-2] = uc[i];
1395 uc[toPos-2] = ra;
1396 uc[toPos-1] = halant;
1413 splitMatra(uc, matra, len);
1415 matra_position = indic_position(uc[matra]);
1419 unsigned short m = uc[matra];
1421 uc[matra+1] = uc[matra];
1422 uc[0] = m;
1437 position[i] = indic_position(uc[i]);
1439 if (uc[i] == nukta || uc[i] == halant)
1445 if (uc[i] == ra)
1453 if (fixed < len && uc[fixed] == nukta)
1455 if (fixed < len && uc[fixed] == halant)
1457 if (fixed < len && uc[fixed] == 0x200d)
1462 IDEBUG("position[%d] = %d, form=%d uc=%x", i, position[i], form(uc[i]), uc[i]);
1474 // IDEBUG() << " i=" << i << "uc=" << hex << uc[i] << "form=" << form(uc[i])
1476 if (form(uc[i]) == finalOrder[toMove].form &&
1482 unsigned short ch = uc[i];
1483 unsigned short ch2 = uc[i+1];
1486 uc[j] = uc[j-2];
1489 uc[to] = ch;
1490 uc[to+1] = ch2;
1496 unsigned short ch = uc[i];
1499 uc[j] = uc[j-1];
1502 uc[to] = ch;
1726 const HB_UChar16 *uc = s+start;
1729 Form state = form(uc[pos]);
1730 IDEBUG("state[%d]=%d (uc=%4x)", pos, state, uc[pos]);
1740 Form newState = form(uc[pos]);
1741 IDEBUG("state[%d]=%d (uc=%4x)", pos, newState, uc[pos]);
1745 if (state == Halant && uc[pos] == 0x200d /* ZWJ */)
1751 if (state == Halant && (script != HB_Script_Sinhala || uc[pos-1] == 0x200d /* ZWJ */))
1759 (uc[0] == 0x0985 || uc[0] == 0x098f))
1766 if (script == HB_Script_Malayalam && state == Matra && uc[pos-1] == 0x0d41) {
1793 if (script == HB_Script_Bengali && uc[pos] == 0x9be && uc[pos-1] == 0x985)
1796 if (uc[pos-1] == 0x0bc6 &&
1797 (uc[pos] == 0xbbe || uc[pos] == 0xbd7))
1799 if (uc[pos-1] == 0x0bc7 && uc[pos] == 0xbbe)
1875 const HB_UChar16 *uc = text + from;
1887 ++uc;