Lines Matching refs:flag

88 	int				 flag;  member
480 (sc->flag & (SCONV_NORMALIZATION_C | SCONV_NORMALIZATION_D))) { in archive_wstring_append_from_mbs_in_codepage()
486 int saved_flag = sc->flag;/* save current flag. */ in archive_wstring_append_from_mbs_in_codepage()
489 sc->flag |= SCONV_TO_UTF16BE; in archive_wstring_append_from_mbs_in_codepage()
491 sc->flag |= SCONV_TO_UTF16LE; in archive_wstring_append_from_mbs_in_codepage()
493 if (sc->flag & SCONV_FROM_UTF16) { in archive_wstring_append_from_mbs_in_codepage()
509 if (sc->flag & SCONV_NORMALIZATION_C) in archive_wstring_append_from_mbs_in_codepage()
516 sc->flag = saved_flag;/* restore the saved flag. */ in archive_wstring_append_from_mbs_in_codepage()
518 } else if (sc != NULL && (sc->flag & SCONV_FROM_UTF16)) { in archive_wstring_append_from_mbs_in_codepage()
526 if ((sc->flag & SCONV_FROM_UTF16BE) && !is_big_endian()) { in archive_wstring_append_from_mbs_in_codepage()
533 } else if ((sc->flag & SCONV_FROM_UTF16LE) && is_big_endian()) { in archive_wstring_append_from_mbs_in_codepage()
547 else if (sc->flag & SCONV_FROM_CHARSET) { in archive_wstring_append_from_mbs_in_codepage()
713 } else if (sc != NULL && (sc->flag & SCONV_TO_UTF16)) { in archive_string_append_from_wcs_in_codepage()
722 if (sc->flag & SCONV_TO_UTF16BE) { in archive_string_append_from_wcs_in_codepage()
919 if (sc->flag & SCONV_UTF8_LIBARCHIVE_2) { in setup_converter()
927 if (sc->flag & SCONV_TO_UTF16) { in setup_converter()
932 if (sc->flag & SCONV_FROM_UTF8) { in setup_converter()
938 if (sc->flag & SCONV_WIN_CP) { in setup_converter()
939 if (sc->flag & SCONV_TO_UTF16BE) in setup_converter()
954 if (sc->flag & SCONV_BEST_EFFORT) { in setup_converter()
955 if (sc->flag & SCONV_TO_UTF16BE) in setup_converter()
970 if (sc->flag & SCONV_FROM_UTF16) { in setup_converter()
974 if (sc->flag & SCONV_NORMALIZATION_D) in setup_converter()
976 else if (sc->flag & SCONV_NORMALIZATION_C) in setup_converter()
979 if (sc->flag & SCONV_TO_UTF8) { in setup_converter()
984 if (!(sc->flag & in setup_converter()
992 if (sc->flag & SCONV_WIN_CP) { in setup_converter()
993 if (sc->flag & SCONV_FROM_UTF16BE) in setup_converter()
1008 if ((sc->flag & (SCONV_BEST_EFFORT | SCONV_FROM_UTF16BE)) in setup_converter()
1011 else if ((sc->flag & (SCONV_BEST_EFFORT | SCONV_FROM_UTF16LE)) in setup_converter()
1020 if (sc->flag & SCONV_FROM_UTF8) { in setup_converter()
1024 if (sc->flag & SCONV_NORMALIZATION_D) in setup_converter()
1026 else if (sc->flag & SCONV_NORMALIZATION_C) in setup_converter()
1035 if (sc->flag & SCONV_TO_UTF8) { in setup_converter()
1040 if (!(sc->flag & in setup_converter()
1051 if (sc->flag & SCONV_WIN_CP) { in setup_converter()
1065 if ((sc->flag & SCONV_FROM_CHARSET) && in setup_converter()
1066 (sc->flag & SCONV_TO_UTF8)) { in setup_converter()
1067 if (sc->flag & SCONV_NORMALIZATION_D) in setup_converter()
1077 if ((sc->flag & SCONV_BEST_EFFORT) || sc->same) in setup_converter()
1129 unsigned current_codepage, int flag) in create_sconv_object() argument
1150 if (flag & SCONV_TO_CHARSET) { in create_sconv_object()
1159 flag |= SCONV_WIN_CP; in create_sconv_object()
1161 } else if (flag & SCONV_FROM_CHARSET) { in create_sconv_object()
1170 flag |= SCONV_WIN_CP; in create_sconv_object()
1187 flag |= SCONV_TO_UTF8; in create_sconv_object()
1189 flag |= SCONV_TO_UTF16BE; in create_sconv_object()
1191 flag |= SCONV_TO_UTF16LE; in create_sconv_object()
1193 flag |= SCONV_FROM_UTF8; in create_sconv_object()
1195 flag |= SCONV_FROM_UTF16BE; in create_sconv_object()
1197 flag |= SCONV_FROM_UTF16LE; in create_sconv_object()
1200 flag |= SCONV_TO_UTF8; in create_sconv_object()
1202 flag |= SCONV_TO_UTF16BE | SCONV_WIN_CP; in create_sconv_object()
1204 flag |= SCONV_TO_UTF16LE | SCONV_WIN_CP; in create_sconv_object()
1206 flag |= SCONV_FROM_UTF8; in create_sconv_object()
1208 flag |= SCONV_FROM_UTF16BE | SCONV_WIN_CP; in create_sconv_object()
1210 flag |= SCONV_FROM_UTF16LE | SCONV_WIN_CP; in create_sconv_object()
1224 if ((flag & SCONV_FROM_CHARSET) && in create_sconv_object()
1225 (flag & (SCONV_FROM_UTF16 | SCONV_FROM_UTF8))) { in create_sconv_object()
1227 if (flag & SCONV_TO_UTF8) in create_sconv_object()
1228 flag |= SCONV_NORMALIZATION_D; in create_sconv_object()
1231 flag |= SCONV_NORMALIZATION_C; in create_sconv_object()
1241 if ((flag & SCONV_TO_CHARSET) && in create_sconv_object()
1242 (flag & (SCONV_FROM_UTF16 | SCONV_FROM_UTF8)) && in create_sconv_object()
1243 !(flag & (SCONV_TO_UTF16 | SCONV_TO_UTF8))) in create_sconv_object()
1244 flag |= SCONV_NORMALIZATION_C; in create_sconv_object()
1251 if ((flag & SCONV_FROM_CHARSET) && in create_sconv_object()
1252 !(flag & (SCONV_FROM_UTF16 | SCONV_FROM_UTF8)) && in create_sconv_object()
1253 (flag & SCONV_TO_UTF8)) in create_sconv_object()
1254 flag |= SCONV_NORMALIZATION_D; in create_sconv_object()
1262 if (((flag & (SCONV_TO_UTF8 | SCONV_TO_UTF16)) && in create_sconv_object()
1263 (flag & (SCONV_FROM_UTF8 | SCONV_FROM_UTF16))) || in create_sconv_object()
1264 (flag & SCONV_WIN_CP)) { in create_sconv_object()
1269 if (sc->cd == (iconv_t)-1 && (sc->flag & SCONV_BEST_EFFORT)) { in create_sconv_object()
1287 if (flag & SCONV_FROM_CHARSET) { in create_sconv_object()
1290 (sc->flag & SCONV_BEST_EFFORT)) { in create_sconv_object()
1299 sc->flag = flag; in create_sconv_object()
1646 get_sconv_object(struct archive *a, const char *fc, const char *tc, int flag) in get_sconv_object() argument
1662 canonical_charset_name(tc), current_codepage, flag); in get_sconv_object()
1680 (flag & SCONV_TO_CHARSET)?tc:fc); in get_sconv_object()
1730 int flag = SCONV_TO_CHARSET; in archive_string_conversion_to_charset() local
1733 flag |= SCONV_BEST_EFFORT; in archive_string_conversion_to_charset()
1734 return (get_sconv_object(a, get_current_charset(a), charset, flag)); in archive_string_conversion_to_charset()
1741 int flag = SCONV_FROM_CHARSET; in archive_string_conversion_from_charset() local
1744 flag |= SCONV_BEST_EFFORT; in archive_string_conversion_from_charset()
1745 return (get_sconv_object(a, charset, get_current_charset(a), flag)); in archive_string_conversion_from_charset()
1839 if (sc->flag & SCONV_TO_CHARSET) in archive_string_conversion_charset_name()
1867 if ((sc->flag & SCONV_UTF8_LIBARCHIVE_2) == 0) { in archive_string_conversion_set_opt()
1868 sc->flag |= SCONV_UTF8_LIBARCHIVE_2; in archive_string_conversion_set_opt()
1875 if ((sc->flag & SCONV_NORMALIZATION_C) == 0) { in archive_string_conversion_set_opt()
1876 sc->flag |= SCONV_NORMALIZATION_C; in archive_string_conversion_set_opt()
1877 sc->flag &= ~SCONV_NORMALIZATION_D; in archive_string_conversion_set_opt()
1888 if (!(sc->flag & SCONV_WIN_CP) && in archive_string_conversion_set_opt()
1889 (sc->flag & (SCONV_FROM_UTF16 | SCONV_FROM_UTF8)) && in archive_string_conversion_set_opt()
1890 !(sc->flag & (SCONV_TO_UTF16 | SCONV_TO_UTF8))) in archive_string_conversion_set_opt()
1893 if ((sc->flag & SCONV_NORMALIZATION_D) == 0) { in archive_string_conversion_set_opt()
1894 sc->flag |= SCONV_NORMALIZATION_D; in archive_string_conversion_set_opt()
1895 sc->flag &= ~SCONV_NORMALIZATION_C; in archive_string_conversion_set_opt()
1972 if (sc != NULL && (sc->flag & SCONV_FROM_UTF16)) in archive_strncat_l()
1982 if (sc != NULL && (sc->flag & SCONV_TO_UTF16)) in archive_strncat_l()
2037 if (sc->flag & SCONV_TO_UTF16) in iconv_strncat_in_locale()
2041 if (sc->flag & SCONV_FROM_UTF16) in iconv_strncat_in_locale()
2066 if (sc->flag & (SCONV_TO_UTF8 | SCONV_TO_UTF16)) { in iconv_strncat_in_locale()
2068 if (sc->flag & SCONV_TO_UTF8) in iconv_strncat_in_locale()
2084 if (sc->flag & SCONV_TO_UTF8) in iconv_strncat_in_locale()
2086 else if (sc->flag & SCONV_TO_UTF16BE) in iconv_strncat_in_locale()
2137 saved_flag = sc->flag; in strncat_in_codepage()
2138 sc->flag &= ~(SCONV_NORMALIZATION_D | SCONV_NORMALIZATION_C); in strncat_in_codepage()
2140 sc->flag = saved_flag; in strncat_in_codepage()
2167 if (sc->flag & SCONV_FROM_CHARSET) in invalid_mbs()
2259 if (sc->flag & SCONV_TO_UTF8) { in best_effort_strncat_in_locale()
2720 if (sc->flag & SCONV_TO_UTF16BE) { in archive_string_append_unicode()
2723 } else if (sc->flag & SCONV_TO_UTF16LE) { in archive_string_append_unicode()
2726 } else if (sc->flag & SCONV_TO_UTF8) { in archive_string_append_unicode()
2734 if (sc->flag & SCONV_FROM_UTF16BE) { in archive_string_append_unicode()
2737 } else if (sc->flag & SCONV_FROM_UTF16LE) { in archive_string_append_unicode()
2746 if (sc->flag & SCONV_FROM_UTF16BE) { in archive_string_append_unicode()
2749 } else if (sc->flag & SCONV_FROM_UTF16LE) { in archive_string_append_unicode()
2937 if (sc->flag & SCONV_TO_UTF16BE) { in archive_string_normalize_C()
2940 if (sc->flag & SCONV_FROM_UTF16BE) in archive_string_normalize_C()
2942 } else if (sc->flag & SCONV_TO_UTF16LE) { in archive_string_normalize_C()
2945 if (sc->flag & SCONV_FROM_UTF16LE) in archive_string_normalize_C()
2947 } else if (sc->flag & SCONV_TO_UTF8) { in archive_string_normalize_C()
2949 if (sc->flag & SCONV_FROM_UTF8) in archive_string_normalize_C()
2957 if (sc->flag & SCONV_FROM_UTF16BE) { in archive_string_normalize_C()
2960 } else if (sc->flag & SCONV_FROM_UTF16LE) { in archive_string_normalize_C()
2968 if (sc->flag & SCONV_FROM_UTF16BE) { in archive_string_normalize_C()
2972 } else if (sc->flag & SCONV_FROM_UTF16LE) { in archive_string_normalize_C()
3244 if (sc->flag & SCONV_TO_UTF16BE) { in archive_string_normalize_D()
3247 if (sc->flag & SCONV_FROM_UTF16BE) in archive_string_normalize_D()
3249 } else if (sc->flag & SCONV_TO_UTF16LE) { in archive_string_normalize_D()
3252 if (sc->flag & SCONV_FROM_UTF16LE) in archive_string_normalize_D()
3254 } else if (sc->flag & SCONV_TO_UTF8) { in archive_string_normalize_D()
3256 if (sc->flag & SCONV_FROM_UTF8) in archive_string_normalize_D()
3264 if (sc->flag & SCONV_FROM_UTF16BE) { in archive_string_normalize_D()
3267 } else if (sc->flag & SCONV_FROM_UTF16LE) { in archive_string_normalize_D()
3275 if (sc->flag & SCONV_FROM_UTF16BE) { in archive_string_normalize_D()
3279 } else if (sc->flag & SCONV_FROM_UTF16LE) { in archive_string_normalize_D()
4136 int flag; in archive_mstring_copy_mbs_len_l() local
4153 flag = sc->flag; in archive_mstring_copy_mbs_len_l()
4154 sc->flag &= ~(SCONV_NORMALIZATION_C in archive_mstring_copy_mbs_len_l()
4160 sc->flag = flag; in archive_mstring_copy_mbs_len_l()