fix unicode processing mistakes

This commit is contained in:
Grahame Grieve 2024-01-10 11:18:23 +11:00
parent 33f43da3d7
commit ee3400be7d
3 changed files with 4 additions and 4 deletions

View File

@ -482,7 +482,7 @@ public class TurtleTests {
@Test
public void test_localName_with_assigned_nfc_PN_CHARS_BASE_character_boundariesNT() throws Exception {
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
@ -523,7 +523,7 @@ public class TurtleTests {
@Test
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"),
true);
false);
}
@Test

View File

@ -499,7 +499,7 @@ public class FHIRLexer {
break;
case 'u':
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));
i = i + 4;
break;

View File

@ -1767,7 +1767,7 @@ public class FHIRPathEngine {
break;
case 'u':
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));
i = i + 3;
break;