Returns the string content of the cell.
(index: number)
| 158 | |
| 159 | /** Returns the string content of the cell. */ |
| 160 | public getString(index: number): string { |
| 161 | const content = this._data[index * CELL_SIZE + Cell.CONTENT]; |
| 162 | if (content & Content.IS_COMBINED_MASK) { |
| 163 | return this._combined[index]; |
| 164 | } |
| 165 | if (content & Content.CODEPOINT_MASK) { |
| 166 | return stringFromCodePoint(content & Content.CODEPOINT_MASK); |
| 167 | } |
| 168 | // return empty string for empty cells |
| 169 | return ''; |
| 170 | } |
| 171 | |
| 172 | /** Get state of protected flag. */ |
| 173 | public isProtected(index: number): number { |
nothing calls this directly
no test coverage detected