Logo Search packages:      
Sourcecode: icu version File versions

Defines

utf16.h File Reference

C API: 16-bit Unicode handling macros. More...

#include "unicode/utf.h"
Include dependency graph for utf16.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define U16_APPEND(s, i, capacity, c, isError)
#define U16_APPEND_UNSAFE(s, i, c)
#define U16_BACK_1(s, start, i)
#define U16_BACK_1_UNSAFE(s, i)
#define U16_BACK_N(s, start, i, n)
#define U16_BACK_N_UNSAFE(s, i, n)
#define U16_FWD_1(s, i, length)
#define U16_FWD_1_UNSAFE(s, i)
#define U16_FWD_N(s, i, length, n)
#define U16_FWD_N_UNSAFE(s, i, n)
#define U16_GET(s, start, i, length, c)
#define U16_GET_SUPPLEMENTARY(lead, trail)   (((UChar32)(lead)<<10UL)+(UChar32)(trail)-U16_SURROGATE_OFFSET)
#define U16_GET_UNSAFE(s, i, c)
#define U16_IS_LEAD(c)   (((c)&0xfffffc00)==0xd800)
#define U16_IS_SINGLE(c)   !U_IS_SURROGATE(c)
#define U16_IS_SURROGATE(c)   U_IS_SURROGATE(c)
#define U16_IS_SURROGATE_LEAD(c)   (((c)&0x400)==0)
#define U16_IS_SURROGATE_TRAIL(c)   (((c)&0x400)!=0)
#define U16_IS_TRAIL(c)   (((c)&0xfffffc00)==0xdc00)
#define U16_LEAD(supplementary)   (UChar)(((supplementary)>>10)+0xd7c0)
#define U16_LENGTH(c)   ((uint32_t)(c)<=0xffff ? 1 : 2)
#define U16_MAX_LENGTH   2
#define U16_NEXT(s, i, length, c)
#define U16_NEXT_UNSAFE(s, i, c)
#define U16_PREV(s, start, i, c)
#define U16_PREV_UNSAFE(s, i, c)
#define U16_SET_CP_LIMIT(s, start, i, length)
#define U16_SET_CP_LIMIT_UNSAFE(s, i)
#define U16_SET_CP_START(s, start, i)
#define U16_SET_CP_START_UNSAFE(s, i)
#define U16_SURROGATE_OFFSET   ((0xd800<<10UL)+0xdc00-0x10000)
#define U16_TRAIL(supplementary)   (UChar)(((supplementary)&0x3ff)|0xdc00)

Detailed Description

C API: 16-bit Unicode handling macros.

This file defines macros to deal with 16-bit Unicode (UTF-16) code units and strings. utf16.h is included by utf.h after unicode/umachine.h and some common definitions.

For more information see utf.h and the ICU User Guide Strings chapter (http://icu-project.org/userguide/strings.html).

Usage: ICU coding guidelines for if() statements should be followed when using these macros. Compound statements (curly braces {}) must be used for if-else-while... bodies and all macro statements should be terminated with semicolon.

Definition in file utf16.h.


Generated by  Doxygen 1.6.0   Back to index