Class | Spreadsheet::Excel::SstEntry |
In: |
lib/spreadsheet/excel/sst_entry.rb
|
Parent: | Object |
available | [RW] | |
chars | [RW] | |
continued_chars | [RW] | |
flags | [RW] | |
phonetic | [RW] | |
richtext | [RW] | |
wide | [RW] |
# File lib/spreadsheet/excel/sst_entry.rb, line 11 11: def initialize opts = {} 12: @content = nil 13: @offset = opts[:offset] 14: @ole = opts[:ole] 15: @reader = opts[:reader] 16: @continuations = [] 17: end
Access the contents of this Shared String
# File lib/spreadsheet/excel/sst_entry.rb, line 20 20: def content 21: @content or begin 22: data = nil 23: data = @ole[@offset, @available] 24: content, _ = @reader.read_string_body data, @flags, @available, @wide 25: @continuations.each do |offset, len| 26: @reader.continue_string(@ole[offset,len], [content, @chars]) 27: end 28: content = client content, 'UTF-16LE' 29: if @reader.memoize? 30: @content = content 31: end 32: content 33: end 34: end