1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

Preparing to embed string to number conversion functions into charset structure

This commit is contained in:
bar@bar.mysql.r18.ru
2002-11-13 17:13:29 +04:00
parent 9ef972fd2c
commit ae7d6838b2
15 changed files with 270 additions and 13 deletions

View File

@ -244,3 +244,33 @@ void my_hash_sort_simple(CHARSET_INFO *cs,
nr2[0]+=3;
}
}
long my_strtol_8bit(CHARSET_INFO *cs __attribute__((unused)),
const char *s, char **e, int base)
{
return strtol(s,e,base);
}
ulong my_strtoul_8bit(CHARSET_INFO *cs __attribute__((unused)),
const char *s, char **e, int base)
{
return strtoul(s,e,base);
}
longlong my_strtoll_8bit(CHARSET_INFO *cs __attribute__((unused)),
const char *s, char **e, int base)
{
return strtoll(s,e,base);
}
ulonglong my_strtoull_8bit(CHARSET_INFO *cs __attribute__((unused)),
const char *s, char **e, int base)
{
return strtoul(s,e,base);
}
double my_strtod_8bit(CHARSET_INFO *cs __attribute__((unused)),
const char *s, char **e)
{
return strtod(s,e);
}