Logo Search packages:      
Sourcecode: icu version File versions  Download package

utf_old.h File Reference


Detailed Description

C API: Deprecated macros for Unicode string handling.

Definition in file utf_old.h.

#include "unicode/utf.h"

Go to the source code of this file.

Defines

#define UTF16_APPEND_CHAR_SAFE(s, i, length, c)
#define UTF16_APPEND_CHAR_UNSAFE(s, i, c)
#define UTF16_ARRAY_SIZE(size)   (size)
#define UTF16_BACK_1_SAFE(s, start, i)   U16_BACK_1(s, start, i)
#define UTF16_BACK_1_UNSAFE(s, i)
#define UTF16_BACK_N_SAFE(s, start, i, n)   U16_BACK_N(s, start, i, n)
#define UTF16_BACK_N_UNSAFE(s, i, n)
#define UTF16_CHAR_LENGTH(c)   ((uint32_t)(c)<=0xffff ? 1 : 2)
#define UTF16_FWD_1_SAFE(s, i, length)   U16_FWD_1(s, i, length)
#define UTF16_FWD_1_UNSAFE(s, i)
#define UTF16_FWD_N_SAFE(s, i, length, n)   U16_FWD_N(s, i, length, n)
#define UTF16_FWD_N_UNSAFE(s, i, n)
#define UTF16_GET_CHAR_SAFE(s, start, i, length, c, strict)
#define UTF16_GET_CHAR_UNSAFE(s, i, c)
#define UTF16_GET_PAIR_VALUE(first, second)   (((first)<<10UL)+(second)-UTF_SURROGATE_OFFSET)
#define UTF16_IS_LEAD(uchar)   UTF_IS_FIRST_SURROGATE(uchar)
#define UTF16_IS_SINGLE(uchar)   !UTF_IS_SURROGATE(uchar)
#define UTF16_IS_TRAIL(uchar)   UTF_IS_SECOND_SURROGATE(uchar)
#define UTF16_LEAD(supplementary)   UTF_FIRST_SURROGATE(supplementary)
#define UTF16_MAX_CHAR_LENGTH   2
#define UTF16_NEED_MULTIPLE_UCHAR(c)   ((uint32_t)(c)>0xffff)
#define UTF16_NEXT_CHAR_SAFE(s, i, length, c, strict)
#define UTF16_NEXT_CHAR_UNSAFE(s, i, c)
#define UTF16_PREV_CHAR_SAFE(s, start, i, c, strict)
#define UTF16_PREV_CHAR_UNSAFE(s, i, c)
#define UTF16_SET_CHAR_LIMIT_SAFE(s, start, i, length)   U16_SET_CP_LIMIT(s, start, i, length)
#define UTF16_SET_CHAR_LIMIT_UNSAFE(s, i)
#define UTF16_SET_CHAR_START_SAFE(s, start, i)   U16_SET_CP_START(s, start, i)
#define UTF16_SET_CHAR_START_UNSAFE(s, i)
#define UTF16_TRAIL(supplementary)   UTF_SECOND_SURROGATE(supplementary)
#define UTF32_APPEND_CHAR_SAFE(s, i, length, c)
#define UTF32_APPEND_CHAR_UNSAFE(s, i, c)
#define UTF32_ARRAY_SIZE(size)   (size)
#define UTF32_BACK_1_SAFE(s, start, i)
#define UTF32_BACK_1_UNSAFE(s, i)
#define UTF32_BACK_N_SAFE(s, start, i, n)
#define UTF32_BACK_N_UNSAFE(s, i, n)
#define UTF32_CHAR_LENGTH(c)   1
#define UTF32_FWD_1_SAFE(s, i, length)
#define UTF32_FWD_1_UNSAFE(s, i)
#define UTF32_FWD_N_SAFE(s, i, length, n)
#define UTF32_FWD_N_UNSAFE(s, i, n)
#define UTF32_GET_CHAR_SAFE(s, start, i, length, c, strict)
#define UTF32_GET_CHAR_UNSAFE(s, i, c)
#define UTF32_IS_LEAD(uchar)   0
#define UTF32_IS_SAFE(c, strict)
#define UTF32_IS_SINGLE(uchar)   1
#define UTF32_IS_TRAIL(uchar)   0
#define UTF32_MAX_CHAR_LENGTH   1
#define UTF32_NEED_MULTIPLE_UCHAR(c)   0
#define UTF32_NEXT_CHAR_SAFE(s, i, length, c, strict)
#define UTF32_NEXT_CHAR_UNSAFE(s, i, c)
#define UTF32_PREV_CHAR_SAFE(s, start, i, c, strict)
#define UTF32_PREV_CHAR_UNSAFE(s, i, c)
#define UTF32_SET_CHAR_LIMIT_SAFE(s, i, length)
#define UTF32_SET_CHAR_LIMIT_UNSAFE(s, i)
#define UTF32_SET_CHAR_START_SAFE(s, start, i)
#define UTF32_SET_CHAR_START_UNSAFE(s, i)
#define UTF8_APPEND_CHAR_SAFE(s, i, length, c)
#define UTF8_APPEND_CHAR_UNSAFE(s, i, c)
#define UTF8_ARRAY_SIZE(size)   ((5*(size))/2)
#define UTF8_BACK_1_SAFE(s, start, i)   U8_BACK_1(s, start, i)
#define UTF8_BACK_1_UNSAFE(s, i)
#define UTF8_BACK_N_SAFE(s, start, i, n)   U8_BACK_N(s, start, i, n)
#define UTF8_BACK_N_UNSAFE(s, i, n)
#define UTF8_CHAR_LENGTH(c)
#define UTF8_COUNT_TRAIL_BYTES(leadByte)   (utf8_countTrailBytes[(uint8_t)leadByte])
#define UTF8_ERROR_VALUE_1   0x15
#define UTF8_ERROR_VALUE_2   0x9f
#define UTF8_FWD_1_SAFE(s, i, length)   U8_FWD_1(s, i, length)
#define UTF8_FWD_1_UNSAFE(s, i)
#define UTF8_FWD_N_SAFE(s, i, length, n)   U8_FWD_N(s, i, length, n)
#define UTF8_FWD_N_UNSAFE(s, i, n)
#define UTF8_GET_CHAR_SAFE(s, start, i, length, c, strict)
#define UTF8_GET_CHAR_UNSAFE(s, i, c)
#define UTF8_IS_LEAD(uchar)   ((uint8_t)((uchar)-0xc0)<0x3e)
#define UTF8_IS_SINGLE(uchar)   (((uchar)&0x80)==0)
#define UTF8_IS_TRAIL(uchar)   (((uchar)&0xc0)==0x80)
#define UTF8_MASK_LEAD_BYTE(leadByte, countTrailBytes)   ((leadByte)&=(1<<(6-(countTrailBytes)))-1)
#define UTF8_MAX_CHAR_LENGTH   4
#define UTF8_NEED_MULTIPLE_UCHAR(c)   ((uint32_t)(c)>0x7f)
#define UTF8_NEXT_CHAR_SAFE(s, i, length, c, strict)
#define UTF8_NEXT_CHAR_UNSAFE(s, i, c)
#define UTF8_PREV_CHAR_SAFE(s, start, i, c, strict)
#define UTF8_PREV_CHAR_UNSAFE(s, i, c)
#define UTF8_SET_CHAR_LIMIT_SAFE(s, start, i, length)   U8_SET_CP_LIMIT(s, start, i, length)
#define UTF8_SET_CHAR_LIMIT_UNSAFE(s, i)
#define UTF8_SET_CHAR_START_SAFE(s, start, i)   U8_SET_CP_START(s, start, i)
#define UTF8_SET_CHAR_START_UNSAFE(s, i)
#define UTF_APPEND_CHAR(s, i, length, c)   UTF16_APPEND_CHAR_SAFE(s, i, length, c)
#define UTF_APPEND_CHAR_SAFE(s, i, length, c)   UTF16_APPEND_CHAR_SAFE(s, i, length, c)
#define UTF_APPEND_CHAR_UNSAFE(s, i, c)   UTF16_APPEND_CHAR_UNSAFE(s, i, c)
#define UTF_ARRAY_SIZE(size)   UTF16_ARRAY_SIZE(size)
#define UTF_BACK_1(s, start, i)   U16_BACK_1(s, start, i)
#define UTF_BACK_1_SAFE(s, start, i)   UTF16_BACK_1_SAFE(s, start, i)
#define UTF_BACK_1_UNSAFE(s, i)   UTF16_BACK_1_UNSAFE(s, i)
#define UTF_BACK_N(s, start, i, n)   U16_BACK_N(s, start, i, n)
#define UTF_BACK_N_SAFE(s, start, i, n)   UTF16_BACK_N_SAFE(s, start, i, n)
#define UTF_BACK_N_UNSAFE(s, i, n)   UTF16_BACK_N_UNSAFE(s, i, n)
#define UTF_CHAR_LENGTH(c)   U16_LENGTH(c)
#define UTF_ERROR_VALUE   0xffff
#define UTF_FIRST_SURROGATE(supplementary)   (UChar)(((supplementary)>>10)+0xd7c0)
#define UTF_FWD_1(s, i, length)   U16_FWD_1(s, i, length)
#define UTF_FWD_1_SAFE(s, i, length)   UTF16_FWD_1_SAFE(s, i, length)
#define UTF_FWD_1_UNSAFE(s, i)   UTF16_FWD_1_UNSAFE(s, i)
#define UTF_FWD_N(s, i, length, n)   U16_FWD_N(s, i, length, n)
#define UTF_FWD_N_SAFE(s, i, length, n)   UTF16_FWD_N_SAFE(s, i, length, n)
#define UTF_FWD_N_UNSAFE(s, i, n)   UTF16_FWD_N_UNSAFE(s, i, n)
#define UTF_GET_CHAR(s, start, i, length, c)   U16_GET(s, start, i, length, c)
#define UTF_GET_CHAR_SAFE(s, start, i, length, c, strict)   UTF16_GET_CHAR_SAFE(s, start, i, length, c, strict)
#define UTF_GET_CHAR_UNSAFE(s, i, c)   UTF16_GET_CHAR_UNSAFE(s, i, c)
#define UTF_IS_ERROR(c)   (((c)&0xfffe)==0xfffe || (c)==UTF8_ERROR_VALUE_1 || (c)==UTF8_ERROR_VALUE_2)
#define UTF_IS_FIRST_SURROGATE(uchar)   (((uchar)&0xfffffc00)==0xd800)
#define UTF_IS_LEAD(uchar)   U16_IS_LEAD(uchar)
#define UTF_IS_SECOND_SURROGATE(uchar)   (((uchar)&0xfffffc00)==0xdc00)
#define UTF_IS_SINGLE(uchar)   U16_IS_SINGLE(uchar)
#define UTF_IS_SURROGATE(uchar)   (((uchar)&0xfffff800)==0xd800)
#define UTF_IS_SURROGATE_FIRST(c)   (((c)&0x400)==0)
#define UTF_IS_TRAIL(uchar)   U16_IS_TRAIL(uchar)
#define UTF_IS_UNICODE_CHAR(c)
#define UTF_IS_UNICODE_NONCHAR(c)
#define UTF_IS_VALID(c)
#define UTF_MAX_CHAR_LENGTH   U16_MAX_LENGTH
#define UTF_NEED_MULTIPLE_UCHAR(c)   UTF16_NEED_MULTIPLE_UCHAR(c)
#define UTF_NEXT_CHAR(s, i, length, c)   U16_NEXT(s, i, length, c)
#define UTF_NEXT_CHAR_SAFE(s, i, length, c, strict)   UTF16_NEXT_CHAR_SAFE(s, i, length, c, strict)
#define UTF_NEXT_CHAR_UNSAFE(s, i, c)   UTF16_NEXT_CHAR_UNSAFE(s, i, c)
#define UTF_PREV_CHAR(s, start, i, c)   U16_PREV(s, start, i, c)
#define UTF_PREV_CHAR_SAFE(s, start, i, c, strict)   UTF16_PREV_CHAR_SAFE(s, start, i, c, strict)
#define UTF_PREV_CHAR_UNSAFE(s, i, c)   UTF16_PREV_CHAR_UNSAFE(s, i, c)
#define UTF_SAFE
#define UTF_SECOND_SURROGATE(supplementary)   (UChar)(((supplementary)&0x3ff)|0xdc00)
#define UTF_SET_CHAR_LIMIT(s, start, i, length)   U16_SET_CP_LIMIT(s, start, i, length)
#define UTF_SET_CHAR_LIMIT_SAFE(s, start, i, length)   UTF16_SET_CHAR_LIMIT_SAFE(s, start, i, length)
#define UTF_SET_CHAR_LIMIT_UNSAFE(s, i)   UTF16_SET_CHAR_LIMIT_UNSAFE(s, i)
#define UTF_SET_CHAR_START(s, start, i)   U16_SET_CP_START(s, start, i)
#define UTF_SET_CHAR_START_SAFE(s, start, i)   UTF16_SET_CHAR_START_SAFE(s, start, i)
#define UTF_SET_CHAR_START_UNSAFE(s, i)   UTF16_SET_CHAR_START_UNSAFE(s, i)
#define UTF_SIZE   16
#define UTF_SURROGATE_OFFSET   ((0xd800<<10UL)+0xdc00-0x10000)


Generated by  Doxygen 1.6.0   Back to index