38 #define UTF_ERROR_NULL_IN (1 << 0)
40 #define UTF_ERROR_ILLCHAR (1 << 1)
42 #define UTF_ERROR_SMALL (1 << 2)
44 #define UTF_ERROR_ILLSEQ (1 << 3)
83 #define UTF16_ENCODE(in8str) \
85 wchar_t *in8str##_16 = alloc_utf16_from_8((const char *)in8str, 0)
87 #define UTF16_UN_ENCODE(in8str) \
bool add(void *owner, const AttributeIDRef &attribute_id, eAttrDomain domain, eCustomDataType data_type, const AttributeInit &initializer)
size_t count_utf_8_from_16(const wchar_t *string16)
wchar_t * alloc_utf16_from_8(const char *in8, size_t add)
int conv_utf_8_to_16(const char *in8, wchar_t *out16, size_t size16)
char * alloc_utf_8_from_16(const wchar_t *in16, size_t add)
int conv_utf_16_to_8(const wchar_t *in16, char *out8, size_t size8)
size_t count_utf_16_from_8(const char *string8)