EFL 1.7 svn doobies
[profile/ivi/eina.git] / src / lib / eina_ustrbuf.c
1 #ifdef HAVE_CONFIG_H
2 # include "config.h"
3 #endif
4
5 #include "eina_strbuf_common.h"
6 #include "eina_unicode.h"
7 #include "eina_ustrbuf.h"
8
9 /*============================================================================*
10  *                                  Local                                     *
11  *============================================================================*/
12
13 /**
14  * @cond LOCAL
15  */
16
17 #ifdef _STRBUF_DATA_TYPE
18 # undef _STRBUF_DATA_TYPE
19 #endif
20
21 #ifdef _STRBUF_CSIZE
22 # undef _STRBUF_CSIZE
23 #endif
24
25 #ifdef _STRBUF_STRUCT_NAME
26 # undef _STRBUF_STRUCT_NAME
27 #endif
28
29 #ifdef _STRBUF_STRLEN_FUNC
30 # undef _STRBUF_STRLEN_FUNC
31 #endif
32
33 #ifdef _STRBUF_STRESCAPE_FUNC
34 # undef _STRBUF_STRESCAPE_FUNC
35 #endif
36
37 #ifdef _STRBUF_MAGIC
38 # undef _STRBUF_MAGIC
39 #endif
40
41 #ifdef _STRBUF_MAGIC_STR
42 # undef _STRBUF_MAGIC_STR
43 #endif
44
45 #ifdef _FUNC_EXPAND
46 # undef _FUNC_EXPAND
47 #endif
48
49 #define _STRBUF_DATA_TYPE         Eina_Unicode
50 #define _STRBUF_CSIZE             sizeof(_STRBUF_DATA_TYPE)
51 #define _STRBUF_STRUCT_NAME       Eina_UStrbuf
52 #define _STRBUF_STRLEN_FUNC(x)    eina_unicode_strlen(x)
53 #define _STRBUF_STRESCAPE_FUNC(x) eina_unicode_escape(x)
54 #define _STRBUF_MAGIC             EINA_MAGIC_USTRBUF
55 #define _STRBUF_MAGIC_STR         __USTRBUF_MAGIC_STR
56 static const char __USTRBUF_MAGIC_STR[] = "Eina UStrbuf";
57
58 #define _FUNC_EXPAND(y) eina_ustrbuf_ ## y
59
60 /**
61  * @endcond
62  */
63
64
65 /*============================================================================*
66  *                                 Global                                     *
67  *============================================================================*/
68
69
70 /*============================================================================*
71  *                                   API                                      *
72  *============================================================================*/
73
74 #include "eina_strbuf_template_c.x"