Searched refs:UTF8_COUNT_TRAIL_BYTES (Results 1 - 2 of 2) sorted by relevance

/external/icu/icu4c/source/test/intltest/
H A Dstrtest.cpp25 #include "unicode/utf_old.h" // for UTF8_COUNT_TRAIL_BYTES
148 if(UTF8_COUNT_TRAIL_BYTES(0x7F) != 0
149 || UTF8_COUNT_TRAIL_BYTES(0xC2) != 1
150 || UTF8_COUNT_TRAIL_BYTES(0xE0) != 2
151 || UTF8_COUNT_TRAIL_BYTES(0xF0) != 3) {
152 errln("UTF8_COUNT_TRAIL_BYTES does not work right! See utf_old.h.");
155 // Note: U8_COUNT_TRAIL_BYTES (current) and UTF8_COUNT_TRAIL_BYTES (deprecated)
/external/icu/icu4c/source/common/unicode/
H A Dutf_old.h308 #define UTF8_COUNT_TRAIL_BYTES(leadByte) (utf8_countTrailBytes[(uint8_t)leadByte]) macro
385 uint8_t __count=UTF8_COUNT_TRAIL_BYTES(c); \
423 (i)+=1+UTF8_COUNT_TRAIL_BYTES((s)[i]); \

Completed in 2071 milliseconds