Class Trie2.UTrie2Header

java.lang.Object
com.ibm.icu.impl.Trie2.UTrie2Header
Enclosing class:
Trie2

static class Trie2.UTrie2Header extends Object
Trie2 data structure in serialized form: UTrie2Header header; uint16_t index[header.index2Length]; uint16_t data[header.shiftedDataLength<<2]; -- or uint32_t data[...] For Java, this is read from the stream into an instance of UTrie2Header. (The C version just places a struct over the raw serialized data.)
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) int
    Null index and data blocks, not shifted.
    (package private) int
    Null index and data blocks, not shifted.
    (package private) int
    UTRIE2_INDEX_1_OFFSET..UTRIE2_MAX_INDEX_LENGTH (uint16_t)
    (package private) int
    options bit field (uint16_t): 15..
    (package private) int
    (UTRIE2_DATA_START_OFFSET..UTRIE2_MAX_DATA_LENGTH)>>UTRIE2_INDEX_SHIFT (uint16_t)
    (package private) int
    First code point of the single-value range ending with U+10ffff, rounded up and then shifted right by UTRIE2_SHIFT_1.
    (package private) int
    "Tri2" in big-endian US-ASCII (0x54726932)
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • signature

      int signature
      "Tri2" in big-endian US-ASCII (0x54726932)
    • options

      int options
      options bit field (uint16_t): 15.. 4 reserved (0) 3.. 0 UTrie2ValueBits valueBits
    • indexLength

      int indexLength
      UTRIE2_INDEX_1_OFFSET..UTRIE2_MAX_INDEX_LENGTH (uint16_t)
    • shiftedDataLength

      int shiftedDataLength
      (UTRIE2_DATA_START_OFFSET..UTRIE2_MAX_DATA_LENGTH)>>UTRIE2_INDEX_SHIFT (uint16_t)
    • index2NullOffset

      int index2NullOffset
      Null index and data blocks, not shifted. (uint16_t)
    • dataNullOffset

      int dataNullOffset
      Null index and data blocks, not shifted. (uint16_t)
    • shiftedHighStart

      int shiftedHighStart
      First code point of the single-value range ending with U+10ffff, rounded up and then shifted right by UTRIE2_SHIFT_1. (uint16_t)
  • Constructor Details

    • UTrie2Header

      UTrie2Header()