diff options
author | bar@bar.intranet.mysql.r18.ru <> | 2006-11-03 10:29:44 +0400 |
---|---|---|
committer | bar@bar.intranet.mysql.r18.ru <> | 2006-11-03 10:29:44 +0400 |
commit | 88034969030110debffcbd616296b8b2ee55b71b (patch) | |
tree | ff19959abc0e07bddc35e7501eb6079757331ce7 /strings/ctype-simple.c | |
parent | 8748cde937faecb74c4ac001e67c1dcb2d5207df (diff) | |
parent | c378d3a1ecead4c7273287e52778aa64eba4ee8d (diff) | |
download | mariadb-git-88034969030110debffcbd616296b8b2ee55b71b.tar.gz |
Merge mysql.com:/usr/home/bar/mysql-5.0-rpl
into mysql.com:/usr/home/bar/mysql-5.1-rpl
Diffstat (limited to 'strings/ctype-simple.c')
-rw-r--r-- | strings/ctype-simple.c | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/strings/ctype-simple.c b/strings/ctype-simple.c index 9b45d5a03b7..9d10ba82114 100644 --- a/strings/ctype-simple.c +++ b/strings/ctype-simple.c @@ -188,20 +188,26 @@ int my_strnncollsp_simple(CHARSET_INFO * cs, const uchar *a, uint a_length, } -void my_caseup_str_8bit(CHARSET_INFO * cs,char *str) +uint my_caseup_str_8bit(CHARSET_INFO * cs,char *str) { - register uchar *map=cs->to_upper; - while ((*str = (char) map[(uchar) *str]) != 0) + register uchar *map= cs->to_upper; + char *str_orig= str; + while ((*str= (char) map[(uchar) *str]) != 0) str++; + return str - str_orig; } -void my_casedn_str_8bit(CHARSET_INFO * cs,char *str) + +uint my_casedn_str_8bit(CHARSET_INFO * cs,char *str) { - register uchar *map=cs->to_lower; - while ((*str = (char) map[(uchar)*str]) != 0) + register uchar *map= cs->to_lower; + char *str_orig= str; + while ((*str= (char) map[(uchar) *str]) != 0) str++; + return str - str_orig; } + uint my_caseup_8bit(CHARSET_INFO * cs, char *src, uint srclen, char *dst __attribute__((unused)), uint dstlen __attribute__((unused))) |