CodeQL library for Java/Kotlin
codeql/java-all 0.8.10-dev (changelog, source)
Search

Predicate Impl::isEscapeClass

Holds if term is an escape class representing e.g. \d. clazz is which character class it represents, e.g. ā€œdā€ for \d.

Import path

import semmle.code.java.regex.RegexTreeView
predicate isEscapeClass(RegExpTerm term, string clazz)