Method: Spreadsheet::Excel::Reader#read_hlink_string

Defined in:
lib/spreadsheet/excel/reader.rb


564
565
566
567
568
569
570
571
# File 'lib/spreadsheet/excel/reader.rb', line 564

def read_hlink_string work, pos
  count, = work.unpack "x#{pos}V"
  len = count * 2
  pos += 4
  data = work[pos, len].chomp "\000\000"
  pos += len
  [client(data, 'UTF-16LE'), pos]
end