Lines Matching refs:c2
184 #define _UTRIE_GET_FROM_PAIR(trie, data, c, c2, result, resultType) { \
193 (result)=_UTRIE_GET_RAW((trie), data, __offset, (c2)&0x3ff); \
221 /** Internal next-post-increment: get the next code point (c, c2) and its data */
222 #define _UTRIE_NEXT(trie, data, src, limit, c, c2, result, resultType) { \
225 (c2)=0; \
227 } else if((src)!=(limit) && U16_IS_TRAIL((c2)=*(src))) { \
229 _UTRIE_GET_FROM_PAIR((trie), data, (c), (c2), (result), resultType); \
232 (c2)=0; \
237 /** Internal previous: get the previous code point (c, c2) and its data */
238 #define _UTRIE_PREVIOUS(trie, data, start, src, c, c2, result, resultType) { \
241 (c2)=0; \
245 if((start)!=(src) && U16_IS_LEAD((c2)=*((src)-1))) { \
247 (result)=(c); (c)=(c2); (c2)=(UChar)(result); /* swap c, c2 */ \
248 _UTRIE_GET_FROM_PAIR((trie), data, (c), (c2), (result), resultType); \
251 (c2)=0; \
256 (c2)=0; \
350 * Get the next code point (c, c2), post-increment src,
357 * @param c2 (UChar, out) variable for 0 or the trail code unit
360 #define UTRIE_NEXT16(trie, src, limit, c, c2, result) _UTRIE_NEXT(trie, index, src, limit, c, c2, result, uint16_t)
363 * Get the next code point (c, c2), post-increment src,
370 * @param c2 (UChar, out) variable for 0 or the trail code unit
373 #define UTRIE_NEXT32(trie, src, limit, c, c2, result) _UTRIE_NEXT(trie, data32, src, limit, c, c2, result, uint32_t)
376 * Get the previous code point (c, c2), pre-decrement src,
383 * @param c2 (UChar, out) variable for 0 or the trail code unit
386 #define UTRIE_PREVIOUS16(trie, start, src, c, c2, result) _UTRIE_PREVIOUS(trie, index, start, src, c, c2, result, uint16_t)
389 * Get the previous code point (c, c2), pre-decrement src,
396 * @param c2 (UChar, out) variable for 0 or the trail code unit
399 #define UTRIE_PREVIOUS32(trie, start, src, c, c2, result) _UTRIE_PREVIOUS(trie, data32, start, src, c, c2, result, uint32_t)
406 * @param c2 (UChar, in) a trail surrogate
409 #define UTRIE_GET16_FROM_PAIR(trie, c, c2, result) _UTRIE_GET_FROM_PAIR(trie, index, c, c2, result, uint16_t)
416 * @param c2 (UChar, in) a trail surrogate
419 #define UTRIE_GET32_FROM_PAIR(trie, c, c2, result) _UTRIE_GET_FROM_PAIR(trie, data32, c, c2, result, uint32_t)
427 * @param c2 (UChar, in) a trail surrogate (only the 10 low bits are significant)
430 #define UTRIE_GET16_FROM_OFFSET_TRAIL(trie, offset, c2) _UTRIE_GET_RAW(trie, index, offset, (c2)&0x3ff)
438 * @param c2 (UChar, in) a trail surrogate (only the 10 low bits are significant)
441 #define UTRIE_GET32_FROM_OFFSET_TRAIL(trie, offset, c2) _UTRIE_GET_RAW(trie, data32, offset, (c2)&0x3ff)