diff options
author | Sergei Golubchik <serg@mariadb.org> | 2019-09-06 11:53:10 +0200 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2019-09-06 11:53:10 +0200 |
commit | 244f0e6dd815b388282c15db4fe7f15533f4c8fc (patch) | |
tree | af138f2b3739a742c0c38173cdc86ec176fc0edd /sql/sql_string.h | |
parent | 18af13b88ba580562981a190c25da128a2e9db26 (diff) | |
parent | 2842c369851a8afc2a944ce6f4f60fa052f20969 (diff) | |
download | mariadb-git-244f0e6dd815b388282c15db4fe7f15533f4c8fc.tar.gz |
Merge branch '10.3' into 10.4
Diffstat (limited to 'sql/sql_string.h')
-rw-r--r-- | sql/sql_string.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sql/sql_string.h b/sql/sql_string.h index 10af5a9426f..605480461f1 100644 --- a/sql/sql_string.h +++ b/sql/sql_string.h @@ -144,6 +144,10 @@ public: { return m_charset->cset->numchars(m_charset, str, end); } + size_t lengthsp(const char *str, size_t length) const + { + return m_charset->cset->lengthsp(m_charset, str, length); + } size_t charpos(const char *str, const char *end, size_t pos) const { return m_charset->cset->charpos(m_charset, str, end, pos); @@ -916,6 +920,10 @@ public: return (int) i; return (int) Charset::charpos(ptr() + offset, end(), (size_t) i); } + size_t lengthsp() const + { + return Charset::lengthsp(Ptr, str_length); + } void print(String *to) const; void print_with_conversion(String *to, CHARSET_INFO *cs) const; |