Home | History | Annotate | Download | only in common

Lines Matching refs:c2

183 #define _UTRIE_GET_FROM_PAIR(trie, data, c, c2, result, resultType) { \
192 (result)=_UTRIE_GET_RAW((trie), data, __offset, (c2)&0x3ff); \
220 /** Internal next-post-increment: get the next code point (c, c2) and its data */
221 #define _UTRIE_NEXT(trie, data, src, limit, c, c2, result, resultType) { \
224 (c2)=0; \
226 } else if((src)!=(limit) && UTF_IS_TRAIL((c2)=*(src))) { \
228 _UTRIE_GET_FROM_PAIR((trie), data, (c), (c2), (result), resultType); \
231 (c2)=0; \
236 /** Internal previous: get the previous code point (c, c2) and its data */
237 #define _UTRIE_PREVIOUS(trie, data, start, src, c, c2, result, resultType) { \
240 (c2)=0; \
244 if((start)!=(src) && UTF_IS_LEAD((c2)=*((src)-1))) { \
246 (result)=(c); (c)=(c2); (c2)=(UChar)(result); /* swap c, c2 */ \
247 _UTRIE_GET_FROM_PAIR((trie), data, (c), (c2), (result), resultType); \
250 (c2)=0; \
255 (c2)=0; \
349 * Get the next code point (c, c2), post-increment src,
356 * @param c2 (UChar, out) variable for 0 or the trail code unit
359 #define UTRIE_NEXT16(trie, src, limit, c, c2, result) _UTRIE_NEXT(trie, index, src, limit, c, c2, result, uint16_t)
362 * Get the next code point (c, c2), post-increment src,
369 * @param c2 (UChar, out) variable for 0 or the trail code unit
372 #define UTRIE_NEXT32(trie, src, limit, c, c2, result) _UTRIE_NEXT(trie, data32, src, limit, c, c2, result, uint32_t)
375 * Get the previous code point (c, c2), pre-decrement src,
382 * @param c2 (UChar, out) variable for 0 or the trail code unit
385 #define UTRIE_PREVIOUS16(trie, start, src, c, c2, result) _UTRIE_PREVIOUS(trie, index, start, src, c, c2, result, uint16_t)
388 * Get the previous code point (c, c2), pre-decrement src,
395 * @param c2 (UChar, out) variable for 0 or the trail code unit
398 #define UTRIE_PREVIOUS32(trie, start, src, c, c2, result) _UTRIE_PREVIOUS(trie, data32, start, src, c, c2, result, uint32_t)
405 * @param c2 (UChar, in) a trail surrogate
408 #define UTRIE_GET16_FROM_PAIR(trie, c, c2, result) _UTRIE_GET_FROM_PAIR(trie, index, c, c2, result, uint16_t)
415 * @param c2 (UChar, in) a trail surrogate
418 #define UTRIE_GET32_FROM_PAIR(trie, c, c2, result) _UTRIE_GET_FROM_PAIR(trie, data32, c, c2, result, uint32_t)
426 * @param c2 (UChar, in) a trail surrogate (only the 10 low bits are significant)
429 #define UTRIE_GET16_FROM_OFFSET_TRAIL(trie, offset, c2) _UTRIE_GET_RAW(trie, index, offset, (c2)&0x3ff)
437 * @param c2 (UChar, in) a trail surrogate (only the 10 low bits are significant)
440 #define UTRIE_GET32_FROM_OFFSET_TRAIL(trie, offset, c2) _UTRIE_GET_RAW(trie, data32, offset, (c2)&0x3ff)