~drizzle-trunk/drizzle/development

1 by brian
clean slate
1
/* Copyright (C) 2000 MySQL AB
2
3
   This program is free software; you can redistribute it and/or modify
4
   it under the terms of the GNU General Public License as published by
5
   the Free Software Foundation; version 2 of the License.
6
7
   This program is distributed in the hope that it will be useful,
8
   but WITHOUT ANY WARRANTY; without even the implied warranty of
9
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10
   GNU General Public License for more details.
11
12
   You should have received a copy of the GNU General Public License
13
   along with this program; if not, write to the Free Software
14
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
15
1280.1.10 by Monty Taylor
Put everything in drizzled into drizzled namespace.
16
#include "config.h"
1241.9.64 by Monty Taylor
Moved remaining non-public portions of mysys and mystrings to drizzled/internal.
17
#include "drizzled/internal/m_string.h"
1241.9.61 by Monty Taylor
No more mystrings in drizzled/
18
#include "drizzled/charset_info.h"
1 by brian
clean slate
19
1280.1.10 by Monty Taylor
Put everything in drizzled into drizzled namespace.
20
namespace drizzled
21
{
1 by brian
clean slate
22
23
/*
24
25
  This files implements routines which parse XML based
26
  character set and collation description files.
660.1.3 by Eric Herman
removed trailing whitespace with simple script:
27
1 by brian
clean slate
28
  Unicode collations are encoded according to
660.1.3 by Eric Herman
removed trailing whitespace with simple script:
29
1 by brian
clean slate
30
    Unicode Technical Standard #35
31
    Locale Data Markup Language (LDML)
32
    http://www.unicode.org/reports/tr35/
660.1.3 by Eric Herman
removed trailing whitespace with simple script:
33
1 by brian
clean slate
34
  and converted into ICU string according to
660.1.3 by Eric Herman
removed trailing whitespace with simple script:
35
1 by brian
clean slate
36
    Collation Customization
37
    http://oss.software.ibm.com/icu/userguide/Collate_Customization.html
660.1.3 by Eric Herman
removed trailing whitespace with simple script:
38
1 by brian
clean slate
39
*/
40
41
42
#define MY_CS_CSDESCR_SIZE	64
43
#define MY_CS_TAILORING_SIZE	1024
44
45
typedef struct my_cs_file_info
46
{
47
  char   csname[MY_CS_NAME_SIZE];
48
  char   name[MY_CS_NAME_SIZE];
481 by Brian Aker
Remove all of uchar.
49
  unsigned char  ctype[MY_CS_CTYPE_TABLE_SIZE];
50
  unsigned char  to_lower[MY_CS_TO_LOWER_TABLE_SIZE];
51
  unsigned char  to_upper[MY_CS_TO_UPPER_TABLE_SIZE];
52
  unsigned char  sort_order[MY_CS_SORT_ORDER_TABLE_SIZE];
206 by Brian Aker
Removed final uint dead types.
53
  uint16_t tab_to_uni[MY_CS_TO_UNI_TABLE_SIZE];
1 by brian
clean slate
54
  char   comment[MY_CS_CSDESCR_SIZE];
55
  char   tailoring[MY_CS_TAILORING_SIZE];
56
  size_t tailoring_length;
57
  CHARSET_INFO cs;
58
  int (*add_collation)(CHARSET_INFO *cs);
59
} MY_CHARSET_LOADER;
1280.1.10 by Monty Taylor
Put everything in drizzled into drizzled namespace.
60
61
} /* namespace drizzled */