~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/charset-def.cc

  • Committer: Monty Taylor
  • Date: 2010-12-24 02:13:05 UTC
  • mto: This revision was merged to the branch mainline in revision 2038.
  • Revision ID: mordred@inaugust.com-20101224021305-e3slv1cyjczqorij
Changed the bzrignore file.

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., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
15
 
 
16
 
#include "mysys_priv.h"
 
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
{
17
22
 
18
23
/*
19
24
  Include all compiled character sets into the client
21
26
  init_compiled_charsets() that only adds those that he wants
22
27
*/
23
28
 
24
 
#ifdef HAVE_CHARSET_utf8mb4
25
29
extern CHARSET_INFO my_charset_utf8mb4_icelandic_uca_ci;
26
30
extern CHARSET_INFO my_charset_utf8mb4_latvian_uca_ci;
27
31
extern CHARSET_INFO my_charset_utf8mb4_romanian_uca_ci;
41
45
extern CHARSET_INFO my_charset_utf8mb4_esperanto_uca_ci;
42
46
extern CHARSET_INFO my_charset_utf8mb4_hungarian_uca_ci;
43
47
extern CHARSET_INFO my_charset_utf8mb4_sinhala_uca_ci;
44
 
#endif /* HAVE_CHARSET_utf8mb4 */
45
 
 
46
 
 
47
 
bool init_compiled_charsets(myf flags __attribute__((unused)))
 
48
 
 
49
 
 
50
bool init_compiled_charsets(myf)
48
51
{
49
 
  CHARSET_INFO *cs;
50
 
 
51
52
  add_compiled_collation(&my_charset_bin);
52
 
  add_compiled_collation(&my_charset_filename);
53
53
 
54
 
#ifdef HAVE_CHARSET_utf8mb4
55
54
  add_compiled_collation(&my_charset_utf8mb4_general_ci);
56
55
  add_compiled_collation(&my_charset_utf8mb4_bin);
57
56
  add_compiled_collation(&my_charset_utf8mb4_unicode_ci);
74
73
  add_compiled_collation(&my_charset_utf8mb4_esperanto_uca_ci);
75
74
  add_compiled_collation(&my_charset_utf8mb4_hungarian_uca_ci);
76
75
  add_compiled_collation(&my_charset_utf8mb4_sinhala_uca_ci);
77
 
#endif /* HAVE_CHARSET_utf8mb4 */
78
76
 
79
 
  /* Copy compiled charsets */
80
 
  for (cs=compiled_charsets; cs->name; cs++)
81
 
    add_compiled_collation(cs);
82
 
  
83
77
  return false;
84
78
}
 
79
 
 
80
} /* namespace drizzled */