parameters: (self)
docstring: Compute derived parameter values and create internal data
          structures.
  
          Don't change parameter values after calling this method.
docstring_summary: Compute derived parameter values and create internal data
          structures.
docstring_tokens: Compute derived parameter values and create internal data structures .
function: def create_tables(self):
          """Compute derived parameter values and create internal data
          structures.
  
          Don't change parameter values after calling this method.
          """
          self.bmp_data_offset_bits = 16 - self.bmp_first_level_index_bits
  
          self.supp_data_offset_bits = \
              21 - self.supp_first_level_index_bits - \
              self.supp_second_level_index_bits
  
          # The maximum value of the first level index for supp tables.  It is
          # not equal to ((1 << supp_first_level_index_bits) - 1), because
          # maximum Unicode code point value is not 2^21-1 (0x1fffff), it is
          # 0x10ffff.
          self.supp_first_level_index_max = \
              0x10ffff >> \
              (self.supp_second_level_index_bits + self.supp_data_offset_bits)
  
          # A mapping from BMP first-level index to BMP data block index.
          self.bmp_lookup = \
              [i for i in range(0, 1 << self.bmp_first_level_index_bits)]
  
          # An array of BMP data blocks.
          self.bmp_data = [
              [-1 for i in range(0, 1 << self.bmp_data_offset_bits)]
              for i in range(0, 1 << self.bmp_first_level_index_bits)
          ]
  
          # A mapping from supp first-level index to an index of the second-level
          # lookup table.
          self.supp_lookup1 = \
              [i for i in range(0, self.supp_first_level_index_max + 1)]
  
          # An array of second-level lookup tables.  Each second-level lookup
          # table is a mapping from a supp second-level index to supp data block
          # index.
          self.supp_lookup2 = [
              [j for j in range(i << self.supp_second_level_index_bits,
                                (i + 1) << self.supp_second_level_index_bits)]
              for i in range(0, self.supp_first_level_index_max + 1)
          ]
  
          # An array of supp data blocks.
          self.supp_data = [
              [-1 for i in range(0, 1 << self.supp_data_offset_bits)]
              for i in range(0, (self.supp_first_level_index_max + 1) *
                             (1 << self.supp_second_level_index_bits))
          ]
function_tokens: def create_tables ( self ) : self . bmp_data_offset_bits = 16 - self . bmp_first_level_index_bits self . supp_data_offset_bits = 21 - self . supp_first_level_index_bits - self . supp_second_level_index_bits # The maximum value of the first level index for supp tables.  It is # not equal to ((1 << supp_first_level_index_bits) - 1), because # maximum Unicode code point value is not 2^21-1 (0x1fffff), it is # 0x10ffff. self . supp_first_level_index_max = 0x10ffff >> ( self . supp_second_level_index_bits + self . supp_data_offset_bits ) # A mapping from BMP first-level index to BMP data block index. self . bmp_lookup = [ i for i in range ( 0 , 1 << self . bmp_first_level_index_bits ) ] # An array of BMP data blocks. self . bmp_data = [ [ - 1 for i in range ( 0 , 1 << self . bmp_data_offset_bits ) ] for i in range ( 0 , 1 << self . bmp_first_level_index_bits ) ] # A mapping from supp first-level index to an index of the second-level # lookup table. self . supp_lookup1 = [ i for i in range ( 0 , self . supp_first_level_index_max + 1 ) ] # An array of second-level lookup tables.  Each second-level lookup # table is a mapping from a supp second-level index to supp data block # index. self . supp_lookup2 = [ [ j for j in range ( i << self . supp_second_level_index_bits , ( i + 1 ) << self . supp_second_level_index_bits ) ] for i in range ( 0 , self . supp_first_level_index_max + 1 ) ] # An array of supp data blocks. self . supp_data = [ [ - 1 for i in range ( 0 , 1 << self . supp_data_offset_bits ) ] for i in range ( 0 , ( self . supp_first_level_index_max + 1 ) * ( 1 << self . supp_second_level_index_bits ) ) ]