Lines Matching refs:cs
348 ccl_member(int ns, wchar_t cs, int ne, wchar_t ce, ccl_chars_t *s) in ccl_member() argument
355 if (MLCMPLE(s->cc_ns, s->cc_cs, ns, cs) && in ccl_member()
365 ccln_member(int ns, wchar_t cs, int ne, wchar_t ce, ccl_chars_t *s, int n) in ccln_member() argument
372 if (MLCMPLE(s->cc_ns, s->cc_cs, ns, cs) && in ccln_member()
434 wchar_t cs, ce; in cgotofn() local
498 cs = WC_VERY_SMALL; in cgotofn()
502 if (! ccln_member(ns, cs, ne, ce, in cgotofn()
505 ns, cs, ne, ce); in cgotofn()
507 ssyms[ssmax].cc_cs = cs; in cgotofn()
511 cs = HAT + 1; in cgotofn()
515 if (! ccln_member(ns, cs, ne, ce, in cgotofn()
518 ns, cs, ne, ce); in cgotofn()
520 ssyms[ssmax].cc_cs = cs; in cgotofn()
526 cs = HAT; in cgotofn()
531 p->cc_cs != cs) &&\ in cgotofn()
542 cs = WC_VERY_SMALL; in cgotofn()
546 ! ccln_member(ns, cs, in cgotofn()
551 ns, cs, in cgotofn()
556 ssyms[ssmax].cc_cs = cs; in cgotofn()
561 cs = p->cc_cs + 1; in cgotofn()
565 cs = p->cc_ce + 1; in cgotofn()
568 if ((ns != hatcn || cs != HAT) && in cgotofn()
569 ! ccln_member(ns, cs, in cgotofn()
573 ns, cs, MAX_CODESET, in cgotofn()
577 ssyms[ssmax].cc_cs = cs; in cgotofn()
625 cs = WC_VERY_SMALL; in cgotofn()
629 if (! ccln_member(ns, cs, ne, ce, in cgotofn()
631 ! ccln_member(ns, cs, ne, ce, in cgotofn()
635 ns, cs, in cgotofn()
638 ssyms[ssmax].cc_cs = cs; in cgotofn()
642 cs = HAT + 1; in cgotofn()
646 if (! ccln_member(ns, cs, ne, ce, in cgotofn()
648 ! ccln_member(ns, cs, ne, ce, in cgotofn()
652 ns, cs, in cgotofn()
655 ssyms[ssmax].cc_cs = cs; in cgotofn()
661 cs = HAT; in cgotofn()
666 p->cc_cs != cs) && in cgotofn()
682 cs = WC_VERY_SMALL; in cgotofn()
685 ! ccln_member(ns, cs, p->cc_ns, in cgotofn()
687 ! ccln_member(ns, cs, p->cc_ns, in cgotofn()
690 symax, ns, cs, p->cc_ns, p->cc_cs-1); in cgotofn()
693 ssyms[ssmax].cc_cs = cs; in cgotofn()
699 cs = p->cc_cs + 1; in cgotofn()
703 cs = p->cc_ce + 1; in cgotofn()
706 if ((ns != hatcn || cs != HAT) && ! ccln_member(ns, cs, in cgotofn()
708 ! ccln_member(ns, cs, MAX_CODESET, in cgotofn()
710 symax = insert_table(symbol, symax, ns, cs, in cgotofn()
715 ssyms[ssmax].cc_cs = cs; in cgotofn()
723 cs = ssyms[j].cc_cs; in cgotofn()
726 dprintf("j = %d, cs = %o, ce = %o\n", j, cs, ce); in cgotofn()
727 symax = delete_table(symbol, symax, ns, cs, ne, ce); in cgotofn()
734 if (k == CHAR && ns == ne && cs == ce && in cgotofn()
735 cs == (int)right(cp) || in cgotofn()
737 ccl_member(ns, cs, ne, ce, in cgotofn()
740 !ccl_member(ns, cs, ne, ce, in cgotofn()
761 s, cs, ce); in cgotofn()
764 fatab[ind].cc.cc_cs = cs; in cgotofn()
772 s, cs, ce); in cgotofn()
776 fatab[ind].cc.cc_cs = cs; in cgotofn()
829 insert_table(ccl_chars_t *table_base, int table_size, int ns, wchar_t cs, in insert_table() argument
842 dprintf("Inserting {%o, %o} to table %o\n", cs, ce, table_base); in insert_table()
863 table->cc_cs = cs; in insert_table()
867 cs = tcs; in insert_table()
872 } else if (MLCMPLE(tns, (tcs - 1), ns, cs) && in insert_table()
873 MLCMPLE(ns, cs, tne, (tce + 1))) { in insert_table()
877 if (MLCMPGT(tns, tcs, ns, cs)) { in insert_table()
879 table->cc_cs = cs; in insert_table()
893 table->cc_cs = cs; in insert_table()
967 delete_table(ccl_chars_t *table_base, int table_size, int ns, wchar_t cs, in delete_table() argument
990 if (MLCMPLE(ns, cs, tns, tcs)) { in delete_table()
1005 tce = cs - 1; in delete_table()
1009 cs = table->cc_cs; in delete_table()
1017 tcs = cs; in delete_table()
1024 } else if (MLCMPLE(ns, cs, tne, tce)) { in delete_table()
1025 if (MLCMPGT(ns, cs, tns, tcs)) { in delete_table()
1030 table->cc_ce = cs - 1; in delete_table()
1100 wchar_t c, cs, ce; in match() local
1107 cs = (pfa)->cc.s.cc_cs; in match()
1113 if (MLCMPLE(ns, cs, n, c) && in match()
1129 cs = (pfa)->cc.s.cc_cs; in match()
1132 if (MLCMPLE(ns, cs, n, c) && MLCMPLE(n, c, ne, ce)) in match()