Lines Matching refs:ce32
277 static UBool isAssignedCE32(uint32_t ce32) { in isAssignedCE32() argument
278 return ce32 != FALLBACK_CE32 && ce32 != UNASSIGNED_CE32; in isAssignedCE32()
313 static inline uint32_t primaryFromLongPrimaryCE32(uint32_t ce32) { in primaryFromLongPrimaryCE32() argument
314 return ce32 & 0xffffff00; in primaryFromLongPrimaryCE32()
316 static inline int64_t ceFromLongPrimaryCE32(uint32_t ce32) { in ceFromLongPrimaryCE32() argument
317 return ((int64_t)(ce32 & 0xffffff00) << 32) | COMMON_SEC_AND_TER_CE; in ceFromLongPrimaryCE32()
323 static inline int64_t ceFromLongSecondaryCE32(uint32_t ce32) { in ceFromLongSecondaryCE32() argument
324 return ce32 & 0xffffff00; in ceFromLongSecondaryCE32()
336 static inline UBool isSpecialCE32(uint32_t ce32) { in isSpecialCE32() argument
337 return (ce32 & 0xff) >= SPECIAL_CE32_LOW_BYTE; in isSpecialCE32()
340 static inline int32_t tagFromCE32(uint32_t ce32) { in tagFromCE32() argument
341 return (int32_t)(ce32 & 0xf); in tagFromCE32()
344 static inline UBool hasCE32Tag(uint32_t ce32, int32_t tag) { in hasCE32Tag() argument
345 return isSpecialCE32(ce32) && tagFromCE32(ce32) == tag; in hasCE32Tag()
348 static inline UBool isLongPrimaryCE32(uint32_t ce32) { in isLongPrimaryCE32() argument
349 return hasCE32Tag(ce32, LONG_PRIMARY_TAG); in isLongPrimaryCE32()
352 static UBool isSimpleOrLongCE32(uint32_t ce32) { in isSimpleOrLongCE32() argument
353 return !isSpecialCE32(ce32) || in isSimpleOrLongCE32()
354 tagFromCE32(ce32) == LONG_PRIMARY_TAG || in isSimpleOrLongCE32()
355 tagFromCE32(ce32) == LONG_SECONDARY_TAG; in isSimpleOrLongCE32()
361 static UBool isSelfContainedCE32(uint32_t ce32) { in isSelfContainedCE32() argument
362 return !isSpecialCE32(ce32) || in isSelfContainedCE32()
363 tagFromCE32(ce32) == LONG_PRIMARY_TAG || in isSelfContainedCE32()
364 tagFromCE32(ce32) == LONG_SECONDARY_TAG || in isSelfContainedCE32()
365 tagFromCE32(ce32) == LATIN_EXPANSION_TAG; in isSelfContainedCE32()
368 static inline UBool isPrefixCE32(uint32_t ce32) { in isPrefixCE32() argument
369 return hasCE32Tag(ce32, PREFIX_TAG); in isPrefixCE32()
372 static inline UBool isContractionCE32(uint32_t ce32) { in isContractionCE32() argument
373 return hasCE32Tag(ce32, CONTRACTION_TAG); in isContractionCE32()
376 static inline UBool ce32HasContext(uint32_t ce32) { in ce32HasContext() argument
377 return isSpecialCE32(ce32) && in ce32HasContext()
378 (tagFromCE32(ce32) == PREFIX_TAG || in ce32HasContext()
379 tagFromCE32(ce32) == CONTRACTION_TAG); in ce32HasContext()
386 static inline int64_t latinCE0FromCE32(uint32_t ce32) { in latinCE0FromCE32() argument
387 … return ((int64_t)(ce32 & 0xff000000) << 32) | COMMON_SECONDARY_CE | ((ce32 & 0xff0000) >> 8); in latinCE0FromCE32()
394 static inline int64_t latinCE1FromCE32(uint32_t ce32) { in latinCE1FromCE32() argument
395 return ((ce32 & 0xff00) << 16) | COMMON_TERTIARY_CE; in latinCE1FromCE32()
401 static inline int32_t indexFromCE32(uint32_t ce32) { in indexFromCE32() argument
402 return (int32_t)(ce32 >> 13); in indexFromCE32()
408 static inline int32_t lengthFromCE32(uint32_t ce32) { in lengthFromCE32() argument
409 return (ce32 >> 8) & 31; in lengthFromCE32()
415 static inline char digitFromCE32(uint32_t ce32) { in digitFromCE32() argument
416 return (char)((ce32 >> 8) & 0xf); in digitFromCE32()
420 static inline int64_t ceFromSimpleCE32(uint32_t ce32) { in ceFromSimpleCE32() argument
423 … return ((int64_t)(ce32 & 0xffff0000) << 32) | ((ce32 & 0xff00) << 16) | ((ce32 & 0xff) << 8); in ceFromSimpleCE32()
427 static inline int64_t ceFromCE32(uint32_t ce32) { in ceFromCE32() argument
428 uint32_t tertiary = ce32 & 0xff; in ceFromCE32()
431 return ((int64_t)(ce32 & 0xffff0000) << 32) | ((ce32 & 0xff00) << 16) | (tertiary << 8); in ceFromCE32()
433 ce32 -= tertiary; in ceFromCE32()
436 return ((int64_t)ce32 << 32) | COMMON_SEC_AND_TER_CE; in ceFromCE32()
440 return ce32; in ceFromCE32()