summaryrefslogtreecommitdiff
path: root/mysys/charset.c
diff options
context:
space:
mode:
authorunknown <bar@bar.mysql.r18.ru>2003-01-17 16:25:10 +0400
committerunknown <bar@bar.mysql.r18.ru>2003-01-17 16:25:10 +0400
commitee0f0a81da2cfa0fd897d5b64c3649aeed91be2a (patch)
tree535db173699fe99d674cdebe633e32c331e52ece /mysys/charset.c
parentf9d5ae0435397bf95875824bf1543433af0c6e32 (diff)
downloadmariadb-git-ee0f0a81da2cfa0fd897d5b64c3649aeed91be2a.tar.gz
Some comments have been added
XXX10_to_str were not inizialized
Diffstat (limited to 'mysys/charset.c')
-rw-r--r--mysys/charset.c22
1 files changed, 18 insertions, 4 deletions
diff --git a/mysys/charset.c b/mysys/charset.c
index 865441444bc..c5b2bcc2757 100644
--- a/mysys/charset.c
+++ b/mysys/charset.c
@@ -22,6 +22,17 @@
#include <my_xml.h>
+/*
+
+ The code below implements this functionality:
+
+ - Initializing charset related structures
+ - Loading dynamic charsets
+ - Searching for a proper CHARSET_INFO
+ using charset name, collation name or collatio ID
+ - Setting server default character set
+*/
+
static void set_max_sort_char(CHARSET_INFO *cs)
{
@@ -45,10 +56,13 @@ static void set_max_sort_char(CHARSET_INFO *cs)
static void simple_cs_init_functions(CHARSET_INFO *cs)
{
- cs->like_range = my_like_range_simple;
- cs->wildcmp = my_wildcmp_8bit;
+
cs->strnxfrm = my_strnxfrm_simple;
cs->strnncoll = my_strnncoll_simple;
+ cs->like_range = my_like_range_simple;
+ cs->wildcmp = my_wildcmp_8bit;
+ cs->mb_wc = my_mb_wc_8bit;
+ cs->wc_mb = my_wc_mb_8bit;
cs->caseup_str = my_caseup_str_8bit;
cs->casedn_str = my_casedn_str_8bit;
cs->caseup = my_caseup_8bit;
@@ -56,11 +70,11 @@ static void simple_cs_init_functions(CHARSET_INFO *cs)
cs->tosort = my_tosort_8bit;
cs->strcasecmp = my_strcasecmp_8bit;
cs->strncasecmp = my_strncasecmp_8bit;
- cs->mb_wc = my_mb_wc_8bit;
- cs->wc_mb = my_wc_mb_8bit;
cs->hash_caseup = my_hash_caseup_simple;
cs->hash_sort = my_hash_sort_simple;
cs->snprintf = my_snprintf_8bit;
+ cs->long10_to_str= my_long10_to_str_8bit;
+ cs->longlong10_to_str= my_longlong10_to_str_8bit;
cs->strntol = my_strntol_8bit;
cs->strntoul = my_strntoul_8bit;
cs->strntoll = my_strntoll_8bit;