1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +03:00

Moving the conversion code from String::well_formed_copy()

to my_convert_fix() - a new function in /strings.
This commit is contained in:
Alexander Barkov
2015-03-16 12:14:31 +04:00
parent c4b268add0
commit f48dc5ccc7
4 changed files with 117 additions and 72 deletions

View File

@ -43,14 +43,13 @@ inline uint32 copy_and_convert(char *to, uint32 to_length,
}
class String_copier: private MY_STRCOPY_STATUS
class String_copier: private MY_STRCONV_STATUS
{
const char *m_cannot_convert_error_pos;
public:
const char *source_end_pos() const
{ return m_source_end_pos; }
{ return m_native_copy_status.m_source_end_pos; }
const char *well_formed_error_pos() const
{ return m_well_formed_error_pos; }
{ return m_native_copy_status.m_well_formed_error_pos; }
const char *cannot_convert_error_pos() const
{ return m_cannot_convert_error_pos; }
const char *most_important_error_pos() const