def analyze_link(url, absolute = nil)  # :nodoc:
    dir_long , sheet = url.split(/\#/)
    link_type = absolute ? (0x01 | absolute) : 0x0103

    if sheet
      link_type |= 0x08
      sheet_len  = [sheet.bytesize + 0x01].pack("V")
      sheet      = sheet.split('').join("\0") + "\0\0\0"
    else
      sheet_len   = ''
      sheet       = ''
    end

    [dir_long, link_type, sheet_len, sheet]
  end
def analyze_link(url, absolute = nil)  # :nodoc:
    dir_long , sheet = url.split(/\#/)
    link_type = absolute ? (0x01 | absolute) : 0x0103

    if sheet
      link_type |= 0x08
      sheet_len  = [sheet.bytesize + 0x01].pack("V")
      sheet      = sheet.split('').join("\0") + "\0\0\0"
    else
      sheet_len   = ''
      sheet       = ''
    end

    [dir_long, link_type, sheet_len, sheet]
  end
Determine if the link contains a sheet reference and change some of the
 parameters accordingly.
 Split the dir name and sheet name (if it exists)