| 87 | const kMappings = Symbol('kMappings'); |
| 88 | |
| 89 | class StringCharIterator { |
| 90 | /** |
| 91 | * @param {string} string |
| 92 | */ |
| 93 | constructor(string) { |
| 94 | this._string = string; |
| 95 | this._position = 0; |
| 96 | } |
| 97 | |
| 98 | /** |
| 99 | * @returns {string} |
| 100 | */ |
| 101 | next() { |
| 102 | return StringPrototypeCharAt(this._string, this._position++); |
| 103 | } |
| 104 | |
| 105 | /** |
| 106 | * @returns {string} |
| 107 | */ |
| 108 | peek() { |
| 109 | return StringPrototypeCharAt(this._string, this._position); |
| 110 | } |
| 111 | |
| 112 | /** |
| 113 | * @returns {boolean} |
| 114 | */ |
| 115 | hasNext() { |
| 116 | return this._position < this._string.length; |
| 117 | } |
| 118 | } |
| 119 | |
| 120 | /** |
| 121 | * @class |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…