public static isEscapedAt(line as String, index as Long) as Boolean
Checks whether the character at index in line is escaped by an odd number of preceding backslashes.
| Parameter | Description |
|---|---|
line | Source line text. |
index | Zero-based index of the character to test. |
true when escaped.
import klyn.code
assert CodeTokenizer.isEscapedAt("\"a\\\"b\"", 3)
assert not CodeTokenizer.isEscapedAt("\"a\\\\\"\"", 4)