fix unicode processing mistakes
This commit is contained in:
parent
33f43da3d7
commit
ee3400be7d
|
@ -482,7 +482,7 @@ public class TurtleTests {
|
||||||
@Test
|
@Test
|
||||||
public void test_localName_with_assigned_nfc_PN_CHARS_BASE_character_boundariesNT() throws Exception {
|
public void test_localName_with_assigned_nfc_PN_CHARS_BASE_character_boundariesNT() throws Exception {
|
||||||
doTest(TestingUtilities.resourceNameToFile("turtle",
|
doTest(TestingUtilities.resourceNameToFile("turtle",
|
||||||
"localName_with_assigned_nfc_PN_CHARS_BASE_character_boundaries.nt"), true);
|
"localName_with_assigned_nfc_PN_CHARS_BASE_character_boundaries.nt"), false);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@ -523,7 +523,7 @@ public class TurtleTests {
|
||||||
@Test
|
@Test
|
||||||
public void test_localName_with_nfc_PN_CHARS_BASE_character_boundariesNT() throws Exception {
|
public void test_localName_with_nfc_PN_CHARS_BASE_character_boundariesNT() throws Exception {
|
||||||
doTest(TestingUtilities.resourceNameToFile("turtle", "localName_with_nfc_PN_CHARS_BASE_character_boundaries.nt"),
|
doTest(TestingUtilities.resourceNameToFile("turtle", "localName_with_nfc_PN_CHARS_BASE_character_boundaries.nt"),
|
||||||
true);
|
false);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|
|
@ -499,7 +499,7 @@ public class FHIRLexer {
|
||||||
break;
|
break;
|
||||||
case 'u':
|
case 'u':
|
||||||
i++;
|
i++;
|
||||||
int uc = Integer.parseInt(s.substring(i, i+4), 32);
|
int uc = Integer.parseInt(s.substring(i, i+4), 16);
|
||||||
b.append(Character.toString(uc));
|
b.append(Character.toString(uc));
|
||||||
i = i + 4;
|
i = i + 4;
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -1767,7 +1767,7 @@ public class FHIRPathEngine {
|
||||||
break;
|
break;
|
||||||
case 'u':
|
case 'u':
|
||||||
i++;
|
i++;
|
||||||
int uc = Integer.parseInt(s.substring(i, i + 4), 32);
|
int uc = Integer.parseInt(s.substring(i, i + 4), 16);
|
||||||
b.append(Character.toString(uc));
|
b.append(Character.toString(uc));
|
||||||
i = i + 3;
|
i = i + 3;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue