github.com/shakinm/xlsReader@v0.9.12/xls/record/rstring.go (about)

     1  package record
     2  
     3  // RSTRING: Cell with Character Formatting
     4  
     5  var RStringRecord = []byte{0xD6, 0x00} // (D6h)
     6  
     7  /*
     8  When part of a string in a cell has character formatting, an RSTRING record is
     9  written instead of the LABEL record. The RSTRING record is obsolete in BIFF8,
    10  replaced by the LABELSST and SST records.
    11  
    12  Record Data
    13  Offset		Name		Size		Contents
    14  --------------------------------------------
    15  4			rw			2			Row
    16  6			col			2			Column
    17  8			ixfe		2			Index to the XF record
    18  10			cch			2			Length of the string
    19  12			rgch		var			String
    20  var			cruns		1			Count of STRUN structures
    21  var			rgstrun		var			Array of STRUN structures
    22  
    23  The STRUN structure contains formatting information about the string. A STRUN
    24  structure occurs every time the text formatting changes. The STRUN structure is
    25  described in the following table.
    26  
    27  Offset		Name		Size		Contents
    28  --------------------------------------------
    29  0			ich			1			Index to the first character to which the formatting applies
    30  1			ifnt		1			Index to the FONT record
    31  
    32  */
    33  
    34  type RString struct {
    35  	Rw      [2]byte
    36  	Col     [2]byte
    37  	Ixfe    [2]byte
    38  	Cch     [2]byte
    39  	Rgch    []byte
    40  	Cruns   [1]byte
    41  	Rgstrun []byte
    42  }