--- /dev/null
+package net.sourceforge.phpdt.sql.parser;
+
+public class StringPointer {
+ char[] value;
+ int offset = 0;
+ int mark = 0;
+ public StringPointer(String s) {
+ value = s.toCharArray();
+ }
+ public char getNext() {
+ char retVal = value[offset];
+ offset++;
+ return retVal;
+ }
+ public void mark() {
+ mark = offset;
+ }
+ public void reset() {
+ offset = mark;
+ }
+ public int getOffset() {
+ return offset;
+ }
+ public boolean isDone() {
+ return offset == value.length;
+ }
+ public int getLength() {
+ return value.length;
+ }
+}