Lines Matching refs:ast
162 if (ast.locale.set & AST_LC_debug) in native_setlocale()
502 ast.collate = debug_strcoll; in set_collate()
503 ast.mb_xfrm = debug_strxfrm; in set_collate()
507 ast.collate = strcmp; in set_collate()
508 ast.mb_xfrm = 0; in set_collate()
512 ast.collate = strcoll; in set_collate()
513 ast.mb_xfrm = strxfrm; in set_collate()
524 #define mb_state_zero ((mbstate_t*)&ast.pad[sizeof(ast.pad)-2*sizeof(mbstate_t)])
525 #define mb_state ((mbstate_t*)&ast.pad[sizeof(ast.pad)-sizeof(mbstate_t)])
615 ast.mb_sync = (const char*)sp - str; in utf8_mbtowc()
634 ast.mb_sync = 0; in set_ctype()
637 ast.mb_cur_max = DEBUG_MB_CUR_MAX; in set_ctype()
638 ast.mb_len = debug_mblen; in set_ctype()
639 ast.mb_towc = debug_mbtowc; in set_ctype()
640 ast.mb_width = debug_wcwidth; in set_ctype()
641 ast.mb_conv = debug_wctomb; in set_ctype()
643 …les[cp->internal]->flags & LC_default) || (ast.mb_cur_max = MB_CUR_MAX) <= 1 || !(ast.mb_len = mbl… in set_ctype()
645 ast.mb_cur_max = 1; in set_ctype()
646 ast.mb_len = 0; in set_ctype()
647 ast.mb_towc = 0; in set_ctype()
648 ast.mb_width = default_wcwidth; in set_ctype()
649 ast.mb_conv = 0; in set_ctype()
651 else if ((locales[cp->internal]->flags & LC_utf8) && !(ast.locale.set & AST_LC_test)) in set_ctype()
653 ast.mb_cur_max = 6; in set_ctype()
654 ast.mb_len = utf8_mblen; in set_ctype()
655 ast.mb_towc = utf8_mbtowc; in set_ctype()
656 if (!(ast.mb_width = wcwidth)) in set_ctype()
657 ast.mb_width = default_wcwidth; in set_ctype()
658 ast.mb_conv = utf8_wctomb; in set_ctype()
662 if (!(ast.mb_width = wcwidth)) in set_ctype()
663 ast.mb_width = default_wcwidth; in set_ctype()
664 ast.mb_conv = wctomb; in set_ctype()
680 ast.mb_towc = sjis_mbtowc; in set_ctype()
685 if (ast.locale.set & (AST_LC_debug|AST_LC_setlocale)) in set_ctype()
688 , ast.mb_cur_max in set_ctype()
689 , ast.mb_len == debug_mblen ? " debug_mblen" : ast.mb_len == mblen ? " mblen" : "" in set_ctype()
690 , ast.mb_towc == debug_mbtowc ? " debug_mbtowc" : ast.mb_towc == mbtowc ? " mbtowc" in set_ctype()
692 : ast.mb_towc == sjis_mbtowc ? " sjis_mbtowc" in set_ctype()
695 …, ast.mb_width == debug_wcwidth ? " debug_wcwidth" : ast.mb_width == wcwidth ? " wcwidth" : ast.mb… in set_ctype()
696 , ast.mb_conv == debug_wctomb ? " debug_wctomb" : ast.mb_conv == wctomb ? " wctomb" : "" in set_ctype()
724 if (ast.locale.set & (AST_LC_debug|AST_LC_setlocale)) in set_numeric()
781 ast.locale.set |= ((Unamval_t*)p)->value; in setopt()
783 ast.locale.set &= ~((Unamval_t*)p)->value; in setopt()
824 if (!(ast.locale.set & AST_LC_internal)) in single()
876 ast.locale.set &= ~(1<<category); in single()
878 ast.locale.set |= (1<<category); in single()
887 if ((ast.locale.set & (AST_LC_debug|AST_LC_setlocale)) && !(ast.locale.set & AST_LC_internal)) in single()
968 else if (!lc_categories[cat[i]].prev && !(ast.locale.set & AST_LC_internal)) in composite()
994 else if (!lc_categories[n].prev && !(ast.locale.set & AST_LC_internal)) in composite()
1069 if (!ast.locale.serial++) in _ast_setlocale()
1074 if ((ast.locale.set & (AST_LC_debug|AST_LC_setlocale)) && !(ast.locale.set & AST_LC_internal)) in _ast_setlocale()
1075 …name, locale && !*locale ? "''" : locale, initialized ? "" : "[initial]", (ast.locale.set & AST_LC… in _ast_setlocale()
1076 if (ast.locale.set & AST_LC_setenv) in _ast_setlocale()
1133 if (ast.locale.set & AST_LC_debug) in _ast_setlocale()
1166 if (p && !(ast.locale.set & AST_LC_internal)) in _ast_setlocale()