Repository navigation
(CU-86bbzfzvb) Feat: IsoUtils#getCountryName with the ISO 3166-1 country names, public IsoUtils#isUserAssignedCountryCode - #352
Merged
zubri merged 2 commits intoOct 6, 2026
Conversation
ptorres-prowide
force-pushed
the
CU-86bbzfzvb_MyFormat-eliminate-the-integrator-country-map-use-Prowide-Core
branch
3 times, most recently
from
September 29, 2026 10:58
155c54d to
c61ff1d
Compare
…try names New lookup of the English short name of a country by its alpha-2, alpha-3 or numeric ISO 3166-1 code, case-insensitive and tolerant to missing or extra leading zeros in the numeric code, independent of the default locale.
ptorres-prowide
force-pushed
the
CU-86bbzfzvb_MyFormat-eliminate-the-integrator-country-map-use-Prowide-Core
branch
from
October 1, 2026 12:09
c61ff1d to
dae7475
Compare
…icted to the XA-XZ ASCII range Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
zubri
approved these changes
Oct 6, 2026
zubri
deleted the
CU-86bbzfzvb_MyFormat-eliminate-the-integrator-country-map-use-Prowide-Core
branch
October 6, 2026 12:38
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
IsoUtils#getCountryName(code): the ISO 3166-1 English short name of a country, looked up by its alpha-2 (US), alpha-3 (USA) or numeric (840) code. Case-insensitive, tolerant to surrounding whitespace and to missing or extra leading zeros in the numeric code, independent of the default locale. Returns null for a code that is not officially assigned, including the user assigned XA-XZ range.IsoCountries.txtresource (alpha-2;alpha-3;numeric;name, 249 rows), loaded on first use. No new public type; the existingIsoUtilscountry codes list and itsaddCountry/removeCountrycustomizations are unchanged.The names cannot come from
java.util.Localeas the codes do: the JDK ships CLDR display names, 50 of the 249 differ from the ISO short names ("Antigua & Barbuda", "Turkey", "Russia", "United States"), and the JDK has no numeric codes, which the MyFormat transformation accepts since 9.4.9.Test plan
IsoUtilsTest: lookup by the three codes, case and whitespace leniency, leading zeros, locale independence (ar-EG), unknown and user assigned codes, every JDK country has a name by alpha-2 and alpha-3./gradlew testandspotlessCheckgreen