diff options
author | bar@bar.mysql.r18.ru <> | 2002-11-13 17:13:29 +0400 |
---|---|---|
committer | bar@bar.mysql.r18.ru <> | 2002-11-13 17:13:29 +0400 |
commit | ae7d6838b26660e19f398c503aa6879fe6731693 (patch) | |
tree | ac51f8204a2054cf259d00f873f6bd37b3c1ed92 /include | |
parent | 9ef972fd2cb8e0b147ebc8068299a32f4ea528b6 (diff) | |
download | mariadb-git-ae7d6838b26660e19f398c503aa6879fe6731693.tar.gz |
Preparing to embed string to number conversion functions into charset structure
Diffstat (limited to 'include')
-rw-r--r-- | include/m_ctype.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/m_ctype.h b/include/m_ctype.h index 6a964bf3b97..fd10d7325c2 100644 --- a/include/m_ctype.h +++ b/include/m_ctype.h @@ -118,6 +118,12 @@ typedef struct charset_info_st /* Charset dependant snprintf() */ int (*snprintf)(struct charset_info_st *, char *to, uint n, const char *fmt, ...); + long (*strtol)(struct charset_info_st *, const char *s, char **e, int base); + ulong (*strtoul)(struct charset_info_st *, const char *s, char **e, int base); + longlong (*strtoll)(struct charset_info_st *, const char *s, char **e, int base); + ulonglong (*strtoull)(struct charset_info_st *, const char *s, char **e, int base); + double (*strtod)(struct charset_info_st *, const char *s, char **e); + } CHARSET_INFO; @@ -156,6 +162,13 @@ int my_wc_mb_8bit(CHARSET_INFO *cs,my_wc_t wc, uchar *s, uchar *e); int my_snprintf_8bit(struct charset_info_st *, char *to, uint n, const char *fmt, ...); +long my_strtol_8bit(CHARSET_INFO *, const char *s, char **e, int base); +ulong my_strtoul_8bit(CHARSET_INFO *, const char *s, char **e, int base); +longlong my_strtoll_8bit(CHARSET_INFO *, const char *s, char **e, int base); +ulonglong my_strtoull_8bit(CHARSET_INFO *, const char *s, char **e, int base); +double my_strtod_8bit(CHARSET_INFO *, const char *s, char **e); + + #ifdef USE_MB /* Functions for multibyte charsets */ |