|
PostgreSQL Source Code git master
|
#include "c.h"#include <limits.h>#include "mb/pg_wchar.h"#include "utils/ascii.h"#include "common/unicode_nonspacing_table.h"#include "common/unicode_east_asian_fw_table.h"
Go to the source code of this file.
Data Structures | |
| struct | mbinterval |
Variables | |
| static const uint32 | Utf8Transition [256] |
| const pg_wchar_tbl | pg_wchar_table [] |
| #define pg_euccn_verifychar pg_euckr_verifychar |
| #define pg_euccn_verifystr pg_euckr_verifystr |
Definition at line 581 of file wchar.c.
Referenced by ucs_wcwidth().
Definition at line 91 of file wchar.c.
Referenced by pg_big5_dsplen(), pg_euc_dsplen(), pg_euccn_dsplen(), pg_eucjp_dsplen(), pg_euctw_dsplen(), pg_gb18030_dsplen(), pg_gbk_dsplen(), pg_latin1_dsplen(), pg_sjis_dsplen(), and pg_uhc_dsplen().
Definition at line 934 of file wchar.c.
References IS_HIGHBIT_SET, len, and pg_ascii_dsplen().
Definition at line 922 of file wchar.c.
References IS_HIGHBIT_SET, and len.
Referenced by pg_big5_verifychar().
Definition at line 1479 of file wchar.c.
References fb(), len, NONUTF8_INVALID_BYTE0, NONUTF8_INVALID_BYTE1, and pg_big5_mblen().
Referenced by pg_big5_verifystr().
Definition at line 1504 of file wchar.c.
References IS_HIGHBIT_SET, len, pg_big5_verifychar(), and start.
Definition at line 2176 of file wchar.c.
References pg_wchar_tbl::dsplen, encoding, fb(), 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 2135 of file wchar.c.
References encoding, fb(), pg_wchar_tbl::mblen, 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, fb(), and pg_encoding_mblen().
Definition at line 2147 of file wchar.c.
References encoding, fb(), 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, fb(), 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 2189 of file wchar.c.
References encoding, fb(), len, pg_wchar_tbl::mbverifychar, 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, fb(), len, pg_wchar_tbl::mbverifystr, 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 105 of file wchar.c.
References IS_HIGHBIT_SET, len, SS2, and SS3.
Referenced by pg_eucjp2wchar_with_len(), and pg_euckr2wchar_with_len().
Definition at line 160 of file wchar.c.
References IS_HIGHBIT_SET, len, pg_ascii_dsplen(), SS2, and SS3.
Referenced by pg_euckr_dsplen(), and pg_johab_dsplen().
Definition at line 144 of file wchar.c.
References IS_HIGHBIT_SET, len, SS2, and SS3.
Referenced by pg_eucjp_mblen(), pg_euckr_mblen(), and pg_johab_mblen().
Definition at line 232 of file wchar.c.
References IS_HIGHBIT_SET, len, SS2, and SS3.
Definition at line 283 of file wchar.c.
References IS_HIGHBIT_SET, len, and pg_ascii_dsplen().
Definition at line 179 of file wchar.c.
References len, and pg_euc2wchar_with_len().
Definition at line 191 of file wchar.c.
References IS_HIGHBIT_SET, len, pg_ascii_dsplen(), SS2, and SS3.
Definition at line 1082 of file wchar.c.
References fb(), IS_EUC_RANGE_VALID, IS_HIGHBIT_SET, len, SS2, and SS3.
Referenced by pg_eucjp_verifystr().
Definition at line 1137 of file wchar.c.
References IS_HIGHBIT_SET, len, pg_eucjp_verifychar(), and start.
Definition at line 210 of file wchar.c.
References len, and pg_euc2wchar_with_len().
Definition at line 216 of file wchar.c.
References pg_euc_mblen().
Definition at line 1166 of file wchar.c.
References fb(), IS_EUC_RANGE_VALID, IS_HIGHBIT_SET, and len.
Referenced by pg_euckr_verifystr().
Definition at line 1195 of file wchar.c.
References IS_HIGHBIT_SET, len, pg_euckr_verifychar(), and start.
Definition at line 299 of file wchar.c.
References IS_HIGHBIT_SET, len, SS2, and SS3.
Definition at line 355 of file wchar.c.
References IS_HIGHBIT_SET, len, pg_ascii_dsplen(), SS2, and SS3.
Definition at line 1228 of file wchar.c.
References fb(), IS_EUC_RANGE_VALID, IS_HIGHBIT_SET, len, SS2, and SS3.
Referenced by pg_euctw_verifystr().
Definition at line 1278 of file wchar.c.
References IS_HIGHBIT_SET, len, pg_euctw_verifychar(), and start.
Definition at line 1029 of file wchar.c.
References IS_HIGHBIT_SET, len, and pg_ascii_dsplen().
Definition at line 1641 of file wchar.c.
References IS_HIGHBIT_SET, and len.
Referenced by pg_gb18030_verifystr().
Definition at line 1672 of file wchar.c.
References IS_HIGHBIT_SET, len, pg_gb18030_verifychar(), and start.
Definition at line 961 of file wchar.c.
References IS_HIGHBIT_SET, len, and pg_ascii_dsplen().
Definition at line 949 of file wchar.c.
References IS_HIGHBIT_SET, and len.
Referenced by pg_gbk_verifychar().
Definition at line 1533 of file wchar.c.
References fb(), len, NONUTF8_INVALID_BYTE0, NONUTF8_INVALID_BYTE1, and pg_gbk_mblen().
Referenced by pg_gbk_verifystr().
Definition at line 1558 of file wchar.c.
References IS_HIGHBIT_SET, len, pg_gbk_verifychar(), and start.
Definition at line 429 of file wchar.c.
References pg_euc_dsplen().
Definition at line 423 of file wchar.c.
References pg_euc_mblen().
Referenced by pg_johab_verifychar().
Definition at line 1307 of file wchar.c.
References fb(), IS_EUC_RANGE_VALID, IS_HIGHBIT_SET, len, and pg_johab_mblen().
Referenced by pg_johab_verifystr().
Definition at line 1331 of file wchar.c.
References IS_HIGHBIT_SET, len, pg_johab_verifychar(), and start.
Definition at line 882 of file wchar.c.
References pg_ascii_dsplen().
Definition at line 674 of file wchar.c.
References fb(), IS_LC1, IS_LC2, IS_LCPRV1, IS_LCPRV2, and len.
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 1360 of file wchar.c.
References fb(), IS_HIGHBIT_SET, len, and pg_mule_mblen().
Referenced by pg_mule_verifystr().
Definition at line 1381 of file wchar.c.
References IS_HIGHBIT_SET, len, pg_mule_verifychar(), and start.
Definition at line 905 of file wchar.c.
References IS_HIGHBIT_SET, len, and pg_ascii_dsplen().
Definition at line 891 of file wchar.c.
References IS_HIGHBIT_SET, and len.
Referenced by pg_sjis_verifychar().
Definition at line 1427 of file wchar.c.
References fb(), ISSJISHEAD, ISSJISTAIL, len, and pg_sjis_mblen().
Referenced by pg_sjis_verifystr().
Definition at line 1450 of file wchar.c.
References IS_HIGHBIT_SET, len, pg_sjis_verifychar(), and start.
Definition at line 988 of file wchar.c.
References IS_HIGHBIT_SET, len, and pg_ascii_dsplen().
Definition at line 976 of file wchar.c.
References IS_HIGHBIT_SET, and len.
Referenced by pg_uhc_verifychar().
Definition at line 1587 of file wchar.c.
References fb(), len, NONUTF8_INVALID_BYTE0, NONUTF8_INVALID_BYTE1, and pg_uhc_mblen().
Referenced by pg_uhc_verifystr().
Definition at line 1612 of file wchar.c.
References IS_HIGHBIT_SET, len, pg_uhc_verifychar(), and start.
Definition at line 441 of file wchar.c.
Definition at line 1989 of file wchar.c.
References a, fb(), and source.
Referenced by chr(), pg_utf8_string_len(), pg_utf8_verifychar(), utf8_to_iso8859_1(), and UtfToLocal().
Definition at line 1701 of file wchar.c.
References len, and pg_utf8_islegal().
Referenced by pg_utf8_verifystr().
Definition at line 1891 of file wchar.c.
References Assert, BGN, END, ERR, fb(), IS_HIGHBIT_SET, is_valid_ascii(), len, pg_utf8_verifychar(), pg_utf_mblen, start, STRIDE_LENGTH, and utf8_advance().
Definition at line 538 of file wchar.c.
References len.
Definition at line 377 of file wchar.c.
References len.
Definition at line 727 of file wchar.c.
References IS_LC1, IS_LC2, IS_LCPRV1_A_RANGE, IS_LCPRV1_B_RANGE, IS_LCPRV2_A_RANGE, IS_LCPRV2_B_RANGE, LCPRV1_A, LCPRV1_B, LCPRV2_A, LCPRV2_B, and len.
Definition at line 507 of file wchar.c.
References fb(), len, pg_utf_mblen, and unicode_to_utf8().
Definition at line 628 of file wchar.c.
References east_asian_fw, fb(), mbbisearch(), and nonspacing.
Referenced by pg_utf_dsplen().
Definition at line 1873 of file wchar.c.
References len, and Utf8Transition.
Referenced by pg_utf8_verifystr().
| const pg_wchar_tbl pg_wchar_table[] |
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().
Definition at line 1815 of file wchar.c.
Referenced by utf8_advance().