summaryrefslogtreecommitdiff
path: root/gnu/regexp/CharIndexed.java
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/regexp/CharIndexed.java')
-rw-r--r--gnu/regexp/CharIndexed.java14
1 files changed, 13 insertions, 1 deletions
diff --git a/gnu/regexp/CharIndexed.java b/gnu/regexp/CharIndexed.java
index a0d7106ae..df1d8930c 100644
--- a/gnu/regexp/CharIndexed.java
+++ b/gnu/regexp/CharIndexed.java
@@ -1,5 +1,5 @@
/* gnu/regexp/CharIndexed.java
- Copyright (C) 1998-2001, 2004 Free Software Foundation, Inc.
+ Copyright (C) 1998-2001, 2004, 2006 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -81,4 +81,16 @@ public interface CharIndexed {
* position at a valid position in the input.
*/
boolean isValid();
+
+ /**
+ * Returns another CharIndexed containing length characters to the left
+ * of the given index. The given length is an expected maximum and
+ * the returned CharIndexed may not necessarily contain so many characters.
+ */
+ CharIndexed lookBehind(int index, int length);
+
+ /**
+ * Returns the effective length of this CharIndexed
+ */
+ int length();
}