mirror of
https://github.com/peterosterlund2/droidfish.git
synced 2024-12-04 17:30:56 +01:00
DroidFish: Spelling fixes.
This commit is contained in:
parent
6f044b5aab
commit
bc58767547
|
@ -55,7 +55,7 @@ public class GameTree {
|
||||||
|
|
||||||
private final PgnToken.PgnTokenReceiver gameStateListener;
|
private final PgnToken.PgnTokenReceiver gameStateListener;
|
||||||
|
|
||||||
/** Creates an empty GameTree start the standard start position.
|
/** Creates an empty GameTree starting at the standard start position.
|
||||||
* @param gameStateListener Optional tree change listener.
|
* @param gameStateListener Optional tree change listener.
|
||||||
*/
|
*/
|
||||||
public GameTree(PgnToken.PgnTokenReceiver gameStateListener) {
|
public GameTree(PgnToken.PgnTokenReceiver gameStateListener) {
|
||||||
|
@ -102,7 +102,7 @@ public class GameTree {
|
||||||
gameStateListener.clear();
|
gameStateListener.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
/** PngTokenReceiver implementation that generates plain text PGN data. */
|
/** PgnTokenReceiver implementation that generates plain text PGN data. */
|
||||||
private static class PgnText implements PgnToken.PgnTokenReceiver {
|
private static class PgnText implements PgnToken.PgnTokenReceiver {
|
||||||
private StringBuilder sb = new StringBuilder(256);
|
private StringBuilder sb = new StringBuilder(256);
|
||||||
private String header = "";
|
private String header = "";
|
||||||
|
@ -402,7 +402,7 @@ public class GameTree {
|
||||||
break;
|
break;
|
||||||
} else if (c == '{') {
|
} else if (c == '{') {
|
||||||
ret.type = PgnToken.COMMENT;
|
ret.type = PgnToken.COMMENT;
|
||||||
StringBuilder sb = new StringBuilder();;
|
StringBuilder sb = new StringBuilder();
|
||||||
while ((c = data.charAt(idx++)) != '}') {
|
while ((c = data.charAt(idx++)) != '}') {
|
||||||
sb.append(c);
|
sb.append(c);
|
||||||
}
|
}
|
||||||
|
@ -410,7 +410,7 @@ public class GameTree {
|
||||||
break;
|
break;
|
||||||
} else if (c == ';') {
|
} else if (c == ';') {
|
||||||
ret.type = PgnToken.COMMENT;
|
ret.type = PgnToken.COMMENT;
|
||||||
StringBuilder sb = new StringBuilder();;
|
StringBuilder sb = new StringBuilder();
|
||||||
while (true) {
|
while (true) {
|
||||||
c = data.charAt(idx++);
|
c = data.charAt(idx++);
|
||||||
if ((c == '\n') || (c == '\r'))
|
if ((c == '\n') || (c == '\r'))
|
||||||
|
@ -421,7 +421,7 @@ public class GameTree {
|
||||||
break;
|
break;
|
||||||
} else if (c == '"') {
|
} else if (c == '"') {
|
||||||
ret.type = PgnToken.STRING;
|
ret.type = PgnToken.STRING;
|
||||||
StringBuilder sb = new StringBuilder();;
|
StringBuilder sb = new StringBuilder();
|
||||||
while (true) {
|
while (true) {
|
||||||
c = data.charAt(idx++);
|
c = data.charAt(idx++);
|
||||||
if (c == '"') {
|
if (c == '"') {
|
||||||
|
@ -435,7 +435,7 @@ public class GameTree {
|
||||||
break;
|
break;
|
||||||
} else if (c == '$') {
|
} else if (c == '$') {
|
||||||
ret.type = PgnToken.NAG;
|
ret.type = PgnToken.NAG;
|
||||||
StringBuilder sb = new StringBuilder();;
|
StringBuilder sb = new StringBuilder();
|
||||||
while (true) {
|
while (true) {
|
||||||
c = data.charAt(idx++);
|
c = data.charAt(idx++);
|
||||||
if (!Character.isDigit(c)) {
|
if (!Character.isDigit(c)) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user