* Returns a string describing the content of this chain. * Useful for logging, debugging. * @return {string}
()
| 251 | * @return {string} |
| 252 | */ |
| 253 | getDescription () { |
| 254 | if (this._string !== null) { |
| 255 | return `String(${this._string})` |
| 256 | } else if (this._codePoints !== null) { |
| 257 | return `CodePoints(${this._codePoints.join(', ')})` |
| 258 | } else { |
| 259 | return `Bytes(${ByteEncoder.hexStringFromBytes(this._bytes)})` |
| 260 | } |
| 261 | } |
| 262 | |
| 263 | /** |
| 264 | * Returns wether given text is contained in this chain. |
nothing calls this directly
no test coverage detected