()
| 190 | } |
| 191 | |
| 192 | private Residue(): Residue { |
| 193 | let value = ''; |
| 194 | const index = this.input.slice(this.pointer).search(this._residueRegExp); |
| 195 | if (index === -1) { |
| 196 | value = this.input.slice(this.pointer); |
| 197 | } else if (index === 0) { |
| 198 | return ''; |
| 199 | } else { |
| 200 | value = this.input.slice(this.pointer, this.pointer + index); |
| 201 | } |
| 202 | this.pointer += value.length; |
| 203 | return value; |
| 204 | } |
| 205 | } |