Lines Matching refs:to_cs

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()
317 (!(*offset=(uint32)(arg_length % to_cs->mbminlen))))) in needs_conversion()
437 CHARSET_INFO *from_cs, CHARSET_INFO *to_cs, uint *errors) in copy() argument
443 if (!needs_conversion(arg_length, from_cs, to_cs, &offset)) in copy()
446 return copy(str, arg_length, to_cs); in copy()
451 return copy_aligned(str, arg_length, offset, to_cs); in copy()
453 size_t new_length= to_cs->mbmaxlen*arg_length; in copy()
456 str_length=copy_and_convert((char*) Ptr, new_length, to_cs, in copy()
458 set_charset(to_cs); in copy()
795 bool Binary_string::copy_printable_hhhh(CHARSET_INFO *to_cs, in copy_printable_hhhh() argument
802 uint one_escaped_char_length= MY_CS_PRINTABLE_CHAR_LENGTH * to_cs->mbminlen; in copy_printable_hhhh()
803 uint one_char_length= MY_MAX(one_escaped_char_length, to_cs->mbmaxlen); in copy_printable_hhhh()
807 str_length= my_convert_using_func(Ptr, Alloced_length, to_cs, in copy_printable_hhhh()
808 to_cs->cset->wc_to_printable, in copy_printable_hhhh()
1104 String_copier::well_formed_copy(CHARSET_INFO *to_cs, in well_formed_copy() argument
1109 if ((to_cs == &my_charset_bin) || in well_formed_copy()
1111 (to_cs == from_cs) || in well_formed_copy()
1112 my_charset_same(from_cs, to_cs)) in well_formed_copy()
1115 return (uint) to_cs->copy_fix(to, to_length, from, from_length, in well_formed_copy()
1118 return (uint) my_convert_fix(to_cs, to, to_length, from_cs, from, from_length, in well_formed_copy()