|
PostgreSQL Source Code git master
|

Go to the source code of this file.
Definition at line 320 of file conv.c.
Referenced by UtfToLocal().
Definition at line 339 of file conv.c.
References fb().
Referenced by LocalToUtf().
| int latin2mic | ( | const unsigned char * | l, |
| unsigned char * | p, | ||
| int | len, | ||
| int | lc, | ||
| int | encoding, | ||
| bool | noError | ||
| ) |
Definition at line 89 of file conv.c.
References encoding, fb(), 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().
| int latin2mic_with_table | ( | const unsigned char * | l, |
| unsigned char * | p, | ||
| int | len, | ||
| int | lc, | ||
| int | encoding, | ||
| const unsigned char * | tab, | ||
| bool | noError | ||
| ) |
Definition at line 194 of file conv.c.
References encoding, fb(), 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().
| int local2local | ( | const unsigned char * | l, |
| unsigned char * | p, | ||
| int | len, | ||
| int | src_encoding, | ||
| int | dest_encoding, | ||
| const unsigned char * | tab, | ||
| bool | noError | ||
| ) |
Definition at line 33 of file conv.c.
References fb(), 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().
| int LocalToUtf | ( | const unsigned char * | iso, |
| int | len, | ||
| unsigned char * | utf, | ||
| const pg_mb_radix_tree * | map, | ||
| const pg_local_to_utf_combined * | cmap, | ||
| int | cmapsize, | ||
| utf_local_conversion_func | conv_func, | ||
| int | encoding, | ||
| bool | noError | ||
| ) |
Definition at line 717 of file conv.c.
References compare4(), elog, encoding, ereport, errcode(), errmsg(), ERROR, fb(), IS_HIGHBIT_SET, len, pg_encoding_verifymbchar(), pg_mb_radix_conv(), PG_UTF8, PG_VALID_ENCODING, report_invalid_encoding(), report_untranslatable_char(), start, and store_coded_char().
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().
| int mic2latin | ( | const unsigned char * | mic, |
| unsigned char * | p, | ||
| int | len, | ||
| int | lc, | ||
| int | encoding, | ||
| bool | noError | ||
| ) |
Definition at line 127 of file conv.c.
References encoding, fb(), 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().
| int mic2latin_with_table | ( | const unsigned char * | mic, |
| unsigned char * | p, | ||
| int | len, | ||
| int | lc, | ||
| int | encoding, | ||
| const unsigned char * | tab, | ||
| bool | noError | ||
| ) |
Definition at line 257 of file conv.c.
References encoding, fb(), 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().
|
inlinestatic |
Definition at line 373 of file conv.c.
Referenced by LocalToUtf(), and UtfToLocal().
Definition at line 353 of file conv.c.
Referenced by LocalToUtf(), and UtfToLocal().
| int UtfToLocal | ( | const unsigned char * | utf, |
| int | len, | ||
| unsigned char * | iso, | ||
| const pg_mb_radix_tree * | map, | ||
| const pg_utf_to_local_combined * | cmap, | ||
| int | cmapsize, | ||
| utf_local_conversion_func | conv_func, | ||
| int | encoding, | ||
| bool | noError | ||
| ) |
Definition at line 507 of file conv.c.
References compare3(), elog, encoding, ereport, errcode(), errmsg(), ERROR, fb(), 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().