Google's common Java, C++ and JavaScript library for parsing, formatting, and validating international phone numbers.
593 matches across 6 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tools/script/continuous-integration.sh | 1 | #! /bin/sh |
| LOW | tools/cpp/CMakeLists.txt | 1 | # Copyright (C) 2012 The Libphonenumber Authors |
| LOW | tools/cpp/src/cpp-build/generate_geocoding_data.h | 1 | // Copyright (C) 2012 The Libphonenumber Authors |
| LOW | tools/cpp/src/base/basictypes.h | 1 | // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| LOW | tools/cpp/src/base/basictypes.h | 61 | #endif |
| LOW | tools/cpp/src/base/basictypes.h | 81 | #else |
| LOW | tools/cpp/src/base/basictypes.h | 101 | #endif |
| LOW | tools/cpp/src/base/basictypes.h | 121 | DISALLOW_COPY_AND_ASSIGN(TypeName) |
| LOW | tools/cpp/src/base/basictypes.h | 141 | // That gcc wants both of these prototypes seems mysterious. VC, for |
| LOW | tools/cpp/src/base/basictypes.h | 161 | // |
| LOW | tools/cpp/src/base/basictypes.h | 181 | // !(sizeof(a) & sizeof(*(a))) to size_t in order to ensure the final |
| LOW | tools/cpp/src/base/basictypes.h | 201 | // Such explicit implicit_casts are necessary in surprisingly many |
| LOW | tools/cpp/src/base/basictypes.h | 221 | // |
| LOW | tools/cpp/src/base/basictypes.h | 241 | struct CompileAssert { |
| LOW | tools/cpp/src/base/basictypes.h | 261 | // elements (and thus is invalid) when the expression is false. |
| LOW | tools/cpp/src/base/basictypes.h | 281 | // to work around a bug in gcc 3.4.4 and 4.0.1. If we had written |
| LOW | tools/cpp/src/base/basictypes.h | 301 | // Used to explicitly mark the return value of a function as unused. If you are |
| LOW | tools/cpp/src/base/basictypes.h | 321 | // does nothing to the storage, AND there are no virtual methods, then a |
| LOW | resources/test/geocoding/de/1.txt | 1 | # Copyright (C) 2011 The Libphonenumber Authors |
| LOW | resources/test/geocoding/en/54.txt | 1 | # Copyright (C) 2013 The Libphonenumber Authors |
| LOW | resources/test/carrier/sv/44.txt | 1 | # Copyright (C) 2013 The Libphonenumber Authors |
| LOW | resources/test/carrier/en/44.txt | 1 | # Copyright (C) 2013 The Libphonenumber Authors |
| LOW | resources/test/carrier/en/1.txt | 1 | # Copyright (C) 2013 The Libphonenumber Authors |
| LOW | resources/test/carrier/en/244.txt | 1 | # Copyright (C) 2013 The Libphonenumber Authors |
| LOW | resources/timezones/map_data.txt | 1 | # Copyright (C) 2012 The Libphonenumber Authors |
| LOW | resources/geocoding/pl/48.txt | 1 | # Copyright (C) 2011 The Libphonenumber Authors |
| LOW | resources/geocoding/vi/84.txt | 1 | # Copyright (C) 2011 The Libphonenumber Authors |
| LOW | resources/geocoding/sq/383.txt | 1 | # Copyright (C) 2017 The Libphonenumber Authors |
| LOW | resources/geocoding/sv/358.txt | 1 | # Copyright (C) 2011 The Libphonenumber Authors |
| LOW | resources/geocoding/sv/46.txt | 1 | # Copyright (C) 2011 The Libphonenumber Authors |
| LOW | resources/geocoding/hy/374.txt | 1 | # Copyright (C) 2013 The Libphonenumber Authors |
| LOW | resources/geocoding/be/375.txt | 1 | # Copyright (C) 2013 The Libphonenumber Authors |
| LOW | resources/geocoding/kk/7.txt | 1 | # Copyright (C) 2026 The Libphonenumber Authors |
| LOW | resources/geocoding/ja/81.txt | 1 | # Copyright (C) 2011 The Libphonenumber Authors |
| LOW | resources/geocoding/el/30.txt | 1 | # Copyright (C) 2011 The Libphonenumber Authors |
| LOW | resources/geocoding/it/39.txt | 1 | # Copyright (C) 2011 The Libphonenumber Authors |
| LOW | resources/geocoding/it/41.txt | 1 | # Copyright (C) 2011 The Libphonenumber Authors |
| LOW | resources/geocoding/ru/375.txt | 1 | # Copyright (C) 2013 The Libphonenumber Authors |
| LOW | resources/geocoding/ru/374.txt | 1 | # Copyright (C) 2013 The Libphonenumber Authors |
| LOW | resources/geocoding/ru/373.txt | 1 | # Copyright (C) 2011 The Libphonenumber Authors |
| LOW | resources/geocoding/ru/7.txt | 1 | # Copyright (C) 2012 The Libphonenumber Authors |
| LOW | resources/geocoding/zh_Hant/886.txt | 1 | # Copyright (C) 2011 The Libphonenumber Authors |
| LOW | resources/geocoding/ro/373.txt | 1 | # Copyright (C) 2011 The Libphonenumber Authors |
| LOW | resources/geocoding/ro/40.txt | 1 | # Copyright (C) 2012 The Libphonenumber Authors |
| LOW | resources/geocoding/pt/258.txt | 1 | # Copyright (C) 2011 The Libphonenumber Authors |
| LOW | resources/geocoding/pt/238.txt | 1 | # Copyright (C) 2011 The Libphonenumber Authors |
| LOW | resources/geocoding/pt/239.txt | 1 | # Copyright (C) 2011 The Libphonenumber Authors |
| LOW | resources/geocoding/pt/55.txt | 1 | # Copyright (C) 2011 The Libphonenumber Authors |
| LOW | resources/geocoding/pt/351.txt | 1 | # Copyright (C) 2011 The Libphonenumber Authors |
| LOW | resources/geocoding/pt/245.txt | 1 | # Copyright (C) 2011 The Libphonenumber Authors |
| LOW | resources/geocoding/pt/244.txt | 1 | # Copyright (C) 2011 The Libphonenumber Authors |
| LOW | resources/geocoding/zh/886.txt | 1 | # Copyright (C) 2011 The Libphonenumber Authors |
| LOW | resources/geocoding/uk/380.txt | 1 | # Copyright (C) 2018 The Libphonenumber Authors |
| LOW | resources/geocoding/sr/383.txt | 1 | # Copyright (C) 2017 The Libphonenumber Authors |
| LOW | resources/geocoding/sr/381.txt | 1 | # Copyright (C) 2011 The Libphonenumber Authors |
| LOW | resources/geocoding/sr/387.txt | 1 | # Copyright (C) 2017 The Libphonenumber Authors |
| LOW | resources/geocoding/bs/387.txt | 1 | # Copyright (C) 2017 The Libphonenumber Authors |
| LOW | resources/geocoding/ar/966.txt | 1 | # Copyright (C) 2013 The Libphonenumber Authors |
| LOW | resources/geocoding/hr/387.txt | 1 | # Copyright (C) 2017 The Libphonenumber Authors |
| LOW | resources/geocoding/hu/36.txt | 1 | # Copyright (C) 2011 The Libphonenumber Authors |
| 434 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 269 | function testGetInstanceLoadUSMetadata() { |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 293 | function testGetInstanceLoadDEMetadata() { |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 315 | function testGetInstanceLoadARMetadata() { |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 334 | function testGetInstanceLoadInternationalTollFreeMetadata() { |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 363 | function testGetLengthOfGeographicalAreaCode() { |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 398 | function testGetLengthOfNationalDestinationCode() { |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 440 | function testGetCountryMobileToken() { |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 460 | function testGetSupportedGlobalNetworkCallingCodes() { |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 472 | function testGetSupportedCallingCodes() { |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 488 | function testGetSupportedTypesForRegion() { |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 509 | function testGetSupportedTypesForNonGeoEntity() { |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 523 | function testGetNationalSignificantNumber() { |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 580 | function testGetExampleNumberForNonGeoEntity() { |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 587 | function testConvertAlphaCharactersInNumber() { |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 598 | function testNormaliseRemovePunctuation() { |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 608 | function testNormaliseReplaceAlphaCharacters() { |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 634 | function testNormaliseStripAlphaCharacters() { |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 644 | function testNormaliseStripNonDiallableCharacters() { |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 811 | function testFormatOutOfCountryCallingNumber() { |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 879 | function testFormatOutOfCountryWithInvalidRegion() { |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 892 | function testFormatOutOfCountryWithPreferredIntlPrefix() { |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 907 | function testFormatOutOfCountryKeepingAlphaChars() { |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 1030 | function testFormatWithCarrierCode() { |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 1060 | function testFormatWithPreferredCarrierCode() { |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 1107 | function testFormatNumberForMobileDialing() { |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 1363 | function testFormatNumberWithExtension() { |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 1383 | function testFormatInOriginalFormat() { |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 1811 | function testGetRegionCodeForCountryCode() { |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 1819 | function testGetRegionCodeForNumber() { |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 1831 | function testGetRegionCodesForCountryCode() { |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 1846 | function testGetCountryCodeForRegion() { |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 1856 | function testGetNationalDiallingPrefixForRegion() { |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 2006 | function testIsPossibleNumberWithReason() { |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 2331 | function testTruncateTooLongNumber() { |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 2414 | function testIsViablePhoneNumberNonAscii() { |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 2426 | function testExtractPossibleNumber() { |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 2450 | function testMaybeStripNationalPrefix() { |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 2518 | function testMaybeStripInternationalPrefix() { |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 2599 | function testMaybeExtractCountryCode() { |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 2861 | function testParseNumberWithAlphaCharacters() { |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 2925 | function testParseWithInternationalPrefixes() { |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 2985 | function testParseNationalNumberArgentina() { |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 3071 | function testFailedParseOnInvalidNumbers() { |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 3349 | function testParseNumbersWithPlusWithNoRegion() { |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 3387 | function testParseNumberTooShortIfNationalPrefixStripped() { |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 3555 | function testParseHandlesLongExtensionsWithExplicitLabels() { |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 3613 | function testParseHandlesLongExtensionsWithAutoDiallingLabels() { |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 3644 | function testParseHandlesShortExtensionsWithAmbiguousChar() { |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 3674 | function testParseHandlesShortExtensionsWhenNotSureOfLabel() { |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 3752 | function testParseItalianLeadingZeros() { |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 3789 | function testParseWithPhoneContext() { |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 3843 | function assertThrowsForInvalidPhoneContext(numberToParse) { |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 3851 | function testCountryWithNoNumberDesc() { |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 3872 | function testUnknownCountryCallingCode() { |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 3951 | function testIsNumberMatchShortMatchIfDiffNumLeadingZeros() { |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 3981 | function testIsNumberMatchAcceptsProtoDefaultsAsMatch() { |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 4003 | function testIsNumberMatchMatchesDiffLeadingZerosIfItalianLeadingZeroFalse() { |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 4029 | function testIsNumberMatchIgnoresSomeFields() { |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 4052 | function testIsNumberMatchNonMatches() { |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 4097 | function testIsNumberMatchNsnMatches() { |
| 18 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | cpp/CMakeLists.txt | 426 | #---------------------------------------------------------------- |
| MEDIUM | cpp/CMakeLists.txt | 428 | #---------------------------------------------------------------- |
| MEDIUM | cpp/CMakeLists.txt | 453 | #---------------------------------------------------------------- |
| MEDIUM | cpp/CMakeLists.txt | 455 | #---------------------------------------------------------------- |
| MEDIUM | cpp/CMakeLists.txt | 510 | #---------------------------------------------------------------- |
| MEDIUM | cpp/CMakeLists.txt | 512 | #---------------------------------------------------------------- |
| MEDIUM | cpp/CMakeLists.txt | 600 | #---------------------------------------------------------------- |
| MEDIUM | cpp/CMakeLists.txt | 602 | #---------------------------------------------------------------- |
| MEDIUM | cpp/CMakeLists.txt | 627 | #---------------------------------------------------------------- |
| MEDIUM | cpp/CMakeLists.txt | 629 | #---------------------------------------------------------------- |
| MEDIUM | cpp/CMakeLists.txt | 696 | #---------------------------------------------------------------- |
| MEDIUM | cpp/CMakeLists.txt | 698 | #---------------------------------------------------------------- |
| MEDIUM | cpp/CMakeLists.txt | 715 | #---------------------------------------------------------------- |
| MEDIUM | cpp/CMakeLists.txt | 717 | #---------------------------------------------------------------- |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | javascript/i18n/phonenumbers/phonenumber.pb.js | 544 | // Export getDescriptor static function robust to minification. |
| MEDIUM | …8n/phonenumbers/metadata/regex/RegexGeneratorTest.java | 56 | // Essentially create a "thin" wedge of specific non-determinism with the shorter (5-digit) |
| MEDIUM | …oogle/i18n/phonenumbers/metadata/table/RangeTable.java | 717 | // to avoid creating conflicting assignments for different values. Essentially we're trying to |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | …oogle/i18n/phonenumbers/metadata/table/RangeTable.java | 701 | // Step 1: Determine overlapping ranges from the index table, retaining minimum prefix length. |
| LOW | …oogle/i18n/phonenumbers/metadata/table/RangeTable.java | 713 | // Step 2: Determine the "prefix disjoint" ranges in a new table and simplify it. |
| LOW | …oogle/i18n/phonenumbers/metadata/table/RangeTable.java | 780 | // Step 3: Copy remaining overlapping ranges from the original table back into the result. |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | …oogle/i18n/phonenumbers/metadata/regex/EdgeWriter.java | 113 | // If the last thing we saw in this sequence was an "any" edge, don't forget to emit it. |