Skip to content

Commit

Permalink
Renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
mneri committed Nov 19, 2018
1 parent 3f5fa37 commit e095720
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/main/java/me/mneri/csv/CsvReader.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ public final class CsvReader<T> implements Closeable {
//@formatter:off
private static final byte ERR = -2;
private static final byte EOF = -1;
private static final byte STRLN = 0;
private static final byte STRFL = 1;
private static final byte STRTL = 0;
private static final byte STRTF = 1;
private static final byte QUOTE = 2;
private static final byte ESCAP = 3;
private static final byte STRNG = 4;
Expand All @@ -48,11 +48,11 @@ public final class CsvReader<T> implements Closeable {

private static final byte[][] TRANSITIONS = {
// * " , \r \n EOF
{ STRNG , QUOTE , STRFL , CARRG , ENDLN , EOF }, // STRLN
{ STRNG , QUOTE , STRFL , CARRG , ENDLN , EOF }, // STRFL
{ STRNG , QUOTE , STRTF , CARRG , ENDLN , EOF }, // STRTL
{ STRNG , QUOTE , STRTF , CARRG , ENDLN , EOF }, // STRTF
{ QUOTE , ESCAP , QUOTE , QUOTE , QUOTE , ERR }, // QUOTE
{ ERR , QUOTE , STRFL , CARRG , ENDLN , EOF }, // ESCAP
{ STRNG , STRNG , STRFL , CARRG , ENDLN , EOF }, // STRNG
{ ERR , QUOTE , STRTF , CARRG , ENDLN , EOF }, // ESCAP
{ STRNG , STRNG , STRTF , CARRG , ENDLN , EOF }, // STRNG
{ ERR , ERR , ERR , ERR , ENDLN , ERR }}; // CARRG

private static final byte NO_OP = 0;
Expand All @@ -62,8 +62,8 @@ public final class CsvReader<T> implements Closeable {

private static final byte[][] ACTIONS = {
// * " , \r \n EOF
{ ACCUM , NO_OP , FIELD , NO_OP , FIELD | NLINE, NO_OP }, // STRLN
{ ACCUM , NO_OP , FIELD , NO_OP , FIELD | NLINE, FIELD | NLINE }, // STRFL
{ ACCUM , NO_OP , FIELD , NO_OP , FIELD | NLINE, NO_OP }, // STRTL
{ ACCUM , NO_OP , FIELD , NO_OP , FIELD | NLINE, FIELD | NLINE }, // STRTF
{ ACCUM , NO_OP , ACCUM , ACCUM , ACCUM , NO_OP }, // QUOTE
{ NO_OP , ACCUM , FIELD , NO_OP , FIELD | NLINE, FIELD | NLINE }, // ESCAP
{ ACCUM , ACCUM , FIELD , NO_OP , FIELD | NLINE, FIELD | NLINE }, // STRNG
Expand Down Expand Up @@ -165,7 +165,7 @@ public boolean hasNext() throws CsvException, IOException {

checkClosedState();

byte row = STRLN;
byte row = STRTL;
int nextChar;

do {
Expand Down Expand Up @@ -370,7 +370,7 @@ public void skip(int n) throws CsvException, IOException {
}
}

byte row = STRLN;
byte row = STRTL;
int nextChar;

do {
Expand All @@ -385,7 +385,7 @@ public void skip(int n) throws CsvException, IOException {
return;
}

row = STRLN;
row = STRTL;
} else {
row = TRANSITIONS[row][column];
}
Expand Down

0 comments on commit e095720

Please sign in to comment.