Package org.ocpsoft.rewrite.util
Class ParseTools
java.lang.Object
org.ocpsoft.rewrite.util.ParseTools
- Author:
- Lincoln Baxter, III
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ParseTools.CapturingGroupbalancedCapture(char[] chars, int startPos, int endPos, ParseTools.CaptureType type) Return the index of the terminating character in the group, excluding markers.static booleanisEscaped(char[] chars, int cursor) Return true if the character at the given cursor is escaped; otherwise, return false.
-
Constructor Details
-
ParseTools
public ParseTools()
-
-
Method Details
-
balancedCapture
public static ParseTools.CapturingGroup balancedCapture(char[] chars, int startPos, int endPos, ParseTools.CaptureType type) Return the index of the terminating character in the group, excluding markers. -
isEscaped
public static boolean isEscaped(char[] chars, int cursor) Return true if the character at the given cursor is escaped; otherwise, return false.
-