~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
1802.10.2 by Monty Taylor
Update all of the copyright headers to include the correct address.
14
   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA */
1 by brian
clean slate
15
1241.9.57 by Monty Taylor
Oy. Bigger change than I normally like - but this stuff is all intertwined.
16
#include "config.h"
17
#include "drizzled/charset.h"
1241.9.61 by Monty Taylor
No more mystrings in drizzled/
18
#include "drizzled/charset_info.h"
1241.9.57 by Monty Taylor
Oy. Bigger change than I normally like - but this stuff is all intertwined.
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
  Include all compiled character sets into the client
25
  If a client don't want to use all of them, he can define his own
26
  init_compiled_charsets() that only adds those that he wants
27
*/
28
29
extern CHARSET_INFO my_charset_utf8mb4_icelandic_uca_ci;
30
extern CHARSET_INFO my_charset_utf8mb4_latvian_uca_ci;
31
extern CHARSET_INFO my_charset_utf8mb4_romanian_uca_ci;
32
extern CHARSET_INFO my_charset_utf8mb4_slovenian_uca_ci;
33
extern CHARSET_INFO my_charset_utf8mb4_polish_uca_ci;
34
extern CHARSET_INFO my_charset_utf8mb4_estonian_uca_ci;
35
extern CHARSET_INFO my_charset_utf8mb4_spanish_uca_ci;
36
extern CHARSET_INFO my_charset_utf8mb4_swedish_uca_ci;
37
extern CHARSET_INFO my_charset_utf8mb4_turkish_uca_ci;
38
extern CHARSET_INFO my_charset_utf8mb4_czech_uca_ci;
39
extern CHARSET_INFO my_charset_utf8mb4_danish_uca_ci;
40
extern CHARSET_INFO my_charset_utf8mb4_lithuanian_uca_ci;
41
extern CHARSET_INFO my_charset_utf8mb4_slovak_uca_ci;
42
extern CHARSET_INFO my_charset_utf8mb4_spanish2_uca_ci;
43
extern CHARSET_INFO my_charset_utf8mb4_roman_uca_ci;
44
extern CHARSET_INFO my_charset_utf8mb4_persian_uca_ci;
45
extern CHARSET_INFO my_charset_utf8mb4_esperanto_uca_ci;
46
extern CHARSET_INFO my_charset_utf8mb4_hungarian_uca_ci;
47
extern CHARSET_INFO my_charset_utf8mb4_sinhala_uca_ci;
48
49
632.1.11 by Monty Taylor
Fixed Sun Studio warnings in mysys.
50
bool init_compiled_charsets(myf)
1 by brian
clean slate
51
{
52
  add_compiled_collation(&my_charset_bin);
53
54
  add_compiled_collation(&my_charset_utf8mb4_general_ci);
55
  add_compiled_collation(&my_charset_utf8mb4_bin);
56
  add_compiled_collation(&my_charset_utf8mb4_unicode_ci);
57
  add_compiled_collation(&my_charset_utf8mb4_icelandic_uca_ci);
58
  add_compiled_collation(&my_charset_utf8mb4_latvian_uca_ci);
59
  add_compiled_collation(&my_charset_utf8mb4_romanian_uca_ci);
60
  add_compiled_collation(&my_charset_utf8mb4_slovenian_uca_ci);
61
  add_compiled_collation(&my_charset_utf8mb4_polish_uca_ci);
62
  add_compiled_collation(&my_charset_utf8mb4_estonian_uca_ci);
63
  add_compiled_collation(&my_charset_utf8mb4_spanish_uca_ci);
64
  add_compiled_collation(&my_charset_utf8mb4_swedish_uca_ci);
65
  add_compiled_collation(&my_charset_utf8mb4_turkish_uca_ci);
66
  add_compiled_collation(&my_charset_utf8mb4_czech_uca_ci);
67
  add_compiled_collation(&my_charset_utf8mb4_danish_uca_ci);
68
  add_compiled_collation(&my_charset_utf8mb4_lithuanian_uca_ci);
69
  add_compiled_collation(&my_charset_utf8mb4_slovak_uca_ci);
70
  add_compiled_collation(&my_charset_utf8mb4_spanish2_uca_ci);
71
  add_compiled_collation(&my_charset_utf8mb4_roman_uca_ci);
72
  add_compiled_collation(&my_charset_utf8mb4_persian_uca_ci);
73
  add_compiled_collation(&my_charset_utf8mb4_esperanto_uca_ci);
74
  add_compiled_collation(&my_charset_utf8mb4_hungarian_uca_ci);
75
  add_compiled_collation(&my_charset_utf8mb4_sinhala_uca_ci);
76
163 by Brian Aker
Merge Monty's code.
77
  return false;
1 by brian
clean slate
78
}
1280.1.10 by Monty Taylor
Put everything in drizzled into drizzled namespace.
79
80
} /* namespace drizzled */