Lines Matching refs:cs

346 ccl_member(int ns, wchar_t cs, int ne, wchar_t ce, ccl_chars_t *s)  in ccl_member()  argument
353 if (MLCMPLE(s->cc_ns, s->cc_cs, ns, cs) && in ccl_member()
363 ccln_member(int ns, wchar_t cs, int ne, wchar_t ce, ccl_chars_t *s, int n) in ccln_member() argument
370 if (MLCMPLE(s->cc_ns, s->cc_cs, ns, cs) && in ccln_member()
432 wchar_t cs, ce; in cgotofn() local
496 cs = WC_VERY_SMALL; in cgotofn()
500 if (! ccln_member(ns, cs, ne, ce, in cgotofn()
503 ns, cs, ne, ce); in cgotofn()
505 ssyms[ssmax].cc_cs = cs; in cgotofn()
509 cs = HAT + 1; in cgotofn()
513 if (! ccln_member(ns, cs, ne, ce, in cgotofn()
516 ns, cs, ne, ce); in cgotofn()
518 ssyms[ssmax].cc_cs = cs; in cgotofn()
524 cs = HAT; in cgotofn()
529 p->cc_cs != cs) &&\ in cgotofn()
540 cs = WC_VERY_SMALL; in cgotofn()
544 ! ccln_member(ns, cs, in cgotofn()
549 ns, cs, in cgotofn()
554 ssyms[ssmax].cc_cs = cs; in cgotofn()
559 cs = p->cc_cs + 1; in cgotofn()
563 cs = p->cc_ce + 1; in cgotofn()
566 if ((ns != hatcn || cs != HAT) && in cgotofn()
567 ! ccln_member(ns, cs, in cgotofn()
571 ns, cs, MAX_CODESET, in cgotofn()
575 ssyms[ssmax].cc_cs = cs; in cgotofn()
623 cs = WC_VERY_SMALL; in cgotofn()
627 if (! ccln_member(ns, cs, ne, ce, in cgotofn()
629 ! ccln_member(ns, cs, ne, ce, in cgotofn()
633 ns, cs, in cgotofn()
636 ssyms[ssmax].cc_cs = cs; in cgotofn()
640 cs = HAT + 1; in cgotofn()
644 if (! ccln_member(ns, cs, ne, ce, in cgotofn()
646 ! ccln_member(ns, cs, ne, ce, in cgotofn()
650 ns, cs, in cgotofn()
653 ssyms[ssmax].cc_cs = cs; in cgotofn()
659 cs = HAT; in cgotofn()
664 p->cc_cs != cs) && in cgotofn()
680 cs = WC_VERY_SMALL; in cgotofn()
683 ! ccln_member(ns, cs, p->cc_ns, in cgotofn()
685 ! ccln_member(ns, cs, p->cc_ns, in cgotofn()
688 symax, ns, cs, p->cc_ns, p->cc_cs-1); in cgotofn()
691 ssyms[ssmax].cc_cs = cs; in cgotofn()
697 cs = p->cc_cs + 1; in cgotofn()
701 cs = p->cc_ce + 1; in cgotofn()
704 if ((ns != hatcn || cs != HAT) && ! ccln_member(ns, cs, in cgotofn()
706 ! ccln_member(ns, cs, MAX_CODESET, in cgotofn()
708 symax = insert_table(symbol, symax, ns, cs, in cgotofn()
713 ssyms[ssmax].cc_cs = cs; in cgotofn()
721 cs = ssyms[j].cc_cs; in cgotofn()
724 dprintf("j = %d, cs = %o, ce = %o\n", j, cs, ce); in cgotofn()
725 symax = delete_table(symbol, symax, ns, cs, ne, ce); in cgotofn()
732 if (k == CHAR && ns == ne && cs == ce && in cgotofn()
733 cs == (int)right(cp) || in cgotofn()
735 ccl_member(ns, cs, ne, ce, in cgotofn()
738 !ccl_member(ns, cs, ne, ce, in cgotofn()
759 s, cs, ce); in cgotofn()
762 fatab[ind].cc.cc_cs = cs; in cgotofn()
770 s, cs, ce); in cgotofn()
774 fatab[ind].cc.cc_cs = cs; in cgotofn()
827 insert_table(ccl_chars_t *table_base, int table_size, int ns, wchar_t cs, in insert_table() argument
840 dprintf("Inserting {%o, %o} to table %o\n", cs, ce, table_base); in insert_table()
861 table->cc_cs = cs; in insert_table()
865 cs = tcs; in insert_table()
870 } else if (MLCMPLE(tns, (tcs - 1), ns, cs) && in insert_table()
871 MLCMPLE(ns, cs, tne, (tce + 1))) { in insert_table()
875 if (MLCMPGT(tns, tcs, ns, cs)) { in insert_table()
877 table->cc_cs = cs; in insert_table()
891 table->cc_cs = cs; in insert_table()
965 delete_table(ccl_chars_t *table_base, int table_size, int ns, wchar_t cs, in delete_table() argument
988 if (MLCMPLE(ns, cs, tns, tcs)) { in delete_table()
1003 tce = cs - 1; in delete_table()
1007 cs = table->cc_cs; in delete_table()
1015 tcs = cs; in delete_table()
1022 } else if (MLCMPLE(ns, cs, tne, tce)) { in delete_table()
1023 if (MLCMPGT(ns, cs, tns, tcs)) { in delete_table()
1028 table->cc_ce = cs - 1; in delete_table()
1098 wchar_t c, cs, ce; in match() local
1105 cs = (pfa)->cc.s.cc_cs; in match()
1111 if (MLCMPLE(ns, cs, n, c) && in match()
1127 cs = (pfa)->cc.s.cc_cs; in match()
1130 if (MLCMPLE(ns, cs, n, c) && MLCMPLE(n, c, ne, ce)) in match()