Skip to content

Commit

Permalink
Version 0.4.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Arraying authored and Arraying committed Mar 29, 2018
1 parent 4f2aade commit 7454547
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>de.arraying</groupId>
<artifactId>Kotys</artifactId>
<version>0.4.3</version>
<version>0.4.4</version>
<build>
<plugins>
<plugin>
Expand Down
12 changes: 12 additions & 0 deletions src/main/java/de/arraying/kotys/JSONTokenizer.java
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,18 @@ private void readString()
case 'r':
builder.append('\r');
break;
case 'u':
StringBuilder unicodeBuilder = new StringBuilder();
for(int i = 0; i < 4; i++) {
next();
if(eos) {
break loop;
}
unicodeBuilder.append(character);
}
char value = (char) Integer.parseInt(unicodeBuilder.toString(), 16);
builder.append(value);
break;
case '"':
case '\'':
case '\\':
Expand Down

0 comments on commit 7454547

Please sign in to comment.