Member predicate RegExp::char_set_start
Helper predicate for char_set_start(int start, int end)
.
In order to identify left brackets (‘[’) which actually start a character class, we perform a left to right scan of the string.
To avoid negative recursion we return a boolean. See escaping
,
the helper for escapingChar
, for a clean use of this pattern.
result is true for those start chars that actually mark a start of a char set.
boolean char_set_start(int pos)