()
| 153 | } |
| 154 | |
| 155 | private loadPrevChar(): void { |
| 156 | if (this.address > 0) { |
| 157 | this._char = getLastUnicodeChar(this.pages.get(this.pageIndex)!, this.address)!; |
| 158 | } else if (!this.isFirstPage) { |
| 159 | const page = this.pages.get(this.pageIndex - 1)!; |
| 160 | this._char = getLastUnicodeChar(page)!; |
| 161 | } |
| 162 | } |
| 163 | } |
| 164 | |
| 165 | function getUnicodeChar(string: string, position = 0): string | undefined { |
no test coverage detected