summaryrefslogtreecommitdiff
path: root/strings
diff options
context:
space:
mode:
authorunknown <bar@mysql.com/bar.intranet.mysql.r18.ru>2006-09-14 10:05:07 +0500
committerunknown <bar@mysql.com/bar.intranet.mysql.r18.ru>2006-09-14 10:05:07 +0500
commit342dea0e3525e7944262f5cee330043d4e98aa5b (patch)
tree368c1407d2a6df34df363d64924ac3ea91c27916 /strings
parent4fd663b896bbbc22ff5b1aba805e460dfcc3d4e6 (diff)
downloadmariadb-git-342dea0e3525e7944262f5cee330043d4e98aa5b.tar.gz
Better comment text (thanks to SergeyP for suggestions made for the b#20471 patch)
Diffstat (limited to 'strings')
-rw-r--r--strings/ctype-mb.c21
1 files changed, 14 insertions, 7 deletions
diff --git a/strings/ctype-mb.c b/strings/ctype-mb.c
index 6f63592c459..bcbc128fc5c 100644
--- a/strings/ctype-mb.c
+++ b/strings/ctype-mb.c
@@ -449,13 +449,20 @@ static void my_hash_sort_mb_bin(CHARSET_INFO *cs __attribute__((unused)),
/*
- Write max key:
-- for non-Unicode character sets:
- just set to 255.
-- for Unicode character set (utf-8):
- create a buffer with multibyte
- representation of the max_sort_char character,
- and copy it into max_str in a loop.
+ Fill the given buffer with 'maximum character' for given charset
+ SYNOPSIS
+ pad_max_char()
+ cs Character set
+ str Start of buffer to fill
+ end End of buffer to fill
+
+ DESCRIPTION
+ Write max key:
+ - for non-Unicode character sets:
+ just set to 255.
+ - for Unicode character set (utf-8):
+ create a buffer with multibyte representation of the max_sort_char
+ character, and copy it into max_str in a loop.
*/
static void pad_max_char(CHARSET_INFO *cs, char *str, char *end)
{