/dports/databases/ods2sql/ods2sql-aca63183274038487cecb6be17d7f65e92178b8c/cargo-crates/codepage-0.1.1/src/ |
H A D | tests.rs | 21 assert_eq!(to_encoding(0), None); in test_to_encoding() 23 assert_eq!(to_encoding(65001), Some(UTF_8)); in test_to_encoding() 24 assert_eq!(to_encoding(1200), Some(UTF_16LE)); in test_to_encoding() 27 assert_eq!(to_encoding(936), Some(GBK)); in test_to_encoding() 28 assert_eq!(to_encoding(932), Some(SHIFT_JIS)); in test_to_encoding() 29 assert_eq!(to_encoding(949), Some(EUC_KR)); in test_to_encoding() 33 assert_eq!(to_encoding(950), Some(BIG5)); in test_to_encoding() 54 assert_eq!(to_encoding(866), Some(IBM866)); in test_to_encoding() 61 assert_eq!(to_encoding(951), Some(BIG5)); in test_to_encoding() 62 assert_eq!(to_encoding(20936), Some(GBK)); in test_to_encoding() [all …]
|
/dports/databases/xls2txt/xls2txt-1222f8069428f6bcedfcccf9e80523db34c0d343/cargo-crates/codepage-0.1.1/src/ |
H A D | tests.rs | 21 assert_eq!(to_encoding(0), None); in test_to_encoding() 23 assert_eq!(to_encoding(65001), Some(UTF_8)); in test_to_encoding() 24 assert_eq!(to_encoding(1200), Some(UTF_16LE)); in test_to_encoding() 27 assert_eq!(to_encoding(936), Some(GBK)); in test_to_encoding() 28 assert_eq!(to_encoding(932), Some(SHIFT_JIS)); in test_to_encoding() 29 assert_eq!(to_encoding(949), Some(EUC_KR)); in test_to_encoding() 33 assert_eq!(to_encoding(950), Some(BIG5)); in test_to_encoding() 54 assert_eq!(to_encoding(866), Some(IBM866)); in test_to_encoding() 61 assert_eq!(to_encoding(951), Some(BIG5)); in test_to_encoding() 62 assert_eq!(to_encoding(20936), Some(GBK)); in test_to_encoding() [all …]
|
/dports/devel/gettext-tools/gettext-0.21/libtextstyle/lib/ |
H A D | iconv-ostream.oo.c | 47 char *to_encoding; member 116 stream->from_encoding, stream->to_encoding); in write_mem() 169 "iconv_ostream", stream->from_encoding, stream->to_encoding); in free() 179 free (stream->to_encoding); in free() 186 iconv_ostream_create (const char *from_encoding, const char *to_encoding, in iconv_ostream_create() argument 194 stream->to_encoding = xstrdup (to_encoding); in iconv_ostream_create() 201 || c_strcasecmp (to_encoding, "EUC-KR") == 0) in iconv_ostream_create() 205 stream->cd = iconv_open (to_encoding, from_encoding); in iconv_ostream_create() 211 else if (iconv_open (to_encoding, "UTF-8") == (iconv_t)(-1)) in iconv_ostream_create() 213 "iconv", to_encoding); in iconv_ostream_create() [all …]
|
H A D | iconv-ostream.c | 116 stream->from_encoding, stream->to_encoding); in iconv_ostream__write_mem() 169 "iconv_ostream", stream->from_encoding, stream->to_encoding); in iconv_ostream__free() 179 free (stream->to_encoding); in iconv_ostream__free() 186 iconv_ostream_create (const char *from_encoding, const char *to_encoding, in iconv_ostream_create() argument 194 stream->to_encoding = xstrdup (to_encoding); in iconv_ostream_create() 201 || c_strcasecmp (to_encoding, "EUC-KR") == 0) in iconv_ostream_create() 205 stream->cd = iconv_open (to_encoding, from_encoding); in iconv_ostream_create() 211 else if (iconv_open (to_encoding, "UTF-8") == (iconv_t)(-1)) in iconv_ostream_create() 213 "iconv", to_encoding); in iconv_ostream_create() 217 "iconv", from_encoding, to_encoding); in iconv_ostream_create()
|
/dports/devel/gettext-runtime/gettext-0.21/libtextstyle/gnulib-local/lib/ |
H A D | iconv-ostream.oo.c | 47 char *to_encoding; member 116 stream->from_encoding, stream->to_encoding); in write_mem() 169 "iconv_ostream", stream->from_encoding, stream->to_encoding); in free() 179 free (stream->to_encoding); in free() 186 iconv_ostream_create (const char *from_encoding, const char *to_encoding, in iconv_ostream_create() argument 194 stream->to_encoding = xstrdup (to_encoding); in iconv_ostream_create() 201 || c_strcasecmp (to_encoding, "EUC-KR") == 0) in iconv_ostream_create() 205 stream->cd = iconv_open (to_encoding, from_encoding); in iconv_ostream_create() 211 else if (iconv_open (to_encoding, "UTF-8") == (iconv_t)(-1)) in iconv_ostream_create() 213 "iconv", to_encoding); in iconv_ostream_create() [all …]
|
/dports/devel/gettext-runtime/gettext-0.21/libtextstyle/lib/ |
H A D | iconv-ostream.oo.c | 47 char *to_encoding; member 116 stream->from_encoding, stream->to_encoding); in write_mem() 169 "iconv_ostream", stream->from_encoding, stream->to_encoding); in free() 179 free (stream->to_encoding); in free() 186 iconv_ostream_create (const char *from_encoding, const char *to_encoding, in iconv_ostream_create() argument 194 stream->to_encoding = xstrdup (to_encoding); in iconv_ostream_create() 201 || c_strcasecmp (to_encoding, "EUC-KR") == 0) in iconv_ostream_create() 205 stream->cd = iconv_open (to_encoding, from_encoding); in iconv_ostream_create() 211 else if (iconv_open (to_encoding, "UTF-8") == (iconv_t)(-1)) in iconv_ostream_create() 213 "iconv", to_encoding); in iconv_ostream_create() [all …]
|
H A D | iconv-ostream.c | 116 stream->from_encoding, stream->to_encoding); in iconv_ostream__write_mem() 169 "iconv_ostream", stream->from_encoding, stream->to_encoding); in iconv_ostream__free() 179 free (stream->to_encoding); in iconv_ostream__free() 186 iconv_ostream_create (const char *from_encoding, const char *to_encoding, in iconv_ostream_create() argument 194 stream->to_encoding = xstrdup (to_encoding); in iconv_ostream_create() 201 || c_strcasecmp (to_encoding, "EUC-KR") == 0) in iconv_ostream_create() 205 stream->cd = iconv_open (to_encoding, from_encoding); in iconv_ostream_create() 211 else if (iconv_open (to_encoding, "UTF-8") == (iconv_t)(-1)) in iconv_ostream_create() 213 "iconv", to_encoding); in iconv_ostream_create() 217 "iconv", from_encoding, to_encoding); in iconv_ostream_create()
|
/dports/devel/gettext-tools/gettext-0.21/libtextstyle/gnulib-local/lib/ |
H A D | iconv-ostream.oo.c | 47 char *to_encoding; member 116 stream->from_encoding, stream->to_encoding); in write_mem() 169 "iconv_ostream", stream->from_encoding, stream->to_encoding); in free() 179 free (stream->to_encoding); in free() 186 iconv_ostream_create (const char *from_encoding, const char *to_encoding, in iconv_ostream_create() argument 194 stream->to_encoding = xstrdup (to_encoding); in iconv_ostream_create() 201 || c_strcasecmp (to_encoding, "EUC-KR") == 0) in iconv_ostream_create() 205 stream->cd = iconv_open (to_encoding, from_encoding); in iconv_ostream_create() 211 else if (iconv_open (to_encoding, "UTF-8") == (iconv_t)(-1)) in iconv_ostream_create() 213 "iconv", to_encoding); in iconv_ostream_create() [all …]
|
/dports/devel/gettext-po-mode/gettext-0.21/libtextstyle/lib/ |
H A D | iconv-ostream.oo.c | 47 char *to_encoding; member 116 stream->from_encoding, stream->to_encoding); in write_mem() 169 "iconv_ostream", stream->from_encoding, stream->to_encoding); in free() 179 free (stream->to_encoding); in free() 186 iconv_ostream_create (const char *from_encoding, const char *to_encoding, in iconv_ostream_create() argument 194 stream->to_encoding = xstrdup (to_encoding); in iconv_ostream_create() 201 || c_strcasecmp (to_encoding, "EUC-KR") == 0) in iconv_ostream_create() 205 stream->cd = iconv_open (to_encoding, from_encoding); in iconv_ostream_create() 211 else if (iconv_open (to_encoding, "UTF-8") == (iconv_t)(-1)) in iconv_ostream_create() 213 "iconv", to_encoding); in iconv_ostream_create() [all …]
|
H A D | iconv-ostream.c | 116 stream->from_encoding, stream->to_encoding); in iconv_ostream__write_mem() 169 "iconv_ostream", stream->from_encoding, stream->to_encoding); in iconv_ostream__free() 179 free (stream->to_encoding); in iconv_ostream__free() 186 iconv_ostream_create (const char *from_encoding, const char *to_encoding, in iconv_ostream_create() argument 194 stream->to_encoding = xstrdup (to_encoding); in iconv_ostream_create() 201 || c_strcasecmp (to_encoding, "EUC-KR") == 0) in iconv_ostream_create() 205 stream->cd = iconv_open (to_encoding, from_encoding); in iconv_ostream_create() 211 else if (iconv_open (to_encoding, "UTF-8") == (iconv_t)(-1)) in iconv_ostream_create() 213 "iconv", to_encoding); in iconv_ostream_create() 217 "iconv", from_encoding, to_encoding); in iconv_ostream_create()
|
/dports/devel/gettext-po-mode/gettext-0.21/libtextstyle/gnulib-local/lib/ |
H A D | iconv-ostream.oo.c | 47 char *to_encoding; member 116 stream->from_encoding, stream->to_encoding); in write_mem() 169 "iconv_ostream", stream->from_encoding, stream->to_encoding); in free() 179 free (stream->to_encoding); in free() 186 iconv_ostream_create (const char *from_encoding, const char *to_encoding, in iconv_ostream_create() argument 194 stream->to_encoding = xstrdup (to_encoding); in iconv_ostream_create() 201 || c_strcasecmp (to_encoding, "EUC-KR") == 0) in iconv_ostream_create() 205 stream->cd = iconv_open (to_encoding, from_encoding); in iconv_ostream_create() 211 else if (iconv_open (to_encoding, "UTF-8") == (iconv_t)(-1)) in iconv_ostream_create() 213 "iconv", to_encoding); in iconv_ostream_create() [all …]
|
/dports/databases/postgresql13-server/postgresql-13.5/src/backend/commands/ |
H A D | conversioncmds.c | 43 int to_encoding; in CreateConversionCommand() local 69 to_encoding = pg_char_to_encoding(to_encoding_name); in CreateConversionCommand() 70 if (to_encoding < 0) in CreateConversionCommand() 83 if (from_encoding == PG_SQL_ASCII || to_encoding == PG_SQL_ASCII) in CreateConversionCommand() 116 Int32GetDatum(to_encoding), in CreateConversionCommand() 126 from_encoding, to_encoding, funcoid, stmt->def); in CreateConversionCommand()
|
/dports/databases/postgresql13-pltcl/postgresql-13.5/src/backend/commands/ |
H A D | conversioncmds.c | 43 int to_encoding; in CreateConversionCommand() local 69 to_encoding = pg_char_to_encoding(to_encoding_name); in CreateConversionCommand() 70 if (to_encoding < 0) in CreateConversionCommand() 83 if (from_encoding == PG_SQL_ASCII || to_encoding == PG_SQL_ASCII) in CreateConversionCommand() 116 Int32GetDatum(to_encoding), in CreateConversionCommand() 126 from_encoding, to_encoding, funcoid, stmt->def); in CreateConversionCommand()
|
/dports/databases/postgresql13-docs/postgresql-13.5/src/backend/commands/ |
H A D | conversioncmds.c | 43 int to_encoding; in CreateConversionCommand() local 69 to_encoding = pg_char_to_encoding(to_encoding_name); in CreateConversionCommand() 70 if (to_encoding < 0) in CreateConversionCommand() 83 if (from_encoding == PG_SQL_ASCII || to_encoding == PG_SQL_ASCII) in CreateConversionCommand() 116 Int32GetDatum(to_encoding), in CreateConversionCommand() 126 from_encoding, to_encoding, funcoid, stmt->def); in CreateConversionCommand()
|
/dports/databases/postgresql13-client/postgresql-13.5/src/backend/commands/ |
H A D | conversioncmds.c | 43 int to_encoding; in CreateConversionCommand() local 69 to_encoding = pg_char_to_encoding(to_encoding_name); in CreateConversionCommand() 70 if (to_encoding < 0) in CreateConversionCommand() 83 if (from_encoding == PG_SQL_ASCII || to_encoding == PG_SQL_ASCII) in CreateConversionCommand() 116 Int32GetDatum(to_encoding), in CreateConversionCommand() 126 from_encoding, to_encoding, funcoid, stmt->def); in CreateConversionCommand()
|
/dports/databases/postgresql13-contrib/postgresql-13.5/src/backend/commands/ |
H A D | conversioncmds.c | 43 int to_encoding; in CreateConversionCommand() local 69 to_encoding = pg_char_to_encoding(to_encoding_name); in CreateConversionCommand() 70 if (to_encoding < 0) in CreateConversionCommand() 83 if (from_encoding == PG_SQL_ASCII || to_encoding == PG_SQL_ASCII) in CreateConversionCommand() 116 Int32GetDatum(to_encoding), in CreateConversionCommand() 126 from_encoding, to_encoding, funcoid, stmt->def); in CreateConversionCommand()
|
/dports/databases/postgresql13-plperl/postgresql-13.5/src/backend/commands/ |
H A D | conversioncmds.c | 43 int to_encoding; in CreateConversionCommand() local 69 to_encoding = pg_char_to_encoding(to_encoding_name); in CreateConversionCommand() 70 if (to_encoding < 0) in CreateConversionCommand() 83 if (from_encoding == PG_SQL_ASCII || to_encoding == PG_SQL_ASCII) in CreateConversionCommand() 116 Int32GetDatum(to_encoding), in CreateConversionCommand() 126 from_encoding, to_encoding, funcoid, stmt->def); in CreateConversionCommand()
|
/dports/databases/postgresql13-plpython/postgresql-13.5/src/backend/commands/ |
H A D | conversioncmds.c | 43 int to_encoding; in CreateConversionCommand() local 69 to_encoding = pg_char_to_encoding(to_encoding_name); in CreateConversionCommand() 70 if (to_encoding < 0) in CreateConversionCommand() 83 if (from_encoding == PG_SQL_ASCII || to_encoding == PG_SQL_ASCII) in CreateConversionCommand() 116 Int32GetDatum(to_encoding), in CreateConversionCommand() 126 from_encoding, to_encoding, funcoid, stmt->def); in CreateConversionCommand()
|
/dports/databases/postgresql14-pltcl/postgresql-14.1/src/backend/commands/ |
H A D | conversioncmds.c | 43 int to_encoding; in CreateConversionCommand() local 70 to_encoding = pg_char_to_encoding(to_encoding_name); in CreateConversionCommand() 71 if (to_encoding < 0) in CreateConversionCommand() 84 if (from_encoding == PG_SQL_ASCII || to_encoding == PG_SQL_ASCII) in CreateConversionCommand() 117 Int32GetDatum(to_encoding), in CreateConversionCommand() 138 from_encoding, to_encoding, funcoid, stmt->def); in CreateConversionCommand()
|
/dports/databases/postgresql14-server/postgresql-14.1/src/backend/commands/ |
H A D | conversioncmds.c | 43 int to_encoding; in CreateConversionCommand() local 70 to_encoding = pg_char_to_encoding(to_encoding_name); in CreateConversionCommand() 71 if (to_encoding < 0) in CreateConversionCommand() 84 if (from_encoding == PG_SQL_ASCII || to_encoding == PG_SQL_ASCII) in CreateConversionCommand() 117 Int32GetDatum(to_encoding), in CreateConversionCommand() 138 from_encoding, to_encoding, funcoid, stmt->def); in CreateConversionCommand()
|
/dports/databases/postgresql14-plperl/postgresql-14.1/src/backend/commands/ |
H A D | conversioncmds.c | 43 int to_encoding; in CreateConversionCommand() local 70 to_encoding = pg_char_to_encoding(to_encoding_name); in CreateConversionCommand() 71 if (to_encoding < 0) in CreateConversionCommand() 84 if (from_encoding == PG_SQL_ASCII || to_encoding == PG_SQL_ASCII) in CreateConversionCommand() 117 Int32GetDatum(to_encoding), in CreateConversionCommand() 138 from_encoding, to_encoding, funcoid, stmt->def); in CreateConversionCommand()
|
/dports/databases/postgresql14-plpython/postgresql-14.1/src/backend/commands/ |
H A D | conversioncmds.c | 43 int to_encoding; in CreateConversionCommand() local 70 to_encoding = pg_char_to_encoding(to_encoding_name); in CreateConversionCommand() 71 if (to_encoding < 0) in CreateConversionCommand() 84 if (from_encoding == PG_SQL_ASCII || to_encoding == PG_SQL_ASCII) in CreateConversionCommand() 117 Int32GetDatum(to_encoding), in CreateConversionCommand() 138 from_encoding, to_encoding, funcoid, stmt->def); in CreateConversionCommand()
|
/dports/databases/postgresql14-client/postgresql-14.1/src/backend/commands/ |
H A D | conversioncmds.c | 43 int to_encoding; in CreateConversionCommand() local 70 to_encoding = pg_char_to_encoding(to_encoding_name); in CreateConversionCommand() 71 if (to_encoding < 0) in CreateConversionCommand() 84 if (from_encoding == PG_SQL_ASCII || to_encoding == PG_SQL_ASCII) in CreateConversionCommand() 117 Int32GetDatum(to_encoding), in CreateConversionCommand() 138 from_encoding, to_encoding, funcoid, stmt->def); in CreateConversionCommand()
|
/dports/databases/postgresql14-docs/postgresql-14.1/src/backend/commands/ |
H A D | conversioncmds.c | 43 int to_encoding; in CreateConversionCommand() local 70 to_encoding = pg_char_to_encoding(to_encoding_name); in CreateConversionCommand() 71 if (to_encoding < 0) in CreateConversionCommand() 84 if (from_encoding == PG_SQL_ASCII || to_encoding == PG_SQL_ASCII) in CreateConversionCommand() 117 Int32GetDatum(to_encoding), in CreateConversionCommand() 138 from_encoding, to_encoding, funcoid, stmt->def); in CreateConversionCommand()
|
/dports/databases/postgresql14-contrib/postgresql-14.1/src/backend/commands/ |
H A D | conversioncmds.c | 43 int to_encoding; in CreateConversionCommand() local 70 to_encoding = pg_char_to_encoding(to_encoding_name); in CreateConversionCommand() 71 if (to_encoding < 0) in CreateConversionCommand() 84 if (from_encoding == PG_SQL_ASCII || to_encoding == PG_SQL_ASCII) in CreateConversionCommand() 117 Int32GetDatum(to_encoding), in CreateConversionCommand() 138 from_encoding, to_encoding, funcoid, stmt->def); in CreateConversionCommand()
|