42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
# File 'lib/pdf/reader/cmap.rb', line 42
def process_data(data)
mode = nil
instructions = ""
data.each_line do |l|
if l.include?("beginbfchar")
mode = :char
elsif l.include?("endbfchar")
process_bfchar_instructions(instructions)
instructions = ""
mode = nil
elsif l.include?("beginbfrange")
mode = :range
elsif l.include?("endbfrange")
process_bfrange_instructions(instructions)
instructions = ""
mode = nil
elsif mode == :char || mode == :range
instructions << l
end
end
end
|