summaryrefslogtreecommitdiff
path: root/gnu/java/util/regex/CharIndexed.java
diff options
context:
space:
mode:
authorAndrew John Hughes <gnu_andrew@member.fsf.org>2008-09-01 17:19:54 +0000
committerAndrew John Hughes <gnu_andrew@member.fsf.org>2008-09-01 17:19:54 +0000
commit5f55de7aeceb54ed19113fcda5decbfb21d3c8f9 (patch)
tree1498de7d21de9f6138c217484f3bef4a695179c8 /gnu/java/util/regex/CharIndexed.java
parente6b426c06016fe3f2c5ad814caf42d486564b9a0 (diff)
downloadclasspath-5f55de7aeceb54ed19113fcda5decbfb21d3c8f9.tar.gz
2008-09-01 Andrew John Hughes <gnu_andrew@member.fsf.org>
* gnu/java/util/regex/BacktrackStack.java, * gnu/java/util/regex/CharIndexed.java, * gnu/java/util/regex/CharIndexedCharArray.java, * gnu/java/util/regex/CharIndexedCharSequence.java, * gnu/java/util/regex/CharIndexedInputStream.java, * gnu/java/util/regex/CharIndexedString.java, * gnu/java/util/regex/CharIndexedStringBuffer.java, * gnu/java/util/regex/RE.java, * gnu/java/util/regex/REException.java, * gnu/java/util/regex/REFilterInputStream.java, * gnu/java/util/regex/REMatch.java, * gnu/java/util/regex/REMatchEnumeration.java, * gnu/java/util/regex/RESyntax.java, * gnu/java/util/regex/REToken.java, * gnu/java/util/regex/RETokenAny.java, * gnu/java/util/regex/RETokenBackRef.java, * gnu/java/util/regex/RETokenChar.java, * gnu/java/util/regex/RETokenEnd.java, * gnu/java/util/regex/RETokenEndOfPreviousMatch.java, * gnu/java/util/regex/RETokenEndSub.java, * gnu/java/util/regex/RETokenIndependent.java, * gnu/java/util/regex/RETokenLookAhead.java, * gnu/java/util/regex/RETokenLookBehind.java, * gnu/java/util/regex/RETokenNamedProperty.java, * gnu/java/util/regex/RETokenOneOf.java, * gnu/java/util/regex/RETokenPOSIX.java, * gnu/java/util/regex/RETokenRange.java, * gnu/java/util/regex/RETokenRepeated.java, * gnu/java/util/regex/RETokenStart.java, * gnu/java/util/regex/RETokenWordBoundary.java, * gnu/java/util/regex/UncheckedRE.java: Fix indentation.
Diffstat (limited to 'gnu/java/util/regex/CharIndexed.java')
-rw-r--r--gnu/java/util/regex/CharIndexed.java29
1 files changed, 15 insertions, 14 deletions
diff --git a/gnu/java/util/regex/CharIndexed.java b/gnu/java/util/regex/CharIndexed.java
index 27e07b2f8..070547d7f 100644
--- a/gnu/java/util/regex/CharIndexed.java
+++ b/gnu/java/util/regex/CharIndexed.java
@@ -48,13 +48,14 @@ package gnu.java.util.regex;
*
* @author <A HREF="mailto:wes@cacas.org">Wes Biggs</A>
*/
-public interface CharIndexed {
+public interface CharIndexed
+{
/**
* Defines a constant (0xFFFF was somewhat arbitrarily chosen)
* that can be returned by the charAt() function indicating that
* the specified index is out of range.
*/
- char OUT_OF_BOUNDS = '\uFFFF';
+ char OUT_OF_BOUNDS = '\uFFFF';
/**
* Returns the character at the given offset past the current cursor
@@ -68,66 +69,66 @@ public interface CharIndexed {
* @return the character at the specified index, or the OUT_OF_BOUNDS
* character defined by this interface.
*/
- char charAt(int index);
+ char charAt (int index);
/**
* Shifts the input buffer by a given number of positions. Returns
* true if the new cursor position is valid.
*/
- boolean move(int index);
+ boolean move (int index);
/**
* Shifts the input buffer by a given number of positions. Returns
* true if the new cursor position is valid or cursor position is at
* the end of input.
*/
- boolean move1(int index); // I cannot think of a better name for this.
+ boolean move1 (int index); // I cannot think of a better name for this.
/**
* Returns true if the most recent move() operation placed the cursor
* position at a valid position in the input.
*/
- boolean isValid();
+ 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);
+ CharIndexed lookBehind (int index, int length);
/**
* Returns the effective length of this CharIndexed
*/
- int length();
+ int length ();
/**
* Sets the REMatch last found on this input.
*/
- void setLastMatch(REMatch match);
+ void setLastMatch (REMatch match);
/**
* Returns the REMatch last found on this input.
*/
- REMatch getLastMatch();
+ REMatch getLastMatch ();
/**
* Sets the information used for hitEnd().
*/
- void setHitEnd(REMatch match);
+ void setHitEnd (REMatch match);
/**
* Returns whether the matcher has hit the end of input.
*/
- boolean hitEnd();
+ boolean hitEnd ();
/**
* Returns the anchor.
*/
- int getAnchor();
+ int getAnchor ();
/**
* Sets the anchor.
*/
- void setAnchor(int anchor);
+ void setAnchor (int anchor);
}