• Home
  • Raw
  • Download

Lines Matching refs:ce32

278     static UBool isAssignedCE32(uint32_t ce32) {  in isAssignedCE32()  argument
279 return ce32 != FALLBACK_CE32 && ce32 != UNASSIGNED_CE32; in isAssignedCE32()
316 static inline uint32_t primaryFromLongPrimaryCE32(uint32_t ce32) { in primaryFromLongPrimaryCE32() argument
317 return ce32 & 0xffffff00; in primaryFromLongPrimaryCE32()
319 static inline int64_t ceFromLongPrimaryCE32(uint32_t ce32) { in ceFromLongPrimaryCE32() argument
320 return ((int64_t)(ce32 & 0xffffff00) << 32) | COMMON_SEC_AND_TER_CE; in ceFromLongPrimaryCE32()
326 static inline int64_t ceFromLongSecondaryCE32(uint32_t ce32) { in ceFromLongSecondaryCE32() argument
327 return ce32 & 0xffffff00; in ceFromLongSecondaryCE32()
339 static inline UBool isSpecialCE32(uint32_t ce32) { in isSpecialCE32() argument
340 return (ce32 & 0xff) >= SPECIAL_CE32_LOW_BYTE; in isSpecialCE32()
343 static inline int32_t tagFromCE32(uint32_t ce32) { in tagFromCE32() argument
344 return (int32_t)(ce32 & 0xf); in tagFromCE32()
347 static inline UBool hasCE32Tag(uint32_t ce32, int32_t tag) { in hasCE32Tag() argument
348 return isSpecialCE32(ce32) && tagFromCE32(ce32) == tag; in hasCE32Tag()
351 static inline UBool isLongPrimaryCE32(uint32_t ce32) { in isLongPrimaryCE32() argument
352 return hasCE32Tag(ce32, LONG_PRIMARY_TAG); in isLongPrimaryCE32()
355 static UBool isSimpleOrLongCE32(uint32_t ce32) { in isSimpleOrLongCE32() argument
356 return !isSpecialCE32(ce32) || in isSimpleOrLongCE32()
357 tagFromCE32(ce32) == LONG_PRIMARY_TAG || in isSimpleOrLongCE32()
358 tagFromCE32(ce32) == LONG_SECONDARY_TAG; in isSimpleOrLongCE32()
364 static UBool isSelfContainedCE32(uint32_t ce32) { in isSelfContainedCE32() argument
365 return !isSpecialCE32(ce32) || in isSelfContainedCE32()
366 tagFromCE32(ce32) == LONG_PRIMARY_TAG || in isSelfContainedCE32()
367 tagFromCE32(ce32) == LONG_SECONDARY_TAG || in isSelfContainedCE32()
368 tagFromCE32(ce32) == LATIN_EXPANSION_TAG; in isSelfContainedCE32()
371 static inline UBool isPrefixCE32(uint32_t ce32) { in isPrefixCE32() argument
372 return hasCE32Tag(ce32, PREFIX_TAG); in isPrefixCE32()
375 static inline UBool isContractionCE32(uint32_t ce32) { in isContractionCE32() argument
376 return hasCE32Tag(ce32, CONTRACTION_TAG); in isContractionCE32()
379 static inline UBool ce32HasContext(uint32_t ce32) { in ce32HasContext() argument
380 return isSpecialCE32(ce32) && in ce32HasContext()
381 (tagFromCE32(ce32) == PREFIX_TAG || in ce32HasContext()
382 tagFromCE32(ce32) == CONTRACTION_TAG); in ce32HasContext()
389 static inline int64_t latinCE0FromCE32(uint32_t ce32) { in latinCE0FromCE32() argument
390 … return ((int64_t)(ce32 & 0xff000000) << 32) | COMMON_SECONDARY_CE | ((ce32 & 0xff0000) >> 8); in latinCE0FromCE32()
397 static inline int64_t latinCE1FromCE32(uint32_t ce32) { in latinCE1FromCE32() argument
398 return ((ce32 & 0xff00) << 16) | COMMON_TERTIARY_CE; in latinCE1FromCE32()
404 static inline int32_t indexFromCE32(uint32_t ce32) { in indexFromCE32() argument
405 return (int32_t)(ce32 >> 13); in indexFromCE32()
411 static inline int32_t lengthFromCE32(uint32_t ce32) { in lengthFromCE32() argument
412 return (ce32 >> 8) & 31; in lengthFromCE32()
418 static inline char digitFromCE32(uint32_t ce32) { in digitFromCE32() argument
419 return (char)((ce32 >> 8) & 0xf); in digitFromCE32()
423 static inline int64_t ceFromSimpleCE32(uint32_t ce32) { in ceFromSimpleCE32() argument
426 … return ((int64_t)(ce32 & 0xffff0000) << 32) | ((ce32 & 0xff00) << 16) | ((ce32 & 0xff) << 8); in ceFromSimpleCE32()
430 static inline int64_t ceFromCE32(uint32_t ce32) { in ceFromCE32() argument
431 uint32_t tertiary = ce32 & 0xff; in ceFromCE32()
434 return ((int64_t)(ce32 & 0xffff0000) << 32) | ((ce32 & 0xff00) << 16) | (tertiary << 8); in ceFromCE32()
436 ce32 -= tertiary; in ceFromCE32()
439 return ((int64_t)ce32 << 32) | COMMON_SEC_AND_TER_CE; in ceFromCE32()
443 return ce32; in ceFromCE32()