Method: Spreadsheet::Excel::Reader#read_rstring
- Defined in:
- lib/spreadsheet/excel/reader.rb
#read_rstring(worksheet, addr, work) ⇒ Object
757 758 759 760 761 762 763 764 765 766 767 768 |
# File 'lib/spreadsheet/excel/reader.rb', line 757 def read_rstring worksheet, addr, work # Offset Size Contents # 0 2 Index to row # 2 2 Index to column # 4 2 Index to XF record (➜ 6.115) # 6 sz Unformatted Unicode string, 16-bit string length (➜ 3.4) # 6+sz 2 Number of Rich-Text formatting runs (rt) # 8+sz 4·rt List of rt formatting runs (➜ 3.2) row, column, xf = work.unpack "v3" value = client read_string(work[6..], 2), @workbook.encoding set_cell worksheet, row, column, xf, value end |