Method: Spreadsheet::Excel::Reader#read_hlink_string

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


604
605
606
607
608
609
610
611
# File 'lib/spreadsheet/excel/reader.rb', line 604

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