Class: Printer

Inherits:
Object
  • Object
show all
Defined in:
ext/encoding/character/utf-8/data/generate-unicode-data.rb

Instance Method Summary collapse

Constructor Details

#initializePrinter

Returns a new instance of Printer.



399
400
401
# File 'ext/encoding/character/utf-8/data/generate-unicode-data.rb', line 399

def initialize
  @index = 0
end

Instance Method Details

#process(data) ⇒ Object



403
404
405
406
407
408
409
410
411
# File 'ext/encoding/character/utf-8/data/generate-unicode-data.rb', line 403

def process(data)
  @last_char_part1_i = data.pages_before_e0000 * 256 - 1
  @last_char_part1_x = sprintf('0x%04x', @last_char_part1_i)
  @last_char_part1_X = sprintf('%04X', @last_char_part1_i)
  print_tables(data)
  print_decomp(data)
  print_composition_table(data)
  print_line_break(data)
end