summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorbar@bar.intranet.mysql.r18.ru <>2004-02-06 16:59:25 +0400
committerbar@bar.intranet.mysql.r18.ru <>2004-02-06 16:59:25 +0400
commitd13ad0822e606888737353740612c4ebfc4ab25d (patch)
tree1de54a5d40a817616ee8991ff03ebb355c4f1d18 /include
parentd200443bed85b2647da0729904a2e2d9449e16a8 (diff)
downloadmariadb-git-d13ad0822e606888737353740612c4ebfc4ab25d.tar.gz
Problem fix:
http://bugs.mysql.com/bug.php?id=2366 Wrong utf8 behaviour when data is trancated
Diffstat (limited to 'include')
-rw-r--r--include/m_ctype.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/m_ctype.h b/include/m_ctype.h
index 4a9415f43f9..88c3418fc0d 100644
--- a/include/m_ctype.h
+++ b/include/m_ctype.h
@@ -144,6 +144,8 @@ typedef struct my_charset_handler_st
int (*mbcharlen)(struct charset_info_st *, uint);
uint (*numchars)(struct charset_info_st *, const char *b, const char *e);
uint (*charpos)(struct charset_info_st *, const char *b, const char *e, uint pos);
+ uint (*wellformedlen)(struct charset_info_st *,
+ const char *b,const char *e, uint nchars);
uint (*lengthsp)(struct charset_info_st *, const char *ptr, uint length);
/* Unicode convertion */
@@ -311,6 +313,7 @@ int my_wildcmp_8bit(CHARSET_INFO *,
uint my_numchars_8bit(CHARSET_INFO *, const char *b, const char *e);
uint my_charpos_8bit(CHARSET_INFO *, const char *b, const char *e, uint pos);
+uint my_wellformedlen_8bit(CHARSET_INFO *, const char *b, const char *e, uint pos);
int my_mbcharlen_8bit(CHARSET_INFO *, uint c);
@@ -327,6 +330,7 @@ int my_wildcmp_mb(CHARSET_INFO *,
int escape, int w_one, int w_many);
uint my_numchars_mb(CHARSET_INFO *, const char *b, const char *e);
uint my_charpos_mb(CHARSET_INFO *, const char *b, const char *e, uint pos);
+uint my_wellformedlen_mb(CHARSET_INFO *, const char *b, const char *e, uint pos);
uint my_instr_mb(struct charset_info_st *,
const char *b, uint b_length,
const char *s, uint s_length,