mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +02:00
8174269: Remove COMPAT locale data provider from JDK
Reviewed-by: ihse, joehw
This commit is contained in:
parent
c6641c7d2d
commit
809995b526
565 changed files with 1106 additions and 67327 deletions
|
@ -4694,10 +4694,14 @@ public final class DateTimeFormatterBuilder {
|
|||
if (length >= position + 3 && context.charEquals(text.charAt(position + 2), 'C')) {
|
||||
// There are localized zone texts that start with "UTC", e.g.
|
||||
// "UTC\u221210:00" (MINUS SIGN instead of HYPHEN-MINUS) in French.
|
||||
// Exclude those cases.
|
||||
if (length == position + 3 ||
|
||||
context.charEquals(text.charAt(position + 3), '+') ||
|
||||
context.charEquals(text.charAt(position + 3), '-')) {
|
||||
// Treat them as normal '-' with the offset parser (using text parser would
|
||||
// be problematic due to std/dst distinction)
|
||||
if (length > position + 3 && context.charEquals(text.charAt(position + 3), '\u2212')) {
|
||||
var tmpText = "%s-%s".formatted(
|
||||
text.subSequence(0, position + 3),
|
||||
text.subSequence(position + 4, text.length()));
|
||||
return parseOffsetBased(context, tmpText, position, position + 3, OffsetIdPrinterParser.INSTANCE_ID_ZERO);
|
||||
} else {
|
||||
return parseOffsetBased(context, text, position, position + 3, OffsetIdPrinterParser.INSTANCE_ID_ZERO);
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue