2010-08-16 22:28:34 -07:00
|
|
|
#ifdef HAVE_CONFIG_H
|
|
|
|
# include "config.h"
|
|
|
|
#endif
|
|
|
|
|
2010-07-27 02:05:41 -07:00
|
|
|
#include "eina_strbuf_common.h"
|
|
|
|
#include "eina_unicode.h"
|
|
|
|
#include "eina_ustrbuf.h"
|
|
|
|
|
2010-08-16 23:58:26 -07:00
|
|
|
/*============================================================================*
|
|
|
|
* Local *
|
|
|
|
*============================================================================*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @cond LOCAL
|
|
|
|
*/
|
2010-07-27 08:15:45 -07:00
|
|
|
|
2010-08-17 00:39:53 -07:00
|
|
|
#ifdef _STRBUF_DATA_TYPE
|
|
|
|
# undef _STRBUF_DATA_TYPE
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef _STRBUF_CSIZE
|
|
|
|
# undef _STRBUF_CSIZE
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef _STRBUF_STRUCT_NAME
|
|
|
|
# undef _STRBUF_STRUCT_NAME
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef _STRBUF_STRLEN_FUNC
|
|
|
|
# undef _STRBUF_STRLEN_FUNC
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef _STRBUF_STRESCAPE_FUNC
|
|
|
|
# undef _STRBUF_STRESCAPE_FUNC
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef _STRBUF_MAGIC
|
|
|
|
# undef _STRBUF_MAGIC
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef _STRBUF_MAGIC_STR
|
|
|
|
# undef _STRBUF_MAGIC_STR
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef _FUNC_EXPAND
|
|
|
|
# undef _FUNC_EXPAND
|
|
|
|
#endif
|
|
|
|
|
2010-07-27 02:05:41 -07:00
|
|
|
#define _STRBUF_DATA_TYPE Eina_Unicode
|
|
|
|
#define _STRBUF_CSIZE sizeof(_STRBUF_DATA_TYPE)
|
|
|
|
#define _STRBUF_STRUCT_NAME Eina_UStrbuf
|
|
|
|
#define _STRBUF_STRLEN_FUNC(x) eina_unicode_strlen(x)
|
|
|
|
#define _STRBUF_STRESCAPE_FUNC(x) eina_unicode_escape(x)
|
|
|
|
#define _STRBUF_MAGIC EINA_MAGIC_USTRBUF
|
2010-07-27 08:15:45 -07:00
|
|
|
#define _STRBUF_MAGIC_STR __USTRBUF_MAGIC_STR
|
|
|
|
static const char __USTRBUF_MAGIC_STR[] = "Eina UStrbuf";
|
2010-07-27 02:05:41 -07:00
|
|
|
|
2010-07-27 19:37:05 -07:00
|
|
|
#define _FUNC_EXPAND(y) eina_ustrbuf_ ## y
|
2010-07-27 02:05:41 -07:00
|
|
|
|
2010-08-16 23:58:26 -07:00
|
|
|
/**
|
|
|
|
* @endcond
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
/*============================================================================*
|
|
|
|
* Global *
|
|
|
|
*============================================================================*/
|
|
|
|
|
|
|
|
|
|
|
|
/*============================================================================*
|
|
|
|
* API *
|
|
|
|
*============================================================================*/
|
|
|
|
|
2010-08-16 06:52:34 -07:00
|
|
|
#include "eina_strbuf_template_c.x"
|