Lines Matching refs:ce32

275     static UBool isAssignedCE32(uint32_t ce32) {  in isAssignedCE32()  argument
276 return ce32 != FALLBACK_CE32 && ce32 != UNASSIGNED_CE32; in isAssignedCE32()
311 static inline uint32_t primaryFromLongPrimaryCE32(uint32_t ce32) { in primaryFromLongPrimaryCE32() argument
312 return ce32 & 0xffffff00; in primaryFromLongPrimaryCE32()
314 static inline int64_t ceFromLongPrimaryCE32(uint32_t ce32) { in ceFromLongPrimaryCE32() argument
315 return ((int64_t)(ce32 & 0xffffff00) << 32) | COMMON_SEC_AND_TER_CE; in ceFromLongPrimaryCE32()
321 static inline int64_t ceFromLongSecondaryCE32(uint32_t ce32) { in ceFromLongSecondaryCE32() argument
322 return ce32 & 0xffffff00; in ceFromLongSecondaryCE32()
334 static inline UBool isSpecialCE32(uint32_t ce32) { in isSpecialCE32() argument
335 return (ce32 & 0xff) >= SPECIAL_CE32_LOW_BYTE; in isSpecialCE32()
338 static inline int32_t tagFromCE32(uint32_t ce32) { in tagFromCE32() argument
339 return (int32_t)(ce32 & 0xf); in tagFromCE32()
342 static inline UBool hasCE32Tag(uint32_t ce32, int32_t tag) { in hasCE32Tag() argument
343 return isSpecialCE32(ce32) && tagFromCE32(ce32) == tag; in hasCE32Tag()
346 static inline UBool isLongPrimaryCE32(uint32_t ce32) { in isLongPrimaryCE32() argument
347 return hasCE32Tag(ce32, LONG_PRIMARY_TAG); in isLongPrimaryCE32()
350 static UBool isSimpleOrLongCE32(uint32_t ce32) { in isSimpleOrLongCE32() argument
351 return !isSpecialCE32(ce32) || in isSimpleOrLongCE32()
352 tagFromCE32(ce32) == LONG_PRIMARY_TAG || in isSimpleOrLongCE32()
353 tagFromCE32(ce32) == LONG_SECONDARY_TAG; in isSimpleOrLongCE32()
359 static UBool isSelfContainedCE32(uint32_t ce32) { in isSelfContainedCE32() argument
360 return !isSpecialCE32(ce32) || in isSelfContainedCE32()
361 tagFromCE32(ce32) == LONG_PRIMARY_TAG || in isSelfContainedCE32()
362 tagFromCE32(ce32) == LONG_SECONDARY_TAG || in isSelfContainedCE32()
363 tagFromCE32(ce32) == LATIN_EXPANSION_TAG; in isSelfContainedCE32()
366 static inline UBool isPrefixCE32(uint32_t ce32) { in isPrefixCE32() argument
367 return hasCE32Tag(ce32, PREFIX_TAG); in isPrefixCE32()
370 static inline UBool isContractionCE32(uint32_t ce32) { in isContractionCE32() argument
371 return hasCE32Tag(ce32, CONTRACTION_TAG); in isContractionCE32()
374 static inline UBool ce32HasContext(uint32_t ce32) { in ce32HasContext() argument
375 return isSpecialCE32(ce32) && in ce32HasContext()
376 (tagFromCE32(ce32) == PREFIX_TAG || in ce32HasContext()
377 tagFromCE32(ce32) == CONTRACTION_TAG); in ce32HasContext()
384 static inline int64_t latinCE0FromCE32(uint32_t ce32) { in latinCE0FromCE32() argument
385 … return ((int64_t)(ce32 & 0xff000000) << 32) | COMMON_SECONDARY_CE | ((ce32 & 0xff0000) >> 8); in latinCE0FromCE32()
392 static inline int64_t latinCE1FromCE32(uint32_t ce32) { in latinCE1FromCE32() argument
393 return ((ce32 & 0xff00) << 16) | COMMON_TERTIARY_CE; in latinCE1FromCE32()
399 static inline int32_t indexFromCE32(uint32_t ce32) { in indexFromCE32() argument
400 return (int32_t)(ce32 >> 13); in indexFromCE32()
406 static inline int32_t lengthFromCE32(uint32_t ce32) { in lengthFromCE32() argument
407 return (ce32 >> 8) & 31; in lengthFromCE32()
413 static inline char digitFromCE32(uint32_t ce32) { in digitFromCE32() argument
414 return (char)((ce32 >> 8) & 0xf); in digitFromCE32()
418 static inline int64_t ceFromSimpleCE32(uint32_t ce32) { in ceFromSimpleCE32() argument
421 … return ((int64_t)(ce32 & 0xffff0000) << 32) | ((ce32 & 0xff00) << 16) | ((ce32 & 0xff) << 8); in ceFromSimpleCE32()
425 static inline int64_t ceFromCE32(uint32_t ce32) { in ceFromCE32() argument
426 uint32_t tertiary = ce32 & 0xff; in ceFromCE32()
429 return ((int64_t)(ce32 & 0xffff0000) << 32) | ((ce32 & 0xff00) << 16) | (tertiary << 8); in ceFromCE32()
431 ce32 -= tertiary; in ceFromCE32()
434 return ((int64_t)ce32 << 32) | COMMON_SEC_AND_TER_CE; in ceFromCE32()
438 return ce32; in ceFromCE32()