LibPhoneNumbr (Google)
Google's common Java, C++ and JavaScript library for parsing, formatting, and validating international phone numbers.
<dependency>
<groupId>com.googlecode.libphonenumber</groupId>
<artifactId>libphonenumber</artifactId>
<version>9.0.32</version>
</dependency>
Hi all,
Please find the new JARs on the maven site here.
The new release contains metadata changes and some code changes. Upgrading to the latest release is always encouraged since phone number information changes often!
New functionality in this release:
Improve parsing logic to be smarter about national-prefix detection & stripping based on possible-lengths (IS_POSSIBLE_LOCAL_ONLY and INVALID_LENGTH). Enables e.g. adding Iran short-codes starting with "096" without the need to hack IR's national prefix parsing config. Add constants for C++ PhoneNumberUtil enums' max values.
Full details in the release notes.
Note if you take advantage of this new functionality by changing your code, it will not necessarily be trivially easy to roll back to a previous version.
Thanks to all those who contributed by providing issue reports!
Want to be notified of future releases? Join the discussion group!