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 @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

View File

@ -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;

View File

@ -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;