summaryrefslogtreecommitdiff
path: root/strings/CHARSET_INFO.txt
diff options
context:
space:
mode:
authorbar@mysql.com <>2004-10-21 15:11:01 +0500
committerbar@mysql.com <>2004-10-21 15:11:01 +0500
commitaec49dae4d0d2c2c9c5a6d91b6839d2550dc325d (patch)
tree391a59fb56f5f0290b54df71ff2c2443c5c8fb8a /strings/CHARSET_INFO.txt
parent636ddd4128536e14292daa23c1b78f285145f6f8 (diff)
downloadmariadb-git-aec49dae4d0d2c2c9c5a6d91b6839d2550dc325d.tar.gz
CHARSET_INFO.txt:
New comments about ctype[].
Diffstat (limited to 'strings/CHARSET_INFO.txt')
-rw-r--r--strings/CHARSET_INFO.txt11
1 files changed, 10 insertions, 1 deletions
diff --git a/strings/CHARSET_INFO.txt b/strings/CHARSET_INFO.txt
index 883000e7ade..b0a6271e4c8 100644
--- a/strings/CHARSET_INFO.txt
+++ b/strings/CHARSET_INFO.txt
@@ -74,7 +74,16 @@ Conversion tables
ctype - pointer to array[257] of "type of characters"
bit mask for each chatacter, e.g. if a
character is a digit or a letter or a separator, etc.
- to_lower - pointer to arrat[256] used in LCASE()
+
+ Monty 2004-10-21:
+ If you look at the macros, we use ctype[(char)+1].
+ ctype[0] is traditionally in most ctype libraries
+ reserved for EOF (-1). The idea is that you can use
+ the result from fgetc() directly with ctype[]. As
+ we have to be compatible with external ctype[] versions,
+ it's better to do it the same way as they do...
+
+ to_lower - pointer to array[256] used in LCASE()
to_upper - pointer to array[256] used in UCASE()
sort_order - pointer to array[256] used for strings comparison