Lines Matching refs:uv

38 #define OVER_UTF_MAX(uv) (VALID_UTF_MAX < (uv))
70 UV uv; /* codepoint */
85 static U8* dec_canonical (UV uv)
88 if (OVER_UTF_MAX(uv))
90 plane = (U8***)UNF_canon[uv >> 16];
93 row = plane[(uv >> 8) & 0xff];
94 return row ? row[uv & 0xff] : NULL;
97 static U8* dec_compat (UV uv)
100 if (OVER_UTF_MAX(uv))
102 plane = (U8***)UNF_compat[uv >> 16];
105 row = plane[(uv >> 8) & 0xff];
106 return row ? row[uv & 0xff] : NULL;
109 static UV composite_uv (UV uv, UV uv2)
113 if (! uv2 || OVER_UTF_MAX(uv) || OVER_UTF_MAX(uv2))
116 if (Hangul_IsL(uv) && Hangul_IsV(uv2)) {
117 uv -= Hangul_LBase; /* lindex */
119 return(Hangul_SBase + (uv * Hangul_VCount + uv2) * Hangul_TCount);
121 if (Hangul_IsLV(uv) && Hangul_IsT(uv2)) {
123 return(uv + uv2);
125 plane = UNF_compos[uv >> 16];
128 row = plane[(uv >> 8) & 0xff];
131 cell = row[uv & 0xff];
141 static U8 getCombinClass (UV uv)
144 if (OVER_UTF_MAX(uv))
146 plane = (U8**)UNF_combin[uv >> 16];
149 row = plane[(uv >> 8) & 0xff];
150 return row ? row[uv & 0xff] : 0;
153 static void sv_cat_decompHangul (SV* sv, UV uv)
158 if (! Hangul_IsS(uv))
161 sindex = uv - Hangul_SBase;
175 static void sv_cat_uvuni (SV* sv, UV uv)
180 t = uvuni_to_utf8(t, uv);
193 UV uv;
214 uv = utf8n_to_uvuni(p, e - p, &retlen, AllowAnyUTF);
218 if (Hangul_IsS(uv))
219 sv_cat_decompHangul(dst, uv);
221 r = iscompat ? dec_compat(uv) : dec_canonical(uv);
225 sv_cat_uvuni(dst, uv);
242 UV uv, uvlast;
266 uv = utf8n_to_uvuni(p, e - p, &retlen, AllowAnyUTF);
271 curCC = getCombinClass(uv);
273 d = uvuni_to_utf8(d, uv);
279 stk_cc[cc_pos].uv = uv;
284 uv = utf8n_to_uvuni(p, e - p, &retlen, AllowAnyUTF);
289 curCC = getCombinClass(uv);
291 uvlast = uv;
302 stk_cc[cc_pos].uv = uv;
312 d = uvuni_to_utf8(d, stk_cc[i].uv);
337 UV uv, uvS, uvComp;
381 uv = utf8n_to_uvuni(p, e - p, &retlen, AllowAnyUTF);
386 curCC = getCombinClass(uv);
390 t = uvuni_to_utf8(t, uv);
392 uvComp = composite_uv(uvS, uv);
398 rightcur = UNISKIP(uvS) + UNISKIP(uv);
411 t = uvuni_to_utf8(t, uv);
422 uvS = uv;
438 UV uv;
455 uv = utf8n_to_uvuni(p, e - p, &retlen, AllowAnyUTF);
459 curCC = getCombinClass(uv);
462 if (Hangul_IsS(uv) || (ix ? dec_compat(uv) : dec_canonical(uv)))
477 UV uv;
496 uv = utf8n_to_uvuni(p, e - p, &retlen, AllowAnyUTF);
500 curCC = getCombinClass(uv);
506 if (Hangul_IsS(uv)) /* Hangul syllables are canonical composites */
508 else if (isExclusion(uv) || isSingleton(uv) || isNonStDecomp(uv))
510 else if (isComp2nd(uv))
515 canon = (char *) dec_canonical(uv);
516 compat = (char *) dec_compat(uv);
537 UV uv, uvLead, uvTrail;
557 uv = utf8n_to_uvuni(p, e - p, &retlen, AllowAnyUTF);
561 sCan = (U8*) dec_canonical(uv);
568 uvLead = uv;
577 if (isExclusion(uv) || isSingleton(uv) || isNonStDecomp(uv))
579 else if (isComp2nd(uv))
603 getCombinClass(uv)
604 UV uv
608 isExclusion(uv)
609 UV uv
613 isSingleton(uv)
614 UV uv
618 isNonStDecomp(uv)
619 UV uv
623 isComp2nd(uv)
624 UV uv
633 isNFD_NO(uv)
634 UV uv
639 if (Hangul_IsS(uv) || (ix ? dec_compat(uv) : dec_canonical(uv)))
647 isComp_Ex(uv)
648 UV uv
654 if (isExclusion(uv) || isSingleton(uv) || isNonStDecomp(uv))
658 canon = (char *) dec_canonical(uv);
659 compat = (char *) dec_compat(uv);
671 getComposite(uv, uv2)
672 UV uv
678 composite = composite_uv(uv, uv2);
686 getCanon(uv)
687 UV uv
694 if (Hangul_IsS(uv)) {
698 sv_cat_decompHangul(dst, uv);
701 rstr = ix ? dec_compat(uv) : dec_canonical(uv);
715 UV uv;
734 uv = utf8n_to_uvuni(p, e - p, &retlen, AllowAnyUTF);
735 if (getCombinClass(uv) == 0) /* Last Starter found */