|
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 599 of file wchar.c.
Referenced by ucs_wcwidth().
Definition at line 94 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 956 of file wchar.c.
References IS_HIGHBIT_SET, len, and pg_ascii_dsplen().
Definition at line 944 of file wchar.c.
References IS_HIGHBIT_SET, and len.
Referenced by pg_big5_verifychar().
Definition at line 1501 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 1526 of file wchar.c.
References IS_HIGHBIT_SET, len, pg_big5_verifychar(), and start.
Definition at line 2198 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 2235 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(), make_trigrams(), pg_encoding_mbcliplen(), pg_encoding_set_invalid(), pg_verify_mbstr_len(), reportErrorPosition(), test_enc_setup(), test_wchars_to_text(), and type_maximum_size().
Definition at line 2157 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(), test_enc_setup(), and test_mblen_func().
Definition at line 2189 of file wchar.c.
References encoding, fb(), and pg_encoding_mblen().
Definition at line 2169 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 2073 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 2211 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 2224 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 108 of file wchar.c.
References IS_HIGHBIT_SET, len, MB2CHAR_NEED_AT_LEAST, SS2, and SS3.
Referenced by pg_eucjp2wchar_with_len(), and pg_euckr2wchar_with_len().
Definition at line 165 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 149 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 237 of file wchar.c.
References IS_HIGHBIT_SET, len, MB2CHAR_NEED_AT_LEAST, SS2, and SS3.
Definition at line 301 of file wchar.c.
References IS_HIGHBIT_SET, len, and pg_ascii_dsplen().
Definition at line 184 of file wchar.c.
References len, and pg_euc2wchar_with_len().
Definition at line 196 of file wchar.c.
References IS_HIGHBIT_SET, len, pg_ascii_dsplen(), SS2, and SS3.
Definition at line 1104 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 1159 of file wchar.c.
References IS_HIGHBIT_SET, len, pg_eucjp_verifychar(), and start.
Definition at line 215 of file wchar.c.
References len, and pg_euc2wchar_with_len().
Definition at line 221 of file wchar.c.
References pg_euc_mblen().
Definition at line 1188 of file wchar.c.
References fb(), IS_EUC_RANGE_VALID, IS_HIGHBIT_SET, and len.
Referenced by pg_euckr_verifystr().
Definition at line 1217 of file wchar.c.
References IS_HIGHBIT_SET, len, pg_euckr_verifychar(), and start.
Definition at line 317 of file wchar.c.
References IS_HIGHBIT_SET, len, MB2CHAR_NEED_AT_LEAST, SS2, and SS3.
Definition at line 376 of file wchar.c.
References IS_HIGHBIT_SET, len, pg_ascii_dsplen(), SS2, and SS3.
Definition at line 1250 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 1300 of file wchar.c.
References IS_HIGHBIT_SET, len, pg_euctw_verifychar(), and start.
Definition at line 1051 of file wchar.c.
References IS_HIGHBIT_SET, len, and pg_ascii_dsplen().
Definition at line 1663 of file wchar.c.
References IS_HIGHBIT_SET, and len.
Referenced by pg_gb18030_verifystr().
Definition at line 1694 of file wchar.c.
References IS_HIGHBIT_SET, len, pg_gb18030_verifychar(), and start.
Definition at line 983 of file wchar.c.
References IS_HIGHBIT_SET, len, and pg_ascii_dsplen().
Definition at line 971 of file wchar.c.
References IS_HIGHBIT_SET, and len.
Referenced by pg_gbk_verifychar().
Definition at line 1555 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 1580 of file wchar.c.
References IS_HIGHBIT_SET, len, pg_gbk_verifychar(), and start.
Definition at line 450 of file wchar.c.
References pg_euc_dsplen().
Definition at line 444 of file wchar.c.
References pg_euc_mblen().
Referenced by pg_johab_verifychar().
Definition at line 1329 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 1353 of file wchar.c.
References IS_HIGHBIT_SET, len, pg_johab_verifychar(), and start.
Definition at line 904 of file wchar.c.
References pg_ascii_dsplen().
Definition at line 692 of file wchar.c.
References fb(), IS_LC1, IS_LC2, IS_LCPRV1, IS_LCPRV2, len, and MB2CHAR_NEED_AT_LEAST.
Definition at line 815 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 1382 of file wchar.c.
References fb(), IS_HIGHBIT_SET, len, and pg_mule_mblen().
Referenced by pg_mule_verifystr().
Definition at line 1403 of file wchar.c.
References IS_HIGHBIT_SET, len, pg_mule_verifychar(), and start.
Definition at line 927 of file wchar.c.
References IS_HIGHBIT_SET, len, and pg_ascii_dsplen().
Definition at line 913 of file wchar.c.
References IS_HIGHBIT_SET, and len.
Referenced by pg_sjis_verifychar().
Definition at line 1449 of file wchar.c.
References fb(), ISSJISHEAD, ISSJISTAIL, len, and pg_sjis_mblen().
Referenced by pg_sjis_verifystr().
Definition at line 1472 of file wchar.c.
References IS_HIGHBIT_SET, len, pg_sjis_verifychar(), and start.
Definition at line 1010 of file wchar.c.
References IS_HIGHBIT_SET, len, and pg_ascii_dsplen().
Definition at line 998 of file wchar.c.
References IS_HIGHBIT_SET, and len.
Referenced by pg_uhc_verifychar().
Definition at line 1609 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 1634 of file wchar.c.
References IS_HIGHBIT_SET, len, pg_uhc_verifychar(), and start.
Definition at line 462 of file wchar.c.
References fb(), len, and MB2CHAR_NEED_AT_LEAST.
Definition at line 2011 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 1723 of file wchar.c.
References len, and pg_utf8_islegal().
Referenced by pg_utf8_verifystr().
Definition at line 1913 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 556 of file wchar.c.
References len.
Definition at line 398 of file wchar.c.
References len.
Definition at line 749 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 525 of file wchar.c.
References fb(), len, pg_utf_mblen, and unicode_to_utf8().
Definition at line 646 of file wchar.c.
References east_asian_fw, fb(), mbbisearch(), and nonspacing.
Referenced by pg_utf_dsplen().
Definition at line 1895 of file wchar.c.
References len, and Utf8Transition.
Referenced by pg_utf8_verifystr().
| const pg_wchar_tbl pg_wchar_table[] |
Definition at line 2086 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_cstr(), pg_mblen_range(), pg_mblen_unbounded(), pg_mblen_with_len(), pg_verify_mbstr(), pg_verify_mbstr_len(), pg_wchar2mb(), and pg_wchar2mb_with_len().
Definition at line 1837 of file wchar.c.
Referenced by utf8_advance().