MCPcopy Create free account
hub / github.com/ReadyTalk/avian / reverse

Method reverse

classpath/java/util/regex/PikeVM.java:525–527  ·  view source on GitHub ↗

Reverses the program (effectively matching the reverse pattern). It is a well-known fact that any regular expression can be reordered trivially into an equivalent regular expression to be applied in backward direction (coming in real handy for look-behind expressions). Example: instead

()

Source from the content-addressed store, hash-verified

523 * </p>
524 */
525 public void reverse() {
526 reverse(findPrefixLength, program.length);
527 }
528
529 /**
530 * Reverses a specific part of the program (to match in reverse direction).

Callers 1

writeCodeMethod · 0.95

Calls 3

lengthMethod · 0.95
isJumpMethod · 0.95
arraycopyMethod · 0.95

Tested by

no test coverage detected