~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/charset.h

  • Committer: Brian Aker
  • Date: 2011-03-28 02:46:21 UTC
  • Revision ID: brian@tangent.org-20110328024621-wtkdtlvdplqm0ybf
Shift CHARSET_INFO to charset_info_st

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
namespace drizzled
28
28
{
29
29
 
30
 
typedef struct charset_info_st CHARSET_INFO;
 
30
struct charset_info_st;
31
31
 
32
 
extern DRIZZLED_API CHARSET_INFO *all_charsets[256];
33
 
extern CHARSET_INFO compiled_charsets[];
 
32
extern DRIZZLED_API charset_info_st *all_charsets[256];
 
33
extern charset_info_st compiled_charsets[];
34
34
 
35
35
extern uint32_t get_charset_number(const char *cs_name, uint32_t cs_flags);
36
36
extern uint32_t get_collation_number(const char *name);
37
37
extern const char *get_charset_name(uint32_t cs_number);
38
38
 
39
 
DRIZZLED_API const CHARSET_INFO *get_charset(uint32_t cs_number);
40
 
DRIZZLED_API const CHARSET_INFO *get_charset_by_name(const char *cs_name);
41
 
DRIZZLED_API const CHARSET_INFO *get_charset_by_csname(const char *cs_name, uint32_t cs_flags);
 
39
DRIZZLED_API const charset_info_st *get_charset(uint32_t cs_number);
 
40
DRIZZLED_API const charset_info_st *get_charset_by_name(const char *cs_name);
 
41
DRIZZLED_API const charset_info_st *get_charset_by_csname(const char *cs_name, uint32_t cs_flags);
42
42
 
43
43
extern bool resolve_charset(const char *cs_name,
44
 
                            const CHARSET_INFO *default_cs,
45
 
                            const CHARSET_INFO **cs);
 
44
                            const charset_info_st *default_cs,
 
45
                            const charset_info_st **cs);
46
46
extern bool resolve_collation(const char *cl_name,
47
 
                             const CHARSET_INFO *default_cl,
48
 
                             const CHARSET_INFO **cl);
 
47
                             const charset_info_st *default_cl,
 
48
                             const charset_info_st **cl);
49
49
 
50
50
extern void free_charsets(void);
51
51
extern char *get_charsets_dir(char *buf);
52
 
extern bool my_charset_same(const CHARSET_INFO *cs1, const CHARSET_INFO *cs2);
 
52
extern bool my_charset_same(const charset_info_st *cs1, const charset_info_st *cs2);
53
53
extern bool init_compiled_charsets(myf flags);
54
 
extern void add_compiled_collation(CHARSET_INFO *cs);
55
 
extern size_t escape_string_for_drizzle(const CHARSET_INFO *charset_info,
 
54
extern void add_compiled_collation(charset_info_st *cs);
 
55
extern size_t escape_string_for_drizzle(const charset_info_st *charset_info,
56
56
                                        char *to, size_t to_length,
57
57
                                        const char *from, size_t length);
58
 
extern size_t escape_quotes_for_drizzle(const CHARSET_INFO *charset_info,
 
58
extern size_t escape_quotes_for_drizzle(const charset_info_st *charset_info,
59
59
                                        char *to, size_t to_length,
60
60
                                        const char *from, size_t length);
61
61