Go to the source code of this file.
Definition at line 507 of file pg_wchar.h.
Definition at line 126 of file pg_wchar.h.
Definition at line 144 of file pg_wchar.h.
Definition at line 152 of file pg_wchar.h.
Definition at line 153 of file pg_wchar.h.
Definition at line 155 of file pg_wchar.h.
Definition at line 164 of file pg_wchar.h.
Definition at line 165 of file pg_wchar.h.
Definition at line 167 of file pg_wchar.h.
Definition at line 44 of file pg_wchar.h.
Definition at line 45 of file pg_wchar.h.
Definition at line 178 of file pg_wchar.h.
Definition at line 181 of file pg_wchar.h.
Definition at line 177 of file pg_wchar.h.
Definition at line 179 of file pg_wchar.h.
Definition at line 140 of file pg_wchar.h.
Definition at line 141 of file pg_wchar.h.
Definition at line 137 of file pg_wchar.h.
Definition at line 138 of file pg_wchar.h.
Definition at line 192 of file pg_wchar.h.
Definition at line 193 of file pg_wchar.h.
Definition at line 194 of file pg_wchar.h.
Definition at line 195 of file pg_wchar.h.
Definition at line 196 of file pg_wchar.h.
Definition at line 191 of file pg_wchar.h.
Definition at line 133 of file pg_wchar.h.
Definition at line 186 of file pg_wchar.h.
Definition at line 197 of file pg_wchar.h.
Definition at line 174 of file pg_wchar.h.
Definition at line 105 of file pg_wchar.h.
Definition at line 122 of file pg_wchar.h.
Definition at line 106 of file pg_wchar.h.
Definition at line 107 of file pg_wchar.h.
Definition at line 108 of file pg_wchar.h.
Definition at line 120 of file pg_wchar.h.
Definition at line 111 of file pg_wchar.h.
Definition at line 110 of file pg_wchar.h.
Definition at line 112 of file pg_wchar.h.
Definition at line 121 of file pg_wchar.h.
Definition at line 113 of file pg_wchar.h.
Definition at line 114 of file pg_wchar.h.
Definition at line 134 of file pg_wchar.h.
Definition at line 132 of file pg_wchar.h.
Definition at line 136 of file pg_wchar.h.
Definition at line 139 of file pg_wchar.h.
Definition at line 119 of file pg_wchar.h.
Definition at line 135 of file pg_wchar.h.
Definition at line 180 of file pg_wchar.h.
Definition at line 173 of file pg_wchar.h.
Definition at line 198 of file pg_wchar.h.
Definition at line 187 of file pg_wchar.h.
Definition at line 109 of file pg_wchar.h.
Definition at line 190 of file pg_wchar.h.
Definition at line 188 of file pg_wchar.h.
Definition at line 189 of file pg_wchar.h.
Definition at line 175 of file pg_wchar.h.
Definition at line 176 of file pg_wchar.h.
Definition at line 150 of file pg_wchar.h.
Definition at line 151 of file pg_wchar.h.
Definition at line 162 of file pg_wchar.h.
Definition at line 163 of file pg_wchar.h.
Definition at line 302 of file pg_wchar.h.
Definition at line 320 of file pg_wchar.h.
Definition at line 33 of file pg_wchar.h.
Definition at line 329 of file pg_wchar.h.
Definition at line 629 of file pg_wchar.h.
Definition at line 275 of file pg_wchar.h.
Definition at line 284 of file pg_wchar.h.
Definition at line 630 of file pg_wchar.h.
Definition at line 633 of file pg_wchar.h.
Definition at line 281 of file pg_wchar.h.
Definition at line 287 of file pg_wchar.h.
Definition at line 291 of file pg_wchar.h.
Definition at line 631 of file pg_wchar.h.
Definition at line 632 of file pg_wchar.h.
Definition at line 38 of file pg_wchar.h.
Definition at line 39 of file pg_wchar.h.
Definition at line 358 of file pg_wchar.h.
Definition at line 372 of file pg_wchar.h.
Definition at line 370 of file pg_wchar.h.
Definition at line 368 of file pg_wchar.h.
Definition at line 366 of file pg_wchar.h.
Definition at line 374 of file pg_wchar.h.
Definition at line 28 of file pg_wchar.h.
Definition at line 499 of file pg_wchar.h.
Definition at line 362 of file pg_wchar.h.
Definition at line 224 of file pg_wchar.h.
Definition at line 292 of file big5.c.
References b1c4, b2c3, big5Level1ToCnsPlane1, big5Level2ToCnsPlane2, BinarySearchRange(), i, LC_CNS11643_1, LC_CNS11643_2, LC_CNS11643_3, and LC_CNS11643_4.
Referenced by big52euc_tw(), and big52mic().
Definition at line 1670 of file mbutils.c.
References elog, ERROR, len, name, pg_enc2name_tbl, and PG_VALID_ENCODING.
Definition at line 345 of file big5.c.
References b1c4, b2c3, BinarySearchRange(), cnsPlane1ToBig5Level1, cnsPlane2ToBig5Level2, i, LC_CNS11643_1, LC_CNS11643_2, LC_CNS11643_3, and LC_CNS11643_4.
Referenced by euc_tw2big5(), and mic2big5().
Definition at line 472 of file encnames.c.
References encoding, pg_enc2icu_tbl, and PG_VALID_BE_ENCODING.
Definition at line 1262 of file mbutils.c.
References DatabaseEncoding, and pg_enc2name::encoding.
Referenced by ascii(), BeginCopyFrom(), BeginCopyTo(), char2wchar(), chr(), CollationCreate(), CollationGetCollid(), compareStrings(), convert_from_utf8(), convert_to_utf8(), CopyConversionError(), CopyConvertBuf(), create_pg_locale_builtin(), create_pg_locale_icu(), create_pg_locale_libc(), cstr2sv(), dblink_connect(), dblink_get_conn(), DefineCollation(), Generic_Text_IC_like(), GenericMatchText(), get_collation_oid(), get_json_object_as_hash(), InitializeClientEncoding(), IsThereCollationInNamespace(), json_recv(), jsonb_from_cstring(), locate_stem_module(), LogicalOutputWrite(), makeJsonLexContext(), p_isspecial(), ParallelWorkerMain(), pg_database_encoding_character_incrementer(), pg_database_encoding_max_length(), pg_generic_charinc(), pg_perm_setlocale(), pg_unicode_to_server(), pg_unicode_to_server_noerror(), pg_verifymbstr(), pgss_store(), PLyUnicode_Bytes(), populate_array_json(), PrepareClientEncoding(), read_extension_script_file(), SetClientEncoding(), str_casefold(), sv2cstr(), text_position_setup(), to_ascii_default(), tolower_libc_mb(), tolower_libc_sb(), toupper_libc_mb(), toupper_libc_sb(), type_maximum_size(), unicode_assigned(), unicode_norm_form_from_string(), wchar2char(), xml_in(), xml_is_document(), xmlparse(), and xmltotext_with_options().
Definition at line 1268 of file mbutils.c.
References DatabaseEncoding, and pg_enc2name::name.
Referenced by check_client_encoding(), CheckMyDatabase(), connect_pg_server(), dblink_connect(), dblink_get_conn(), get_collation_oid(), InitializeClientEncoding(), IsThereCollationInNamespace(), json_errdetail(), libpqrcv_connect(), locate_stem_module(), pg_unicode_to_server(), ProcessConfigFileInternal(), and regcollationin().
Definition at line 1309 of file mbutils.c.
References pg_enc2name::encoding, and MessageEncoding.
Definition at line 282 of file mbutils.c.
References Assert(), AssertCouldGetRelation(), backend_startup_complete, ereport, errcode(), errmsg(), FATAL, FindDefaultConversionProc(), fmgr_info_cxt(), GetDatabaseEncoding(), GetDatabaseEncodingName(), MemoryContextAlloc(), name, OidIsValid, pending_client_encoding, pg_enc2name_tbl, PG_SQL_ASCII, PG_UTF8, PrepareClientEncoding(), SetClientEncoding(), TopMemoryContext, and Utf8ToServerConvProc.
Referenced by InitPostgres().
Definition at line 461 of file encnames.c.
References encoding, pg_enc2icu_tbl, and PG_VALID_BE_ENCODING.
Referenced by check_icu_locale_encoding(), createdb(), DefineCollation(), and lookup_collation().
Definition at line 525 of file pg_wchar.h.
Referenced by addUnicode(), json_lex_string(), str_udeescape(), and unistr().
Definition at line 531 of file pg_wchar.h.
Referenced by addUnicode(), json_lex_string(), str_udeescape(), and unistr().
Definition at line 519 of file pg_wchar.h.
Referenced by addunicode(), check_unicode_value(), pg_unicode_to_server(), pg_unicode_to_server_noerror(), and unistr().
Definition at line 89 of file conv.c.
References encoding, IS_HIGHBIT_SET, len, report_invalid_encoding(), and start.
Referenced by koi8r_to_mic(), latin1_to_mic(), latin2_to_mic(), latin3_to_mic(), and latin4_to_mic().
Definition at line 194 of file conv.c.
References encoding, HIGHBIT, IS_HIGHBIT_SET, len, PG_MULE_INTERNAL, report_invalid_encoding(), report_untranslatable_char(), and start.
Referenced by iso_to_mic(), win1250_to_mic(), win1251_to_mic(), and win866_to_mic().
Definition at line 33 of file conv.c.
References HIGHBIT, IS_HIGHBIT_SET, len, report_invalid_encoding(), report_untranslatable_char(), and start.
Referenced by iso_to_koi8r(), iso_to_win1251(), iso_to_win866(), koi8r_to_iso(), koi8r_to_win1251(), koi8r_to_win866(), latin2_to_win1250(), win1250_to_latin2(), win1251_to_iso(), win1251_to_koi8r(), win1251_to_win866(), win866_to_iso(), win866_to_koi8r(), and win866_to_win1251().
Definition at line 717 of file conv.c.
References compare4(), elog, encoding, ereport, errcode(), errmsg(), ERROR, IS_HIGHBIT_SET, len, pg_encoding_verifymbchar(), pg_mb_radix_conv(), PG_UTF8, PG_VALID_ENCODING, report_invalid_encoding(), report_untranslatable_char(), start, store_coded_char(), pg_local_to_utf_combined::utf1, and pg_local_to_utf_combined::utf2.
Referenced by big5_to_utf8(), euc_cn_to_utf8(), euc_jis_2004_to_utf8(), euc_jp_to_utf8(), euc_kr_to_utf8(), euc_tw_to_utf8(), gb18030_to_utf8(), gbk_to_utf8(), iso8859_to_utf8(), johab_to_utf8(), koi8r_to_utf8(), koi8u_to_utf8(), shift_jis_2004_to_utf8(), sjis_to_utf8(), uhc_to_utf8(), and win_to_utf8().
Definition at line 127 of file conv.c.
References encoding, IS_HIGHBIT_SET, len, PG_MULE_INTERNAL, pg_mule_mblen(), report_invalid_encoding(), report_untranslatable_char(), and start.
Referenced by mic_to_koi8r(), mic_to_latin1(), mic_to_latin2(), mic_to_latin3(), and mic_to_latin4().
Definition at line 257 of file conv.c.
References encoding, HIGHBIT, IS_HIGHBIT_SET, len, PG_MULE_INTERNAL, pg_mule_mblen(), report_invalid_encoding(), report_untranslatable_char(), and start.
Referenced by mic_to_iso(), mic_to_win1250(), mic_to_win1251(), and mic_to_win866().
Definition at line 677 of file mbutils.c.
References ClientEncoding, DatabaseEncoding, encoding, pg_enc2name::encoding, ereport, errcode(), errmsg(), ERROR, i, IS_HIGHBIT_SET, len, name, perform_default_encoding_conversion(), pg_do_encoding_conversion(), pg_enc2name_tbl, PG_SQL_ASCII, PG_VALID_BE_ENCODING, pg_verify_mbstr(), and unconstify.
Referenced by ASN1_STRING_to_text(), cache_single_string(), db_encoding_convert(), dsnowball_lexize(), pg_client_to_server(), pg_stat_statements_internal(), pgp_armor_headers(), PLyUnicode_Bytes(), read_extension_script_file(), tsearch_readline(), utf_u2e(), X509_NAME_to_cstring(), and xml_recv().
Definition at line 55 of file wstrncmp.c.
Referenced by element(), and lookupcclass().
Definition at line 549 of file encnames.c.
Definition at line 661 of file mbutils.c.
References ClientEncoding, pg_enc2name::encoding, len, and pg_any_to_server().
Referenced by exec_bind_message(), parse_fcall_arguments(), pq_getmsgstring(), and pq_getmsgtext().
Definition at line 1524 of file mbutils.c.
References GetDatabaseEncoding(), PG_EUC_JP, pg_eucjp_increment(), pg_generic_charinc(), PG_UTF8, and pg_utf8_increment().
Referenced by make_greater_string().
Definition at line 1547 of file mbutils.c.
References GetDatabaseEncoding(), pg_wchar_tbl::maxmblen, and pg_wchar_table.
Referenced by bpcharlen(), char_is_cased_libc(), char_tolower_libc(), charlen_to_bytelen(), create_pg_locale_libc(), dotrim(), downcase_identifier(), gbt_bpchar_consistent(), gbt_text_compress(), gbt_text_consistent(), generate_trgm_only(), Generic_Text_IC_like(), GenericMatchText(), infix(), init_tsvector_parser(), like_escape(), like_fixed_prefix(), lpad(), pg_mbcharcliplen(), pg_mbstrlen(), pg_mbstrlen_with_len(), protect_out_of_mem(), regexp_fixed_prefix(), rpad(), setup_regexp_matches(), setup_test_matches(), show_trgm(), strlower_libc_mb(), strtitle_libc_mb(), strupper_libc_mb(), text_length(), text_position_setup(), text_reverse(), text_substring(), TParserInit(), translate(), and tsvectorout().
Definition at line 357 of file mbutils.c.
References BoolGetDatum(), CStringGetDatum(), CurrentMemoryContext, elog, ereport, errcode(), errdetail(), errmsg(), ERROR, FindDefaultConversionProc(), Int32GetDatum(), IsTransactionState(), len, MAX_CONVERSION_GROWTH, MaxAllocHugeSize, MaxAllocSize, MemoryContextAllocHuge(), OidFunctionCall6, OidIsValid, pg_encoding_to_char, PG_SQL_ASCII, pg_verify_mbstr(), and repalloc().
Referenced by convert_charset(), pg_any_to_server(), pg_convert(), and pg_server_to_any().
Definition at line 470 of file mbutils.c.
References BoolGetDatum(), CStringGetDatum(), DatumGetInt32(), generate_unaccent_rules::dest, Int32GetDatum(), MAX_CONVERSION_GROWTH, and OidFunctionCall6.
Referenced by CopyConversionError(), CopyConvertBuf(), and test_enc_conversion().
Definition at line 1031 of file mbutils.c.
References DatabaseEncoding, pg_wchar_tbl::dsplen, pg_enc2name::encoding, and pg_wchar_table.
Referenced by p_isspecial().
Definition at line 2176 of file wchar.c.
References encoding, PG_SQL_ASCII, PG_VALID_ENCODING, and pg_wchar_table.
Referenced by PQdsplen(), and reportErrorPosition().
Definition at line 2213 of file wchar.c.
References Assert(), encoding, pg_wchar_tbl::maxmblen, PG_SQL_ASCII, PG_VALID_ENCODING, and pg_wchar_table.
Referenced by ascii(), chr(), CopyConvertBuf(), pg_encoding_mbcliplen(), pg_encoding_set_invalid(), pg_verify_mbstr_len(), reportErrorPosition(), test_enc_setup(), and type_maximum_size().
Definition at line 994 of file mbutils.c.
References encoding, len, pg_wchar_tbl::mb2wchar_with_len, and pg_wchar_table.
Definition at line 1094 of file mbutils.c.
References cliplen(), encoding, len, pg_wchar_tbl::mblen, pg_encoding_max_length(), and pg_wchar_table.
Referenced by pg_mbcliplen().
Definition at line 2135 of file wchar.c.
References encoding, PG_SQL_ASCII, PG_VALID_ENCODING, and pg_wchar_table.
Referenced by CopyAttributeOutCSV(), CopyAttributeOutText(), fmtIdEnc(), pg_encoding_mblen_bounded(), pg_encoding_mblen_or_incomplete(), PQescapeInternal(), PQmblen(), PQmblenBounded(), and test_enc_setup().
Definition at line 2167 of file wchar.c.
References encoding, pg_encoding_mblen(), and strnlen().
Definition at line 2147 of file wchar.c.
References encoding, IS_HIGHBIT_SET, pg_encoding_mblen(), PG_GB18030, and remaining.
Referenced by PQescapeInternal(), PQescapeStringInternal(), report_invalid_encoding(), and report_untranslatable_char().
Definition at line 2051 of file wchar.c.
References Assert(), encoding, NONUTF8_INVALID_BYTE0, NONUTF8_INVALID_BYTE1, pg_encoding_max_length(), and PG_UTF8.
Referenced by appendStringLiteral(), fmtIdEnc(), PQescapeStringInternal(), and test_enc_setup().
Definition at line 587 of file encnames.c.
Definition at line 2189 of file wchar.c.
References encoding, len, PG_SQL_ASCII, PG_VALID_ENCODING, and pg_wchar_table.
Referenced by appendStringLiteral(), big52euc_tw(), big52mic(), euc_jis_20042shift_jis_2004(), euc_jp2mic(), euc_jp2sjis(), euc_kr2mic(), euc_tw2big5(), euc_tw2mic(), fmtIdEnc(), LocalToUtf(), mic2big5(), mic2euc_jp(), mic2euc_kr(), mic2euc_tw(), mic2sjis(), PQescapeStringInternal(), shift_jis_20042euc_jis_2004(), and sjis2euc_jp().
Definition at line 2202 of file wchar.c.
References encoding, len, PG_SQL_ASCII, PG_VALID_ENCODING, and pg_wchar_table.
Referenced by add_file_to_manifest(), CopyConvertBuf(), handle_oauth_sasl_error(), parse_oauth_json(), PQescapeInternal(), test_enc_conversion(), test_enc_setup(), and test_one_vector_escape().
Definition at line 1016 of file mbutils.c.
References encoding, len, pg_wchar_table, and pg_wchar_tbl::wchar2mb_with_len.
Definition at line 337 of file mbutils.c.
References ClientEncoding, and pg_enc2name::encoding.
Referenced by BeginCopyFrom(), BeginCopyTo(), and xml_send().
Definition at line 346 of file mbutils.c.
References ClientEncoding, and pg_enc2name::name.
Definition at line 980 of file mbutils.c.
References DatabaseEncoding, pg_enc2name::encoding, pg_wchar_tbl::mb2wchar_with_len, and pg_wchar_table.
Definition at line 987 of file mbutils.c.
References DatabaseEncoding, pg_enc2name::encoding, len, pg_wchar_tbl::mb2wchar_with_len, and pg_wchar_table.
Referenced by CheckAffix(), NIAddAffix(), RE_compile(), RE_compile_and_cache(), RE_execute(), regcomp_auth_token(), regexec_auth_token(), replace_text_regexp(), setup_regexp_matches(), setup_test_matches(), test_re_compile(), and TParserInit().
Definition at line 1126 of file mbutils.c.
References cliplen(), len, pg_database_encoding_max_length(), and pg_mblen().
Referenced by bpchar(), bpchar_input(), text_left(), text_right(), varchar(), and varchar_input().
Definition at line 1084 of file mbutils.c.
References DatabaseEncoding, pg_enc2name::encoding, len, and pg_encoding_mbcliplen().
Referenced by appendStringInfoStringQuoted(), bpchar_name(), ChooseIndexColumnNames(), CopyLimitPrintoutLength(), cvt_text_name(), ExecBuildSlotPartitionKeyDescription(), ExecBuildSlotValueDescription(), make_colname_unique(), make_greater_string(), makeMultirangeTypeName(), makeObjectName(), MemoryContextStatsPrint(), nameconcatoid(), namein(), pgstat_clip_activity(), pgstat_report_appname(), PutMemoryContextsStatsTupleStore(), set_rtable_names(), text_name(), text_to_cstring_buffer(), and truncate_identifier().
Definition at line 1024 of file mbutils.c.
References DatabaseEncoding, pg_enc2name::encoding, pg_wchar_tbl::mblen, and pg_wchar_table.
Referenced by addCompoundAffixFlagValue(), bit_in(), charlen_to_bytelen(), DCH_from_char(), dotrim(), find_word(), findchar(), findchar2(), findwrd(), gbt_var_node_cp_len(), get_modifiers(), get_nextfield(), get_wildcard_part(), getlexeme(), getNextFlagFromString(), gettoken_query(), gettoken_query_standard(), gettoken_query_websearch(), gettoken_tsvector(), hex_decode_safe_scalar(), infix(), initTrie(), lpad(), make_trigrams(), map_sql_identifier_to_xml_name(), map_xml_name_to_sql_identifier(), match_prosrc_to_literal(), mb_strchr(), NIImportAffixes(), NIImportDictionary(), NIImportOOAffixes(), NUM_eat_non_data_chars(), NUM_processor(), parse_affentry(), parse_format(), parse_lquery(), parse_ltree(), parse_or_operator(), parse_re_flags(), parse_test_flags(), pg_base64_decode_internal(), pg_mbcharcliplen(), pg_mbstrlen(), pg_mbstrlen_with_len(), prssyntaxerror(), px_crypt_shacrypt(), readstoplist(), report_json_context(), rpad(), RS_compile(), RS_execute(), RS_isRegis(), similar_escape_internal(), split_text(), t_isalnum(), t_isalpha(), text_format(), text_position_next(), text_position_next_internal(), text_reverse(), text_substring(), text_to_bits(), textregexreplace(), thesaurusRead(), TParserGet(), translate(), ts_stat_sql(), tsvectorout(), unaccent_lexize(), varbit_in(), varstr_levenshtein(), and wchareq().
Definition at line 1038 of file mbutils.c.
References len, pg_database_encoding_max_length(), and pg_mblen().
Referenced by NUM_processor(), and text_format_append_string().
Definition at line 1058 of file mbutils.c.
References len, pg_database_encoding_max_length(), and pg_mblen().
Referenced by bpchar(), bpchar_input(), bpcharlen(), executor_errposition(), lpad(), match_prosrc_to_query(), parser_errposition(), plpgsql_scanner_errposition(), rpad(), scanner_errposition(), similar_escape_internal(), text_left(), text_length(), text_position_get_match_pos(), text_right(), text_substring(), unicode_assigned(), unicode_is_normalized(), unicode_normalize_func(), and varstr_levenshtein().
Definition at line 793 of file wchar.c.
References IS_LC1, IS_LC2, IS_LCPRV1, IS_LCPRV2, and len.
Referenced by mic2latin(), mic2latin_with_table(), and pg_mule_verifychar().
Definition at line 750 of file mbutils.c.
References ClientEncoding, DatabaseEncoding, encoding, pg_enc2name::encoding, len, perform_default_encoding_conversion(), pg_do_encoding_conversion(), PG_SQL_ASCII, pg_verify_mbstr(), and unconstify.
Referenced by compareStrings(), CopyAttributeOutCSV(), CopyAttributeOutText(), CopyToTextLikeStart(), daitch_mokotoff(), dsnowball_lexize(), hv_fetch_string(), hv_store_string(), pg_server_to_client(), PLyUnicode_FromStringAndSize(), and utf_e2u().
Definition at line 739 of file mbutils.c.
References ClientEncoding, pg_enc2name::encoding, len, and pg_server_to_any().
Referenced by pq_puttextmessage(), pq_sendcountedtext(), pq_sendstring(), pq_sendtext(), and pq_writestring().
Definition at line 865 of file mbutils.c.
References BoolGetDatum(), CStringGetDatum(), ereport, errcode(), errmsg(), ERROR, FunctionCall6, GetDatabaseEncoding(), GetDatabaseEncodingName(), Int32GetDatum(), is_valid_unicode_codepoint(), MAX_MULTIBYTE_CHAR_LEN, name, pg_enc2name_tbl, PG_UTF8, pg_utf_mblen, unicode_to_utf8(), and Utf8ToServerConvProc.
Referenced by addunicode(), addUnicodeChar(), map_xml_name_to_sql_identifier(), str_udeescape(), and unistr().
Definition at line 927 of file mbutils.c.
References BoolGetDatum(), CStringGetDatum(), DatumGetInt32(), FunctionCall6, GetDatabaseEncoding(), Int32GetDatum(), is_valid_unicode_codepoint(), MAX_MULTIBYTE_CHAR_LEN, PG_UTF8, pg_utf_mblen, unicode_to_utf8(), and Utf8ToServerConvProc.
Referenced by addUnicodeChar(), and json_lex_string().
Definition at line 1989 of file wchar.c.
Referenced by chr(), pg_utf8_string_len(), pg_utf8_verifychar(), utf8_to_iso8859_1(), and UtfToLocal().
Definition at line 538 of file wchar.c.
References len.
Referenced by pg_utf8_verifystr(), and pg_wchar2utf_with_len().
Definition at line 485 of file encnames.c.
References enc, name, pg_char_to_encoding(), and PG_VALID_FE_ENCODING.
Referenced by check_client_encoding().
Definition at line 499 of file encnames.c.
References enc, name, pg_char_to_encoding(), and PG_VALID_BE_ENCODING.
Definition at line 513 of file encnames.c.
Definition at line 1567 of file mbutils.c.
References Assert(), encoding, len, pg_wchar_tbl::mbverifystr, PG_VALID_ENCODING, pg_wchar_table, and report_invalid_encoding().
Referenced by AddFileToBackupManifest(), LogicalOutputWrite(), pg_any_to_server(), pg_convert(), pg_do_encoding_conversion(), pg_server_to_any(), pg_verifymbstr(), and read_extension_script_file().
Definition at line 1598 of file mbutils.c.
References Assert(), encoding, IS_HIGHBIT_SET, len, pg_wchar_tbl::mbverifychar, pg_encoding_max_length(), PG_VALID_ENCODING, pg_wchar_table, and report_invalid_encoding().
Referenced by length_in_encoding().
Definition at line 1557 of file mbutils.c.
References GetDatabaseEncoding(), len, and pg_verify_mbstr().
Referenced by char2wchar(), CopyReadAttributesText(), plperl_spi_exec(), plperl_spi_prepare(), plperl_spi_query(), PLy_cursor_query(), PLy_output(), PLy_spi_execute_query(), PLy_spi_prepare(), PLyObject_AsString(), read_text_file(), and spg_text_leaf_consistent().
Definition at line 1002 of file mbutils.c.
References DatabaseEncoding, pg_enc2name::encoding, pg_wchar_strlen(), pg_wchar_table, and pg_wchar_tbl::wchar2mb_with_len.
Definition at line 1009 of file mbutils.c.
References DatabaseEncoding, pg_enc2name::encoding, len, pg_wchar_table, and pg_wchar_tbl::wchar2mb_with_len.
Referenced by build_regexp_match_result(), build_regexp_split_result(), build_test_match_result(), convertPgWchar(), and regexp_fixed_prefix().
Definition at line 70 of file wstrncmp.c.
References str.
Referenced by pg_wchar2mb().
Definition at line 111 of file mbutils.c.
References backend_startup_complete, ConvProcInfo::c_encoding, ConvProcList, encoding, FindDefaultConversionProc(), fmgr_info_cxt(), GetDatabaseEncoding(), IsTransactionState(), lcons(), lfirst, MemoryContextAlloc(), MemoryContextSwitchTo(), OidIsValid, PG_SQL_ASCII, PG_VALID_FE_ENCODING, ConvProcInfo::s_encoding, ConvProcInfo::to_client_info, ConvProcInfo::to_server_info, and TopMemoryContext.
Referenced by check_client_encoding(), and InitializeClientEncoding().
Definition at line 1699 of file mbutils.c.
References buf, encoding, ereport, errcode(), errmsg(), ERROR, j, len, Min, name, pg_enc2name_tbl, pg_encoding_mblen_or_incomplete(), and sprintf.
Referenced by big52euc_tw(), big52mic(), CopyConversionError(), euc_cn2mic(), euc_jis_20042shift_jis_2004(), euc_jp2mic(), euc_jp2sjis(), euc_kr2mic(), euc_tw2big5(), euc_tw2mic(), iso8859_1_to_utf8(), latin2mic(), latin2mic_with_table(), local2local(), LocalToUtf(), mic2big5(), mic2euc_cn(), mic2euc_jp(), mic2euc_kr(), mic2euc_tw(), mic2latin(), mic2latin_with_table(), mic2sjis(), pg_verify_mbstr(), pg_verify_mbstr_len(), shift_jis_20042euc_jis_2004(), sjis2euc_jp(), sjis2mic(), test_enc_conversion(), utf8_to_iso8859_1(), and UtfToLocal().
Definition at line 1731 of file mbutils.c.
References buf, ereport, errcode(), errmsg(), ERROR, j, len, Min, name, pg_enc2name_tbl, pg_encoding_mblen_or_incomplete(), and sprintf.
Referenced by big52euc_tw(), big52mic(), euc_tw2big5(), latin2mic_with_table(), local2local(), LocalToUtf(), mic2big5(), mic2euc_cn(), mic2euc_jp(), mic2euc_kr(), mic2euc_tw(), mic2latin(), mic2latin_with_table(), mic2sjis(), utf8_to_iso8859_1(), and UtfToLocal().
Definition at line 209 of file mbutils.c.
References backend_startup_complete, ConvProcInfo::c_encoding, ClientEncoding, ConvProcList, encoding, foreach_delete_current, GetDatabaseEncoding(), lfirst, pending_client_encoding, pfree(), pg_enc2name_tbl, PG_SQL_ASCII, PG_VALID_FE_ENCODING, ConvProcInfo::s_encoding, ConvProcInfo::to_client_info, ConvProcInfo::to_server_info, ToClientConvProc, and ToServerConvProc.
Referenced by assign_client_encoding(), InitializeClientEncoding(), and ParallelWorkerMain().
Definition at line 1162 of file mbutils.c.
References Assert(), DatabaseEncoding, elog, encoding, pg_enc2name::encoding, ERROR, pg_enc2name_tbl, and PG_VALID_BE_ENCODING.
Referenced by CheckMyDatabase().
Definition at line 1172 of file mbutils.c.
References Assert(), encoding, pg_enc2name::encoding, MessageEncoding, pg_enc2name_tbl, and PG_VALID_ENCODING.
Referenced by pg_perm_setlocale().
Definition at line 537 of file pg_wchar.h.
Referenced by addUnicode(), json_lex_string(), str_udeescape(), and unistr().
Definition at line 575 of file pg_wchar.h.
Referenced by convert_case(), json_lex_string(), pg_saslprep(), pg_unicode_to_server(), pg_unicode_to_server_noerror(), pg_wchar2utf_with_len(), and unicode_normalize_func().
Definition at line 607 of file pg_wchar.h.
Referenced by convert_case(), and initcap_wbnext().
Definition at line 549 of file pg_wchar.h.
Definition at line 507 of file conv.c.
References pg_utf_to_local_combined::code, compare3(), elog, encoding, ereport, errcode(), errmsg(), ERROR, len, pg_mb_radix_conv(), PG_UTF8, pg_utf8_islegal(), pg_utf_mblen, PG_VALID_ENCODING, report_invalid_encoding(), report_untranslatable_char(), start, and store_coded_char().
Referenced by utf8_to_big5(), utf8_to_euc_cn(), utf8_to_euc_jis_2004(), utf8_to_euc_jp(), utf8_to_euc_kr(), utf8_to_euc_tw(), utf8_to_gb18030(), utf8_to_gbk(), utf8_to_iso8859(), utf8_to_johab(), utf8_to_koi8r(), utf8_to_koi8u(), utf8_to_shift_jis_2004(), utf8_to_sjis(), utf8_to_uhc(), and utf8_to_win().
Definition at line 360 of file encnames.c.
Definition at line 308 of file encnames.c.
Referenced by check_encoding_conversion_args(), InitializeClientEncoding(), pg_any_to_server(), pg_encoding_to_char(), pg_unicode_to_server(), report_invalid_encoding(), report_untranslatable_char(), SetClientEncoding(), SetDatabaseEncoding(), SetMessageEncoding(), and test_enc_setup().
Definition at line 2064 of file wchar.c.
Referenced by pg_database_encoding_max_length(), pg_dsplen(), pg_encoding_dsplen(), pg_encoding_max_length(), pg_encoding_max_length_sql(), pg_encoding_mb2wchar_with_len(), pg_encoding_mbcliplen(), pg_encoding_mblen(), pg_encoding_verifymbchar(), pg_encoding_verifymbstr(), pg_encoding_wchar2mb_with_len(), pg_generic_charinc(), pg_mb2wchar(), pg_mb2wchar_with_len(), pg_mblen(), pg_verify_mbstr(), pg_verify_mbstr_len(), pg_wchar2mb(), and pg_wchar2mb_with_len().