~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/charset-def.cc

  • Committer: Brian Aker
  • Date: 2009-02-21 00:18:15 UTC
  • Revision ID: brian@tangent.org-20090221001815-x20e8h71e984lvs1
Completion (?) of uint conversion.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
 
12
12
   You should have received a copy of the GNU General Public License
13
13
   along with this program; if not, write to the Free Software
14
 
   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA */
15
 
 
16
 
#include "config.h"
17
 
#include "drizzled/charset.h"
18
 
#include "drizzled/charset_info.h"
19
 
 
20
 
namespace drizzled
21
 
{
 
14
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
 
15
 
 
16
#include "mysys_priv.h"
22
17
 
23
18
/*
24
19
  Include all compiled character sets into the client
26
21
  init_compiled_charsets() that only adds those that he wants
27
22
*/
28
23
 
 
24
#ifdef HAVE_CHARSET_utf8mb4
29
25
extern CHARSET_INFO my_charset_utf8mb4_icelandic_uca_ci;
30
26
extern CHARSET_INFO my_charset_utf8mb4_latvian_uca_ci;
31
27
extern CHARSET_INFO my_charset_utf8mb4_romanian_uca_ci;
45
41
extern CHARSET_INFO my_charset_utf8mb4_esperanto_uca_ci;
46
42
extern CHARSET_INFO my_charset_utf8mb4_hungarian_uca_ci;
47
43
extern CHARSET_INFO my_charset_utf8mb4_sinhala_uca_ci;
 
44
#endif /* HAVE_CHARSET_utf8mb4 */
48
45
 
49
46
 
50
47
bool init_compiled_charsets(myf)
51
48
{
 
49
  CHARSET_INFO *cs;
 
50
 
52
51
  add_compiled_collation(&my_charset_bin);
 
52
  add_compiled_collation(&my_charset_filename);
53
53
 
 
54
#ifdef HAVE_CHARSET_utf8mb4
54
55
  add_compiled_collation(&my_charset_utf8mb4_general_ci);
55
56
  add_compiled_collation(&my_charset_utf8mb4_bin);
56
57
  add_compiled_collation(&my_charset_utf8mb4_unicode_ci);
73
74
  add_compiled_collation(&my_charset_utf8mb4_esperanto_uca_ci);
74
75
  add_compiled_collation(&my_charset_utf8mb4_hungarian_uca_ci);
75
76
  add_compiled_collation(&my_charset_utf8mb4_sinhala_uca_ci);
 
77
#endif /* HAVE_CHARSET_utf8mb4 */
 
78
 
 
79
  /* Copy compiled charsets */
 
80
  for (cs=compiled_charsets; cs->name; cs++)
 
81
    add_compiled_collation(cs);
76
82
 
77
83
  return false;
78
84
}
79
 
 
80
 
} /* namespace drizzled */