/dports/www/anyterm/anyterm-1.1.29/libpbe/include/charset/ |
H A D | contig_sequence_conv.hh | 73 template< charset_t from_cs, charset_t to_cs, typename error_policy, typename OutputIterator > 74 struct sequence_conv< from_cs, to_cs, error_policy, 78 && charset_traits<to_cs>::is_ascii_superset >::type 86 typename charset_traits<to_cs>::state_t& to_state) in operator ()() 105 *(result++) = char_conv<from_cs,to_cs,error_policy>()(*first,from_state,to_state); in operator ()() 115 template <charset_t from_cs, charset_t to_cs, typename error_policy, typename OutputIterator> 116 struct sequence_conv< from_cs, to_cs, error_policy, 122 && charset_traits<to_cs>::is_ascii_superset >::type 133 typename charset_traits<to_cs>::state_t& to_state) in operator ()() 135 sequence_conv< from_cs,to_cs,error_policy, in operator ()()
|
H A D | char_conv.hh | 63 template <charset_t from_cs, charset_t to_cs, typename error_policy> 68 BOOST_STATIC_ASSERT(from_cs!=cs::ucs4 && to_cs!=cs::ucs4); 71 typename charset_traits<to_cs>::char_t 75 typename charset_traits<to_cs>::state_t& to_state in operator ()() 76 = charset_traits<to_cs>::state_t() ) in operator ()() 80 return char_conv<cs::ucs4, to_cs, error_policy>() (tmp,ucs4_state,to_state); in operator ()()
|
/dports/databases/xtrabackup8/percona-xtrabackup-8.0.14/sql-common/ |
H A D | sql_string.cc | 269 if (!to_cs || (to_cs == &my_charset_bin) || (to_cs == from_cs) || in needs_conversion() 270 my_charset_same(from_cs, to_cs) || in needs_conversion() 398 m_charset = to_cs; in copy() 829 (to_cs == from_cs) || my_charset_same(from_cs, to_cs)) { in well_formed_copy_nchars() 837 if (to_cs == &my_charset_bin) { in well_formed_copy_nchars() 866 if (to_cs->cset->well_formed_len(to_cs, to, to + to_cs->mbminlen, 1, in well_formed_copy_nchars() 868 to_cs->mbminlen) { in well_formed_copy_nchars() 876 to += to_cs->mbminlen; in well_formed_copy_nchars() 877 to_length -= to_cs->mbminlen; in well_formed_copy_nchars() 886 if (to_cs->mbmaxlen > 1 && to_cs->mbmaxlen == to_cs->mbminlen) in well_formed_copy_nchars() [all …]
|
/dports/databases/mysql55-client/mysql-5.5.62/sql/ |
H A D | sql_string.cc | 211 CHARSET_INFO *to_cs, in needs_conversion() argument 215 if (!to_cs || in needs_conversion() 216 (to_cs == &my_charset_bin) || in needs_conversion() 217 (to_cs == from_cs) || in needs_conversion() 360 str_charset=to_cs; in copy() 1026 (to_cs == from_cs) || in well_formed_copy_nchars() 1037 if (to_cs == &my_charset_bin) in well_formed_copy_nchars() 1070 if (to_cs->cset->well_formed_len(to_cs, in well_formed_copy_nchars() 1082 to+= to_cs->mbminlen; in well_formed_copy_nchars() 1087 res= to_cs->cset->well_formed_len(to_cs, from, from + from_length, in well_formed_copy_nchars() [all …]
|
/dports/databases/percona56-client/percona-server-5.6.51-91.0/sql/ |
H A D | sql_string.cc | 234 const CHARSET_INFO *to_cs, in needs_conversion() argument 238 if (!to_cs || in needs_conversion() 239 (to_cs == &my_charset_bin) || in needs_conversion() 240 (to_cs == from_cs) || in needs_conversion() 383 str_charset=to_cs; in copy() 960 (to_cs == from_cs) || in well_formed_copy_nchars() 971 if (to_cs == &my_charset_bin) in well_formed_copy_nchars() 1004 if (to_cs->cset->well_formed_len(to_cs, in well_formed_copy_nchars() 1016 to+= to_cs->mbminlen; in well_formed_copy_nchars() 1021 res= to_cs->cset->well_formed_len(to_cs, from, from + from_length, in well_formed_copy_nchars() [all …]
|
/dports/databases/percona-pam-for-mysql/percona-server-5.6.51-91.0/sql/ |
H A D | sql_string.cc | 234 const CHARSET_INFO *to_cs, in needs_conversion() argument 238 if (!to_cs || in needs_conversion() 239 (to_cs == &my_charset_bin) || in needs_conversion() 240 (to_cs == from_cs) || in needs_conversion() 383 str_charset=to_cs; in copy() 960 (to_cs == from_cs) || in well_formed_copy_nchars() 971 if (to_cs == &my_charset_bin) in well_formed_copy_nchars() 1004 if (to_cs->cset->well_formed_len(to_cs, in well_formed_copy_nchars() 1016 to+= to_cs->mbminlen; in well_formed_copy_nchars() 1021 res= to_cs->cset->well_formed_len(to_cs, from, from + from_length, in well_formed_copy_nchars() [all …]
|
/dports/databases/percona57-server/percona-server-5.7.36-39/sql-common/ |
H A D | sql_string.cc | 305 const CHARSET_INFO *to_cs, in needs_conversion() argument 309 if (!to_cs || in needs_conversion() 310 (to_cs == &my_charset_bin) || in needs_conversion() 311 (to_cs == from_cs) || in needs_conversion() 454 m_charset= to_cs; in copy() 999 (to_cs == from_cs) || in well_formed_copy_nchars() 1010 if (to_cs == &my_charset_bin) in well_formed_copy_nchars() 1043 if (to_cs->cset->well_formed_len(to_cs, in well_formed_copy_nchars() 1055 to+= to_cs->mbminlen; in well_formed_copy_nchars() 1060 res= to_cs->cset->well_formed_len(to_cs, from, from + from_length, in well_formed_copy_nchars() [all …]
|
/dports/databases/mysqlwsrep57-server/mysql-wsrep-wsrep_5.7.35-25.27/sql-common/ |
H A D | sql_string.cc | 305 const CHARSET_INFO *to_cs, in needs_conversion() argument 309 if (!to_cs || in needs_conversion() 310 (to_cs == &my_charset_bin) || in needs_conversion() 311 (to_cs == from_cs) || in needs_conversion() 454 m_charset= to_cs; in copy() 999 (to_cs == from_cs) || in well_formed_copy_nchars() 1010 if (to_cs == &my_charset_bin) in well_formed_copy_nchars() 1043 if (to_cs->cset->well_formed_len(to_cs, in well_formed_copy_nchars() 1055 to+= to_cs->mbminlen; in well_formed_copy_nchars() 1060 res= to_cs->cset->well_formed_len(to_cs, from, from + from_length, in well_formed_copy_nchars() [all …]
|
/dports/databases/percona57-client/percona-server-5.7.36-39/sql-common/ |
H A D | sql_string.cc | 305 const CHARSET_INFO *to_cs, in needs_conversion() argument 309 if (!to_cs || in needs_conversion() 310 (to_cs == &my_charset_bin) || in needs_conversion() 311 (to_cs == from_cs) || in needs_conversion() 454 m_charset= to_cs; in copy() 999 (to_cs == from_cs) || in well_formed_copy_nchars() 1010 if (to_cs == &my_charset_bin) in well_formed_copy_nchars() 1043 if (to_cs->cset->well_formed_len(to_cs, in well_formed_copy_nchars() 1055 to+= to_cs->mbminlen; in well_formed_copy_nchars() 1060 res= to_cs->cset->well_formed_len(to_cs, from, from + from_length, in well_formed_copy_nchars() [all …]
|
/dports/databases/percona57-pam-for-mysql/percona-server-5.7.36-39/sql-common/ |
H A D | sql_string.cc | 305 const CHARSET_INFO *to_cs, in needs_conversion() argument 309 if (!to_cs || in needs_conversion() 310 (to_cs == &my_charset_bin) || in needs_conversion() 311 (to_cs == from_cs) || in needs_conversion() 454 m_charset= to_cs; in copy() 999 (to_cs == from_cs) || in well_formed_copy_nchars() 1010 if (to_cs == &my_charset_bin) in well_formed_copy_nchars() 1043 if (to_cs->cset->well_formed_len(to_cs, in well_formed_copy_nchars() 1055 to+= to_cs->mbminlen; in well_formed_copy_nchars() 1060 res= to_cs->cset->well_formed_len(to_cs, from, from + from_length, in well_formed_copy_nchars() [all …]
|
/dports/databases/xtrabackup/percona-xtrabackup-2.4.21/sql-common/ |
H A D | sql_string.cc | 305 const CHARSET_INFO *to_cs, in needs_conversion() argument 309 if (!to_cs || in needs_conversion() 310 (to_cs == &my_charset_bin) || in needs_conversion() 311 (to_cs == from_cs) || in needs_conversion() 454 m_charset= to_cs; in copy() 999 (to_cs == from_cs) || in well_formed_copy_nchars() 1010 if (to_cs == &my_charset_bin) in well_formed_copy_nchars() 1043 if (to_cs->cset->well_formed_len(to_cs, in well_formed_copy_nchars() 1055 to+= to_cs->mbminlen; in well_formed_copy_nchars() 1060 res= to_cs->cset->well_formed_len(to_cs, from, from + from_length, in well_formed_copy_nchars() [all …]
|
/dports/databases/percona56-server/percona-server-5.6.51-91.0/sql/ |
H A D | sql_string.cc | 234 const CHARSET_INFO *to_cs, in needs_conversion() argument 238 if (!to_cs || in needs_conversion() 239 (to_cs == &my_charset_bin) || in needs_conversion() 240 (to_cs == from_cs) || in needs_conversion() 383 str_charset=to_cs; in copy() 960 (to_cs == from_cs) || in well_formed_copy_nchars() 971 if (to_cs == &my_charset_bin) in well_formed_copy_nchars() 1004 if (to_cs->cset->well_formed_len(to_cs, in well_formed_copy_nchars() 1016 to+= to_cs->mbminlen; in well_formed_copy_nchars() 1021 res= to_cs->cset->well_formed_len(to_cs, from, from + from_length, in well_formed_copy_nchars() [all …]
|
/dports/databases/mysqlwsrep56-server/mysql-wsrep-wsrep_5.6.51-25.33/sql/ |
H A D | sql_string.cc | 234 const CHARSET_INFO *to_cs, in needs_conversion() argument 238 if (!to_cs || in needs_conversion() 239 (to_cs == &my_charset_bin) || in needs_conversion() 240 (to_cs == from_cs) || in needs_conversion() 383 str_charset=to_cs; in copy() 960 (to_cs == from_cs) || in well_formed_copy_nchars() 971 if (to_cs == &my_charset_bin) in well_formed_copy_nchars() 1004 if (to_cs->cset->well_formed_len(to_cs, in well_formed_copy_nchars() 1016 to+= to_cs->mbminlen; in well_formed_copy_nchars() 1021 res= to_cs->cset->well_formed_len(to_cs, from, from + from_length, in well_formed_copy_nchars() [all …]
|
/dports/databases/mysql57-client/mysql-5.7.36/sql-common/ |
H A D | sql_string.cc | 305 const CHARSET_INFO *to_cs, in needs_conversion() argument 309 if (!to_cs || in needs_conversion() 310 (to_cs == &my_charset_bin) || in needs_conversion() 311 (to_cs == from_cs) || in needs_conversion() 454 m_charset= to_cs; in copy() 999 (to_cs == from_cs) || in well_formed_copy_nchars() 1010 if (to_cs == &my_charset_bin) in well_formed_copy_nchars() 1043 if (to_cs->cset->well_formed_len(to_cs, in well_formed_copy_nchars() 1055 to+= to_cs->mbminlen; in well_formed_copy_nchars() 1060 res= to_cs->cset->well_formed_len(to_cs, from, from + from_length, in well_formed_copy_nchars() [all …]
|
/dports/databases/mysql56-client/mysql-5.6.51/sql/ |
H A D | sql_string.cc | 234 const CHARSET_INFO *to_cs, in needs_conversion() argument 238 if (!to_cs || in needs_conversion() 239 (to_cs == &my_charset_bin) || in needs_conversion() 240 (to_cs == from_cs) || in needs_conversion() 383 str_charset=to_cs; in copy() 960 (to_cs == from_cs) || in well_formed_copy_nchars() 971 if (to_cs == &my_charset_bin) in well_formed_copy_nchars() 1004 if (to_cs->cset->well_formed_len(to_cs, in well_formed_copy_nchars() 1016 to+= to_cs->mbminlen; in well_formed_copy_nchars() 1021 res= to_cs->cset->well_formed_len(to_cs, from, from + from_length, in well_formed_copy_nchars() [all …]
|
/dports/databases/mariadb105-client/mariadb-10.5.15/sql/ |
H A D | sql_string.cc | 308 CHARSET_INFO *to_cs, in needs_conversion() argument 312 if (!to_cs || in needs_conversion() 313 (to_cs == &my_charset_bin) || in needs_conversion() 314 (to_cs == from_cs) || in needs_conversion() 315 my_charset_same(from_cs, to_cs) || in needs_conversion() 446 return copy(str, arg_length, to_cs); in copy() 453 size_t new_length= to_cs->mbmaxlen*arg_length; in copy() 458 set_charset(to_cs); in copy() 1109 if ((to_cs == &my_charset_bin) || in well_formed_copy() 1111 (to_cs == from_cs) || in well_formed_copy() [all …]
|
H A D | thr_malloc.cc | 72 CHARSET_INFO *to_cs, size_t *result_length) in sql_strmake_with_convert() argument 75 size_t new_length= to_cs->mbmaxlen*arg_length; in sql_strmake_with_convert() 82 if ((from_cs == &my_charset_bin) || (to_cs == &my_charset_bin)) in sql_strmake_with_convert() 91 new_length= copy_and_convert((char*) pos, new_length, to_cs, str, in sql_strmake_with_convert()
|
/dports/databases/mariadb105-server/mariadb-10.5.15/sql/ |
H A D | sql_string.cc | 308 CHARSET_INFO *to_cs, in needs_conversion() argument 312 if (!to_cs || in needs_conversion() 313 (to_cs == &my_charset_bin) || in needs_conversion() 314 (to_cs == from_cs) || in needs_conversion() 315 my_charset_same(from_cs, to_cs) || in needs_conversion() 446 return copy(str, arg_length, to_cs); in copy() 453 size_t new_length= to_cs->mbmaxlen*arg_length; in copy() 458 set_charset(to_cs); in copy() 1109 if ((to_cs == &my_charset_bin) || in well_formed_copy() 1111 (to_cs == from_cs) || in well_formed_copy() [all …]
|
/dports/databases/mariadb-connector-odbc/mariadb-connector-odbc-3.1.14-src/ |
H A D | ma_conv_charset.c | 89 … MARIADB_CHARSET_INFO *to_cs __attribute__((unused)), int *errorcode) in MADB_ConvertString() argument 104 !to_cs || !to_cs->encoding || !to_cs->encoding[0]) in MADB_ConvertString() 110 MADB_MapCharsetName(to_cs->encoding, 1, to_encoding, sizeof(to_encoding)); in MADB_ConvertString()
|
/dports/databases/mariadb104-server/mariadb-10.4.24/sql/ |
H A D | sql_string.cc | 308 CHARSET_INFO *to_cs, in needs_conversion() argument 312 if (!to_cs || in needs_conversion() 313 (to_cs == &my_charset_bin) || in needs_conversion() 314 (to_cs == from_cs) || in needs_conversion() 315 my_charset_same(from_cs, to_cs) || in needs_conversion() 446 return copy(str, arg_length, to_cs); in copy() 458 set_charset(to_cs); in copy() 1087 if ((to_cs == &my_charset_bin) || in well_formed_copy() 1089 (to_cs == from_cs) || in well_formed_copy() 1090 my_charset_same(from_cs, to_cs)) in well_formed_copy() [all …]
|
H A D | thr_malloc.cc | 73 CHARSET_INFO *to_cs, size_t *result_length) in sql_strmake_with_convert() argument 76 size_t new_length= to_cs->mbmaxlen*arg_length; in sql_strmake_with_convert() 83 if ((from_cs == &my_charset_bin) || (to_cs == &my_charset_bin)) in sql_strmake_with_convert() 92 new_length= copy_and_convert((char*) pos, new_length, to_cs, str, in sql_strmake_with_convert()
|
/dports/databases/mariadb104-client/mariadb-10.4.24/sql/ |
H A D | sql_string.cc | 308 CHARSET_INFO *to_cs, in needs_conversion() argument 312 if (!to_cs || in needs_conversion() 313 (to_cs == &my_charset_bin) || in needs_conversion() 314 (to_cs == from_cs) || in needs_conversion() 315 my_charset_same(from_cs, to_cs) || in needs_conversion() 446 return copy(str, arg_length, to_cs); in copy() 458 set_charset(to_cs); in copy() 1087 if ((to_cs == &my_charset_bin) || in well_formed_copy() 1089 (to_cs == from_cs) || in well_formed_copy() 1090 my_charset_same(from_cs, to_cs)) in well_formed_copy() [all …]
|
H A D | thr_malloc.cc | 73 CHARSET_INFO *to_cs, size_t *result_length) in sql_strmake_with_convert() argument 76 size_t new_length= to_cs->mbmaxlen*arg_length; in sql_strmake_with_convert() 83 if ((from_cs == &my_charset_bin) || (to_cs == &my_charset_bin)) in sql_strmake_with_convert() 92 new_length= copy_and_convert((char*) pos, new_length, to_cs, str, in sql_strmake_with_convert()
|
/dports/databases/mysql55-client/mysql-5.5.62/client/ |
H A D | sql_string.cc | 190 CHARSET_INFO *to_cs, in needs_conversion() argument 194 if (!to_cs || in needs_conversion() 195 (to_cs == &my_charset_bin) || in needs_conversion() 196 (to_cs == from_cs) || in needs_conversion() 197 my_charset_same(from_cs, to_cs) || in needs_conversion() 199 (!(*offset=(arg_length % to_cs->mbminlen))))) in needs_conversion() 279 return copy(str, arg_length, to_cs); in copy() 284 return copy_aligned(str, arg_length, offset, to_cs); in copy() 286 uint32 new_length= to_cs->mbmaxlen*arg_length; in copy() 291 str_charset=to_cs; in copy() [all …]
|
/dports/databases/mariadb103-server/mariadb-10.3.34/sql/ |
H A D | thr_malloc.cc | 73 CHARSET_INFO *to_cs, size_t *result_length) in sql_strmake_with_convert() argument 76 size_t new_length= to_cs->mbmaxlen*arg_length; in sql_strmake_with_convert() 83 if ((from_cs == &my_charset_bin) || (to_cs == &my_charset_bin)) in sql_strmake_with_convert() 92 new_length= copy_and_convert((char*) pos, new_length, to_cs, str, in sql_strmake_with_convert()
|