Skip to content

Commit 54ca9d0

Browse files
committed
improved escape char processing
1 parent e848257 commit 54ca9d0

File tree

3 files changed

+274
-219
lines changed

3 files changed

+274
-219
lines changed

src/main/java/com/igormaznitsa/prologparser/utils/StringBuilderEx.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,4 +143,7 @@ public boolean isEmpty() {
143143
return this.stringBuilder.length() == 0;
144144
}
145145

146+
public boolean isFirstCharDigit() {
147+
return this.stringBuilder.length()>0 && Character.isDigit(this.stringBuilder.charAt(0));
148+
}
146149
}

0 commit comments

Comments
 (0)