org.ocpsoft.rewrite.bind.parse
Class ParseTools
java.lang.Object
org.ocpsoft.rewrite.bind.parse.ParseTools
public abstract class ParseTools
- extends Object
- Author:
- Lincoln Baxter, III
|
Method Summary |
static CapturingGroup |
balancedCapture(char[] chars,
int startPos,
int endPos,
CaptureType type)
Return the index of the terminating character in the group, excluding markers. |
static boolean |
isEscaped(char[] chars,
int cursor)
Return true if the character at the given cursor is escaped; otherwise, return false. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ParseTools
public ParseTools()
balancedCapture
public static CapturingGroup balancedCapture(char[] chars,
int startPos,
int endPos,
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.
Copyright © 2012 OCPsoft. All Rights Reserved.