mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
improve performance
This commit is contained in:
@@ -41,7 +41,7 @@ import java.util.Arrays;
|
||||
*/
|
||||
public class Lexer {
|
||||
|
||||
private final String text;
|
||||
protected final String text;
|
||||
protected int pos;
|
||||
protected int mark;
|
||||
|
||||
@@ -78,6 +78,10 @@ public class Lexer {
|
||||
|
||||
return text.charAt(index);
|
||||
}
|
||||
|
||||
public final int indexOf(char ch, int fromIndex) {
|
||||
return text.indexOf(ch, fromIndex);
|
||||
}
|
||||
|
||||
public String addSymbol() {
|
||||
return subString(mark, bufPos);
|
||||
|
||||
Reference in New Issue
Block a user