mirror of
https://github.com/corda/corda.git
synced 2025-06-04 08:30:52 +00:00
ASCII escapes in property files are now parsed, albeit crudely.
This commit is contained in:
parent
7270eb7879
commit
98166dcc61
@ -137,6 +137,19 @@ public class Properties extends Hashtable {
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 'u':
|
||||||
|
if (escaped) { // ASCII Unicode escape
|
||||||
|
int most = Character.digit((char)in.read(), 16);
|
||||||
|
int more = Character.digit((char)in.read(), 16);
|
||||||
|
int less = Character.digit((char)in.read(), 16);
|
||||||
|
int least = Character.digit((char)in.read(), 16);
|
||||||
|
char utf16 = (char)(most << 12 | more << 8 | less << 4 | least);
|
||||||
|
append(utf16);
|
||||||
|
} else {
|
||||||
|
append(c);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
append(c);
|
append(c);
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user