isEscape static method
Gets a value indicating whether the current char c1 is an escape modifier and the second is in the list of chars to escape.
Implementation
static bool isEscape(String c1, String c2) {
return c1 == '\\' && CHARS_TO_ESCAPE.contains(c2);
}