Registry / utility / libphonenumber

libphonenumber

JSON →
library9.0.31vcpkgunverified

Google's common Java, C++ and JavaScript library for parsing, formatting, and validating international phone numbers.

vcpkg install libphonenumber
INSTALL
IMPORT
SIG · LIBPHONENUMBER
L
libphonenumber
utilitycppv9.0.31
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

phonenumbers/phonenumberutil.h
#include <phonenumbers/phonenumberutil.h>

Parse and validate a phone number

#include <phonenumbers/phonenumberutil.h> #include <iostream> int main() { i18n::phonenumbers::PhoneNumberUtil& util = *i18n::phonenumbers::PhoneNumberUtil::GetInstance(); i18n::phonenumbers::PhoneNumber number; util.Parse("+1 650 253 0000", "US", &number); std::cout << "Country code: " << number.country_code() << "\n"; return 0; }
Debug
Known issues
gotchaLarge library with many dependencies (icu, boost, protobuf)
fix
Ensure all dependencies are installed; consider using vcpkg triplet features
affects: *
Upgrade
Version history
9.0.31latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources

No resource links recorded.

libphonenumber — pip install libphonenumber · libregistry