Package-level declarations
Multiplatform marker-aware search&replace regex, to enable regex-based transform rules.
Types
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Represents a K3SearchRegex, a subset of ECMA regex, with support for marker matching.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
class K3SearchRegex(val rootInstr: K3SearchInstr, val minAtomCount: Int, val maxAtomCount: Int) : K3SearchRegexOrError
Represents a K3SearchRegex, a subset of ECMA regex, with support for marker matching.
Link copied to clipboard
Link copied to clipboard
A search result for a regex match.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Functions
Link copied to clipboard
Attempts to match given regex against this string.
Link copied to clipboard
context(variableResolver: K3VariableResolver, markerPool: K3MutableMarkerPool)
fun String.toK3ReplaceRegex(): K3SReplaceRegexOrError
fun String.toK3ReplaceRegex(): K3SReplaceRegexOrError
Parses given string to a replacement regex, or returns an error.
Link copied to clipboard
context(variableResolver: K3VariableResolver, markerPool: K3MutableMarkerPool)
fun String.toK3SearchRegex(): K3SearchRegexOrError
fun String.toK3SearchRegex(): K3SearchRegexOrError
Parses given string to a search regex, or returns an error.