external/libphonenumber/cpp/src/phonenumbers.git
3 weeks agoCPP v6.2 plus README update master
lararennie@google.com [Mon, 30 Jun 2014 11:35:15 +0000 (11:35 +0000)]
CPP v6.2 plus README update

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@676 ee073f10-1060-11df-b6a4-87a95322a99c

6 weeks agoJAVA/JS/CPP: Metadata updates, v6.1.1
lararennie@google.com [Tue, 10 Jun 2014 09:01:11 +0000 (09:01 +0000)]
JAVA/JS/CPP: Metadata updates, v6.1.1

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@669 ee073f10-1060-11df-b6a4-87a95322a99c

2 months agoJAVA/CPP: Handle phone number input in RFC3966 with missing "tel:" prefix.
jia.shao.peng@gmail.com [Tue, 20 May 2014 12:33:32 +0000 (12:33 +0000)]
JAVA/CPP: Handle phone number input in RFC3966 with missing "tel:" prefix.
Review URL: https://codereview.appspot.com/96510044

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@664 ee073f10-1060-11df-b6a4-87a95322a99c

2 months agoJAVA/CPP: Better exclusion of dates, change in build error messages.
lararennie@google.com [Tue, 20 May 2014 09:30:10 +0000 (09:30 +0000)]
JAVA/CPP: Better exclusion of dates, change in build error messages.

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@663 ee073f10-1060-11df-b6a4-87a95322a99c

2 months agoPorting fix for AYTF to C++, small comment updates.
lararennie@google.com [Tue, 13 May 2014 08:12:52 +0000 (08:12 +0000)]
Porting fix for AYTF to C++, small comment updates.

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@661 ee073f10-1060-11df-b6a4-87a95322a99c

2 months agoJAVA/JS/CPP: libphonenumber v6.1
lararennie@google.com [Thu, 8 May 2014 12:46:50 +0000 (12:46 +0000)]
JAVA/JS/CPP: libphonenumber v6.1

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@656 ee073f10-1060-11df-b6a4-87a95322a99c

4 months agoJAVA/JS/CPP: libphonenumber v6.0
lararennie@google.com [Wed, 26 Feb 2014 09:18:02 +0000 (09:18 +0000)]
JAVA/JS/CPP: libphonenumber v6.0

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@650 ee073f10-1060-11df-b6a4-87a95322a99c

5 months agoJS/CPP/JAVA: libphonenumber v5.9.4 metadata updates
jia.shao.peng [Fri, 7 Feb 2014 13:23:18 +0000 (13:23 +0000)]
JS/CPP/JAVA: libphonenumber v5.9.4 metadata updates
Review URL: https://codereview.appspot.com/60870046

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@648 ee073f10-1060-11df-b6a4-87a95322a99c

6 months agoJS/CPP/JAVA: libphonenumber v4.9.3 metadata updates
lararennie@google.com [Tue, 21 Jan 2014 12:38:52 +0000 (12:38 +0000)]
JS/CPP/JAVA: libphonenumber v4.9.3 metadata updates

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@647 ee073f10-1060-11df-b6a4-87a95322a99c

7 months agoJS/CPP/JAVA: libphonenumber v5.9.2 metadata updates
lararennie@google.com [Fri, 20 Dec 2013 10:13:13 +0000 (10:13 +0000)]
JS/CPP/JAVA: libphonenumber v5.9.2 metadata updates

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@644 ee073f10-1060-11df-b6a4-87a95322a99c

7 months agoJS/CPP/JAVA: libphonenumber 5.9.1 metadata updates.
lararennie@google.com [Fri, 13 Dec 2013 12:30:37 +0000 (12:30 +0000)]
JS/CPP/JAVA: libphonenumber 5.9.1 metadata updates.

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@643 ee073f10-1060-11df-b6a4-87a95322a99c

8 months agoJAVA/JS/CPP: Libphonenumber v5.9, code & metadata changes.
lararennie@google.com [Tue, 12 Nov 2013 11:44:47 +0000 (11:44 +0000)]
JAVA/JS/CPP: Libphonenumber v5.9, code & metadata changes.

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@622 ee073f10-1060-11df-b6a4-87a95322a99c

9 months agoCPP: Remove uses of std::{cerr,endl} in production code.
philip.liard@gmail.com [Fri, 18 Oct 2013 09:56:13 +0000 (09:56 +0000)]
CPP: Remove uses of std::{cerr,endl} in production code.

They generated static initializers on Clang/Mac.

This also adds the previously missing <algorithm> include in unicodetext.cc
causing a compilation error on VS2013.

This is a squash of (very slightly modified) patches contributed by thakis@ and
yosin@.

R=roes@google.com

Review URL: https://codereview.appspot.com/14930044

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@621 ee073f10-1060-11df-b6a4-87a95322a99c

9 months agoJAVA/JS/CPP v5.8.8: metadata updates, small test & comment fixes.
lararennie@google.com [Thu, 10 Oct 2013 15:44:15 +0000 (15:44 +0000)]
JAVA/JS/CPP v5.8.8: metadata updates, small test & comment fixes.

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@620 ee073f10-1060-11df-b6a4-87a95322a99c

9 months agoJS/C++: Added mobile token support to phone number util
roes@google.com [Tue, 8 Oct 2013 13:09:13 +0000 (13:09 +0000)]
JS/C++: Added mobile token support to phone number util

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@619 ee073f10-1060-11df-b6a4-87a95322a99c

10 months agoJAVA/JS/CPP v5.8.1: metadata updates
lararennie@google.com [Thu, 19 Sep 2013 12:07:02 +0000 (12:07 +0000)]
JAVA/JS/CPP v5.8.1: metadata updates

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@607 ee073f10-1060-11df-b6a4-87a95322a99c

10 months agoJAVA/JS/CPP: libphonenumber v5.8. ShortNumberInfo API, metadata updates, small bug...
lararennie@google.com [Mon, 2 Sep 2013 17:02:03 +0000 (17:02 +0000)]
JAVA/JS/CPP: libphonenumber v5.8. ShortNumberInfo API, metadata updates, small bug fixes. See the release notes for more information.

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@603 ee073f10-1060-11df-b6a4-87a95322a99c

11 months agoJAVA/JS/CPP: libphonenumber v5.7.2, metadata.
lararennie@google.com [Mon, 12 Aug 2013 09:26:00 +0000 (09:26 +0000)]
JAVA/JS/CPP: libphonenumber v5.7.2, metadata.

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@602 ee073f10-1060-11df-b6a4-87a95322a99c

11 months agolibphonenumber v5.7.1: Changing metadata generation to exclude irrelevant data. No...
lararennie@google.com [Thu, 8 Aug 2013 11:14:29 +0000 (11:14 +0000)]
libphonenumber v5.7.1: Changing metadata generation to exclude irrelevant data. No change in functionality.

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@600 ee073f10-1060-11df-b6a4-87a95322a99c

11 months agoFixing issue where default_logger.h conflates LOG and VLOG. Issue reported and origin...
lararennie@google.com [Tue, 6 Aug 2013 13:58:58 +0000 (13:58 +0000)]
Fixing issue where default_logger.h conflates LOG and VLOG. Issue reported and original idea for a fix provided by ben.darnell.

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@599 ee073f10-1060-11df-b6a4-87a95322a99c

12 months agoCPP: libphonenumber v5.7 changes - small improvement to phone number extraction,...
lararennie@google.com [Fri, 19 Jul 2013 16:32:26 +0000 (16:32 +0000)]
CPP: libphonenumber v5.7 changes - small improvement to phone number extraction, updates to metadata after build tool changes.

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@598 ee073f10-1060-11df-b6a4-87a95322a99c

12 months agoJAVA/JS/CPP: libphonenumber v5.6.2 metadata updates.
lararennie@google.com [Tue, 16 Jul 2013 09:49:39 +0000 (09:49 +0000)]
JAVA/JS/CPP: libphonenumber v5.6.2 metadata updates.

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@590 ee073f10-1060-11df-b6a4-87a95322a99c

12 months agoCPP: Fixing crash when AsYouTypeFormatter tries to handle countries with long numbers...
lararennie@google.com [Tue, 2 Jul 2013 13:16:17 +0000 (13:16 +0000)]
CPP: Fixing crash when AsYouTypeFormatter tries to handle countries with long numbers. Patch contributed by Vonage Holdings Corp.

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@585 ee073f10-1060-11df-b6a4-87a95322a99c

13 months agoCPP: Fix compilation error on Windows.
philip.liard@gmail.com [Mon, 17 Jun 2013 15:12:24 +0000 (15:12 +0000)]
CPP: Fix compilation error on Windows.

This appears when the library is built in Chromium.

R=lararennie@google.com

Review URL: https://codereview.appspot.com/10286044

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@584 ee073f10-1060-11df-b6a4-87a95322a99c

13 months agoCPP: Add suport for thread-safety on Linux and Mac in non-Boost base/.
philip.liard@gmail.com [Mon, 17 Jun 2013 11:53:01 +0000 (11:53 +0000)]
CPP: Add suport for thread-safety on Linux and Mac in non-Boost base/.

This is needed for Chrome on Android which is the only Chrome port that
requires thread-safety.

R=lararennie@google.com

Review URL: https://codereview.appspot.com/10244046

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@583 ee073f10-1060-11df-b6a4-87a95322a99c

13 months agoJAVA/JS/CPP: libphonenumber v5.6
lararennie@google.com [Mon, 10 Jun 2013 08:30:23 +0000 (08:30 +0000)]
JAVA/JS/CPP: libphonenumber v5.6

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@579 ee073f10-1060-11df-b6a4-87a95322a99c

14 months agoJAVA/C++/JS: libphonenumber v5.5
dbeaumont@google.com [Wed, 8 May 2013 15:14:06 +0000 (15:14 +0000)]
JAVA/C++/JS: libphonenumber v5.5

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@574 ee073f10-1060-11df-b6a4-87a95322a99c

14 months agoCPP: Fix compilation error on Clang.
philip.liard@gmail.com [Tue, 7 May 2013 13:08:44 +0000 (13:08 +0000)]
CPP: Fix compilation error on Clang.

This fixes a compilation error on Clang due to conflicting declarations (struct
vs class) in multiple header files.

BUG=http://crbug.com/236272
R=jia.shao.peng@gmail.com

Review URL: https://codereview.appspot.com/9259043

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@573 ee073f10-1060-11df-b6a4-87a95322a99c

14 months agoCPP: Make use of alternate format controlled at compile time.
philip.liard@gmail.com [Tue, 7 May 2013 12:59:58 +0000 (12:59 +0000)]
CPP: Make use of alternate format controlled at compile time.

This is needed to use a recent revision of libphonenumber in Chromium without
building with alternate formats.

BUG=http://crbug.com/236272
R=jia.shao.peng@gmail.com

Review URL: https://codereview.appspot.com/9215046

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@572 ee073f10-1060-11df-b6a4-87a95322a99c

14 months agoCPP: Make r570 compile in Chromium.
philip.liard@gmail.com [Fri, 3 May 2013 13:49:35 +0000 (13:49 +0000)]
CPP: Make r570 compile in Chromium.

This CL ensures that:
- All declarations in headers are made in the i18n::phonenumbers namespace.
- All USE flags/macros are prefixed with I18N_PHONENUMBERS_ to avoid name
  clashes.
- All the code in base/ is actually used (by deleting unused code).
- Outdated occurrences of USE_GOOGLE_BASE don't exist anymore.
- Logging in PhoneNumberUtil is disabled by default (in production). However it
  can be enabled by calling PhoneNumberUtil::SetLogger() as it is now done
  during testing.

BUG=http://crbug.com/236272
R=jia.shao.peng@gmail.com

Review URL: https://codereview.appspot.com/9162043

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@571 ee073f10-1060-11df-b6a4-87a95322a99c

14 months agoCPP: Add base/thread_checker.h.
philip.liard@gmail.com [Thu, 2 May 2013 13:26:39 +0000 (13:26 +0000)]
CPP: Add base/thread_checker.h.

This lets make sure that the library is only called in Chromium from the UI
thread.

BUG=http://crbug.com/236272
R=jia.shao.peng@gmail.com

Review URL: https://codereview.appspot.com/9048043

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@570 ee073f10-1060-11df-b6a4-87a95322a99c

14 months agoCPP: Move base code to i18n::phonenumbers namespace.
philip.liard@gmail.com [Tue, 30 Apr 2013 15:40:46 +0000 (15:40 +0000)]
CPP: Move base code to i18n::phonenumbers namespace.

This is needed to avoid name clashes when the library is embedded into
Chromium.

BUG=http://crbug.com/236272
R=jia.shao.peng@gmail.com

Review URL: https://codereview.appspot.com/9029045

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@569 ee073f10-1060-11df-b6a4-87a95322a99c

14 months agoCPP: Make libphonenumber depend on its own base/ when it's used in Chromium.
philip.liard@gmail.com [Tue, 30 Apr 2013 12:08:05 +0000 (12:08 +0000)]
CPP: Make libphonenumber depend on its own base/ when it's used in Chromium.

This is done by adding a USE_BOOST compile time flag that is enabled by default
when the library is compiled with CMake (mainly for external users).

In Chromium, the library will be built without the USE_BOOST compile time flag.
Instead the NO_THREAD_SAFETY flag will have to be provided so that the minimal
non-thread-safe subset of base will be used.
This is possible since libphonenumber is only used from the UI thread in
Chromium.

BUG=http://crbug.com/236272
R=jia.shao.peng@gmail.com

Review URL: https://codereview.appspot.com/8859052

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@568 ee073f10-1060-11df-b6a4-87a95322a99c

14 months agoCPP: Move base/ to phonenumbers/.
philip.liard@gmail.com [Tue, 30 Apr 2013 11:35:55 +0000 (11:35 +0000)]
CPP: Move base/ to phonenumbers/.

This will be needed to make libphonenumber depend on its own base/ rather than
Chromium's one as it is the case currently.

BUG=http://crbug.com/236272
R=jia.shao.peng@gmail.com

Review URL: https://codereview.appspot.com/8797048

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@567 ee073f10-1060-11df-b6a4-87a95322a99c

14 months agoCPP: Move base/string_piece.* to base/strings/.
philip.liard@gmail.com [Mon, 29 Apr 2013 15:23:32 +0000 (15:23 +0000)]
CPP: Move base/string_piece.* to base/strings/.

This change is needed to embed libphonenumber into Chromium past r191206.

BUG=http://crbug.com/236272
R=jia.shao.peng@gmail.com

Review URL: https://codereview.appspot.com/9014043

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@566 ee073f10-1060-11df-b6a4-87a95322a99c

15 months agoJAVA/JS/CPP:libphonenumber v5.4.2
jia.shao.peng [Fri, 19 Apr 2013 14:24:48 +0000 (14:24 +0000)]
JAVA/JS/CPP:libphonenumber v5.4.2

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@563 ee073f10-1060-11df-b6a4-87a95322a99c

15 months agoJAVA/CPP/JS: libphonenumber 5.4.1
jia.shao.peng [Tue, 26 Mar 2013 10:26:36 +0000 (10:26 +0000)]
JAVA/CPP/JS: libphonenumber 5.4.1

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@562 ee073f10-1060-11df-b6a4-87a95322a99c

16 months agolibphonenumber v5.4 release.
jia.shao.peng [Fri, 8 Mar 2013 12:06:47 +0000 (12:06 +0000)]
libphonenumber v5.4 release.
Review URL: https://codereview.appspot.com/7570043

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@557 ee073f10-1060-11df-b6a4-87a95322a99c

17 months agoJava/JS/CPP: libphonenumber v5.3.2, metadata updates. Includes geocoding data for...
lararennie@google.com [Tue, 12 Feb 2013 08:43:03 +0000 (08:43 +0000)]
Java/JS/CPP: libphonenumber v5.3.2, metadata updates. Includes geocoding data for Belarus, with contributions from g1smd.

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@556 ee073f10-1060-11df-b6a4-87a95322a99c

17 months agometadata update 5.3.1
davinci@google.com [Mon, 28 Jan 2013 09:12:06 +0000 (09:12 +0000)]
metadata update 5.3.1

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@554 ee073f10-1060-11df-b6a4-87a95322a99c

18 months agoJAVA/CPP/JS: libphonenumber v5.3, offlinegeocode v2.4
lararennie@google.com [Wed, 9 Jan 2013 13:00:15 +0000 (13:00 +0000)]
JAVA/CPP/JS: libphonenumber v5.3, offlinegeocode v2.4

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@550 ee073f10-1060-11df-b6a4-87a95322a99c

19 months agoJAVA/JS/CPP: libphonenumber v5.2.2, metadata updates. Gabon geocoding data added...
lararennie@google.com [Thu, 6 Dec 2012 13:12:32 +0000 (13:12 +0000)]
JAVA/JS/CPP: libphonenumber v5.2.2, metadata updates. Gabon geocoding data added with help from g1smd.

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@548 ee073f10-1060-11df-b6a4-87a95322a99c

19 months agoDATA: Update for the GB premium-rate pattern. Contributed by g1smd.
lararennie@google.com [Tue, 27 Nov 2012 12:35:54 +0000 (12:35 +0000)]
DATA: Update for the GB premium-rate pattern. Contributed by g1smd.

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@547 ee073f10-1060-11df-b6a4-87a95322a99c

19 months agoJAVA/JS/CPP: Small comment change in the as-you-type-formatter. Patch contributed...
lararennie@google.com [Tue, 27 Nov 2012 12:33:53 +0000 (12:33 +0000)]
JAVA/JS/CPP: Small comment change in the as-you-type-formatter. Patch contributed by g1smd.

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@546 ee073f10-1060-11df-b6a4-87a95322a99c

19 months agoJAVA/JS/CPP: libphonenumber v5.2.1, metadata updates.
lararennie@google.com [Tue, 27 Nov 2012 09:23:24 +0000 (09:23 +0000)]
JAVA/JS/CPP: libphonenumber v5.2.1, metadata updates.

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@545 ee073f10-1060-11df-b6a4-87a95322a99c

20 months agoCPP: Implement PhoneNumberOfflineGeocoder.
philip.liard@gmail.com [Wed, 31 Oct 2012 13:21:11 +0000 (13:21 +0000)]
CPP: Implement PhoneNumberOfflineGeocoder.

Patch contributed by pmezard.

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@537 ee073f10-1060-11df-b6a4-87a95322a99c

21 months agoJAVA/CPP: Release 5.2. Metadata updates and bug fixes. See release notes for more...
dbeaumont@google.com [Thu, 11 Oct 2012 16:44:08 +0000 (16:44 +0000)]
JAVA/CPP: Release 5.2. Metadata updates and bug fixes. See release notes for more details.

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@532 ee073f10-1060-11df-b6a4-87a95322a99c

21 months agoJAVA/JS/CPP: Metadata updates (v5.1.4)
lararennie@google.com [Thu, 27 Sep 2012 12:03:47 +0000 (12:03 +0000)]
JAVA/JS/CPP: Metadata updates (v5.1.4)

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@527 ee073f10-1060-11df-b6a4-87a95322a99c

22 months agoJAVA/JS/CPP: Metadata updates (v5.1.3)
lararennie@google.com [Mon, 17 Sep 2012 08:51:10 +0000 (08:51 +0000)]
JAVA/JS/CPP: Metadata updates (v5.1.3)

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@526 ee073f10-1060-11df-b6a4-87a95322a99c

22 months agoJava/CPP: libphonenumber v5.1.2 - AYTF fix for numbers in national format in countrie...
lararennie@google.com [Wed, 12 Sep 2012 08:09:05 +0000 (08:09 +0000)]
Java/CPP: libphonenumber v5.1.2 - AYTF fix for numbers in national format in countries with no national prefix.

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@524 ee073f10-1060-11df-b6a4-87a95322a99c

22 months agoCPP: libphonenumber v5.1
lararennie@google.com [Thu, 6 Sep 2012 09:48:57 +0000 (09:48 +0000)]
CPP: libphonenumber v5.1

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@518 ee073f10-1060-11df-b6a4-87a95322a99c

23 months agoJAVA/JS/CPP: Metadata updates (v5.0.3)
lararennie@google.com [Mon, 20 Aug 2012 10:16:41 +0000 (10:16 +0000)]
JAVA/JS/CPP: Metadata updates (v5.0.3)

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@515 ee073f10-1060-11df-b6a4-87a95322a99c

23 months agoCPP: use new geocoding data in AreaCodeMap. Patch contributed by pmezard.
jia.shao.peng [Tue, 7 Aug 2012 15:14:43 +0000 (15:14 +0000)]
CPP: use new geocoding data in AreaCodeMap. Patch contributed by pmezard.

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@514 ee073f10-1060-11df-b6a4-87a95322a99c

23 months agoJAVA/JS/CPP: Metadata updates (v5.0.2)
lararennie@google.com [Tue, 7 Aug 2012 14:16:34 +0000 (14:16 +0000)]
JAVA/JS/CPP: Metadata updates (v5.0.2)

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@513 ee073f10-1060-11df-b6a4-87a95322a99c

23 months agoModified SVN ignore property in '.', cpp/ & cpp/src/phonenumbers/ to ignore various...
dbeaumont@google.com [Mon, 30 Jul 2012 16:25:20 +0000 (16:25 +0000)]
Modified SVN ignore property in '.', cpp/ & cpp/src/phonenumbers/ to ignore various auto-generated files

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@512 ee073f10-1060-11df-b6a4-87a95322a99c

23 months agoDATA: Metadata and geocoding update (v5.0.1)
dbeaumont@google.com [Thu, 26 Jul 2012 13:16:23 +0000 (13:16 +0000)]
DATA: Metadata and geocoding update (v5.0.1)

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@511 ee073f10-1060-11df-b6a4-87a95322a99c

2 years agoCPP: Ported alternate phone number format support.
dbeaumont@google.com [Tue, 24 Jul 2012 14:09:14 +0000 (14:09 +0000)]
CPP: Ported alternate phone number format support.

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@509 ee073f10-1060-11df-b6a4-87a95322a99c

2 years agoCPP: Implement MappingFileProvider.
philip.liard@gmail.com [Thu, 19 Jul 2012 12:49:04 +0000 (12:49 +0000)]
CPP: Implement MappingFileProvider.

Patch contributed by pmezard.

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@505 ee073f10-1060-11df-b6a4-87a95322a99c

2 years agoCPP: libphonenumberv5.0 metadata changes
philip.liard@gmail.com [Thu, 19 Jul 2012 10:21:05 +0000 (10:21 +0000)]
CPP: libphonenumberv5.0 metadata changes

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@504 ee073f10-1060-11df-b6a4-87a95322a99c

2 years agoCPP: Metadata changes only (v5.0).
philip.liard@gmail.com [Mon, 16 Jul 2012 15:40:03 +0000 (15:40 +0000)]
CPP: Metadata changes only (v5.0).

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@497 ee073f10-1060-11df-b6a4-87a95322a99c

2 years agoCPP: port Java changes libphonenumber 4.9
davinci@google.com [Wed, 4 Jul 2012 13:52:11 +0000 (13:52 +0000)]
CPP: port Java changes libphonenumber 4.9

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@487 ee073f10-1060-11df-b6a4-87a95322a99c

2 years agoCPP: Comment fix, including small fix to sample code.
lararennie@google.com [Fri, 29 Jun 2012 14:25:30 +0000 (14:25 +0000)]
CPP: Comment fix, including small fix to sample code.

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@479 ee073f10-1060-11df-b6a4-87a95322a99c

2 years agoCPP: Add geocoding data generator.
philip.liard@gmail.com [Wed, 27 Jun 2012 12:38:08 +0000 (12:38 +0000)]
CPP: Add geocoding data generator.

Patch contributed by pmezard.

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@476 ee073f10-1060-11df-b6a4-87a95322a99c

2 years agoCPP: Metadata changes only (v4.8.5)
philip.liard@gmail.com [Wed, 27 Jun 2012 12:27:27 +0000 (12:27 +0000)]
CPP: Metadata changes only (v4.8.5)

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@475 ee073f10-1060-11df-b6a4-87a95322a99c

2 years agoCPP: Implement AreaCodeMap and DefaultMapStorage.
philip.liard@gmail.com [Fri, 1 Jun 2012 15:33:18 +0000 (15:33 +0000)]
CPP: Implement AreaCodeMap and DefaultMapStorage.

Patch contributed by pmezard.

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@462 ee073f10-1060-11df-b6a4-87a95322a99c

2 years agoCPP: Metadata changes only (v4.8.3).
philip.liard@gmail.com [Fri, 1 Jun 2012 12:18:57 +0000 (12:18 +0000)]
CPP: Metadata changes only (v4.8.3).

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@460 ee073f10-1060-11df-b6a4-87a95322a99c

2 years agoCPP: Make cpplint happy with stringutils.*
philip.liard@gmail.com [Wed, 23 May 2012 09:20:57 +0000 (09:20 +0000)]
CPP: Make cpplint happy with stringutils.*

Patch contributed by pmezard.

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@457 ee073f10-1060-11df-b6a4-87a95322a99c

2 years agoCPP: Fix compilation error with -DUSE_GOOGLE_BASE
philip.liard@gmail.com [Tue, 22 May 2012 11:09:54 +0000 (11:09 +0000)]
CPP: Fix compilation error with -DUSE_GOOGLE_BASE

This removes the Chromium-specific (outdated) Logger interface from
default_logger.h.
The return type of set_logger_impl() differed from the one in logger.h (changed
in r430) which produced a compilation error in phonenumberutil.cc when
set_logger_impl() is used as a right value.

Logger, defined in logger.h is now used in all cases.

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@456 ee073f10-1060-11df-b6a4-87a95322a99c

2 years agoCPP: Metadata changes only (v4.8.2).
philip.liard@gmail.com [Wed, 16 May 2012 14:41:14 +0000 (14:41 +0000)]
CPP: Metadata changes only (v4.8.2).

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@455 ee073f10-1060-11df-b6a4-87a95322a99c

2 years agoCPP: Support ICU versions built without support for std::string.
philip.liard@gmail.com [Thu, 10 May 2012 15:59:25 +0000 (15:59 +0000)]
CPP: Support ICU versions built without support for std::string.

This is the case on Android.

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@452 ee073f10-1060-11df-b6a4-87a95322a99c

2 years agoCPP: Metadata changes only (v4.8.1).
philip.liard@gmail.com [Wed, 9 May 2012 14:08:58 +0000 (14:08 +0000)]
CPP: Metadata changes only (v4.8.1).

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@451 ee073f10-1060-11df-b6a4-87a95322a99c

2 years agoCPP: libphonenumber 4.8.
philip.liard@gmail.com [Fri, 27 Apr 2012 14:36:02 +0000 (14:36 +0000)]
CPP: libphonenumber 4.8.

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@446 ee073f10-1060-11df-b6a4-87a95322a99c

2 years agoCPP: libphonenumber 4.7.
philip.liard@gmail.com [Fri, 13 Apr 2012 10:06:11 +0000 (10:06 +0000)]
CPP: libphonenumber 4.7.

This is mainly a metadata update.

Modified files:
cpp/src/phonenumbers/lite_metadata.cc
cpp/src/phonenumbers/metadata.cc
cpp/src/phonenumbers/phonenumberutil.cc
cpp/test/phonenumbers/phonenumbermatcher_test.cc

Review URL: https://codereview.appspot.com/6028044

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@439 ee073f10-1060-11df-b6a4-87a95322a99c

2 years agoCPP: libphonenumber 4.6. git-svn
philip.liard@gmail.com [Thu, 15 Mar 2012 17:04:03 +0000 (17:04 +0000)]
CPP: libphonenumber 4.6.

Note that the metadata files were not uploaded to appspot because they were too
large. Here is the list of the files affected by this change (generated by
Git):

cpp/src/phonenumbers/lite_metadata.cc
cpp/src/phonenumbers/logger.h
cpp/src/phonenumbers/metadata.cc
cpp/src/phonenumbers/phonenumbermatcher.cc
cpp/src/phonenumbers/phonenumberutil.cc
cpp/src/phonenumbers/phonenumberutil.h
cpp/src/phonenumbers/region_code.h
cpp/src/phonenumbers/stringutil.cc
cpp/src/phonenumbers/stringutil.h
cpp/test/phonenumbers/asyoutypeformatter_test.cc
cpp/test/phonenumbers/phonenumbermatcher_test.cc
cpp/test/phonenumbers/phonenumberutil_test.cc
cpp/test/phonenumbers/stringutil_test.cc

This CL also fixes the issue reported by Aaron about the logger being invoked
before it is initialized.

Review URL: https://codereview.appspot.com/5786065

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@430 ee073f10-1060-11df-b6a4-87a95322a99c

2 years agoCPP: Update lite_metadata.cc.
philip.liard@gmail.com [Tue, 7 Feb 2012 17:04:48 +0000 (17:04 +0000)]
CPP: Update lite_metadata.cc.

This file was not up-to-date which made some unit tests fail in Chrome.

Note that the file is not displayed on rietveld since it is too large.

Review URL: https://codereview.appspot.com/5636052

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@425 ee073f10-1060-11df-b6a4-87a95322a99c

2 years agoCPP: Fix PhoneNumberMatcher build in Chrome.
philip.liard@gmail.com [Mon, 6 Feb 2012 17:22:44 +0000 (17:22 +0000)]
CPP: Fix PhoneNumberMatcher build in Chrome.

Contributors:
  - leandrogracia@chromium.org
  - georgey@chromium.org

Review URL: https://codereview.appspot.com/5627046

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@424 ee073f10-1060-11df-b6a4-87a95322a99c

2 years agoCPP: libphonenumber 4.5
philip.liard@gmail.com [Wed, 1 Feb 2012 21:35:37 +0000 (21:35 +0000)]
CPP: libphonenumber 4.5

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@423 ee073f10-1060-11df-b6a4-87a95322a99c

2 years agoCPP: Refactoring PhoneNumberUtil so that global scoped_ptr variables are now hidden...
philip.liard@gmail.com [Fri, 2 Dec 2011 14:44:03 +0000 (14:44 +0000)]
CPP: Refactoring PhoneNumberUtil so that global scoped_ptr variables are now hidden in an internal class. Patch contributed by Lara Rennie.

Review URL: http://codereview.appspot.com/5450068

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@407 ee073f10-1060-11df-b6a4-87a95322a99c

2 years agoCPP: Remove static non-POD variables from RegionCode class. Patch contributed by...
philip.liard@gmail.com [Fri, 2 Dec 2011 10:03:30 +0000 (10:03 +0000)]
CPP: Remove static non-POD variables from RegionCode class. Patch contributed by georgey@chromium.org.

Review URL: http://codereview.appspot.com/5449064

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@406 ee073f10-1060-11df-b6a4-87a95322a99c

2 years agoCPP: libphonenumber 4.3
philip.liard@gmail.com [Tue, 29 Nov 2011 10:48:41 +0000 (10:48 +0000)]
CPP: libphonenumber 4.3

Review URL: http://codereview.appspot.com/5445043

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@403 ee073f10-1060-11df-b6a4-87a95322a99c

2 years agoCPP: Fix logger and asyoutypeformatter unit test to let the latest release build...
philip.liard@gmail.com [Tue, 29 Nov 2011 09:23:58 +0000 (09:23 +0000)]
CPP: Fix logger and asyoutypeformatter unit test to let the latest release build in Chromium.

Patch contributed by georgey@chromium.org.

Review URL: http://codereview.appspot.com/5440052

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@402 ee073f10-1060-11df-b6a4-87a95322a99c

2 years agoCPP: Fix compilation error in default_logger.h on Visual Studio 2010.
philip.liard@gmail.com [Wed, 23 Nov 2011 08:51:14 +0000 (08:51 +0000)]
CPP: Fix compilation error in default_logger.h on Visual Studio 2010.

Review URL: http://codereview.appspot.com/5436046

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@392 ee073f10-1060-11df-b6a4-87a95322a99c

2 years agoCPP: libphonenumber 4.2.
philip.liard@gmail.com [Mon, 14 Nov 2011 14:20:32 +0000 (14:20 +0000)]
CPP: libphonenumber 4.2.

Review URL: http://codereview.appspot.com/5372051

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@387 ee073f10-1060-11df-b6a4-87a95322a99c

2 years agoJAVA,CPP: libphonenumber 4.1.
philip.liard@gmail.com [Thu, 20 Oct 2011 11:39:14 +0000 (11:39 +0000)]
JAVA,CPP: libphonenumber 4.1.

Review URL: http://codereview.appspot.com/5303049

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@374 ee073f10-1060-11df-b6a4-87a95322a99c

2 years agoCPP: libphonenumber 4.0
philip.liard@gmail.com [Wed, 12 Oct 2011 12:25:09 +0000 (12:25 +0000)]
CPP: libphonenumber 4.0

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@368 ee073f10-1060-11df-b6a4-87a95322a99c

2 years agoCPP: Add number formatting for mobile dialling
philip.liard@gmail.com [Wed, 12 Oct 2011 11:47:24 +0000 (11:47 +0000)]
CPP: Add number formatting for mobile dialling

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@367 ee073f10-1060-11df-b6a4-87a95322a99c

2 years agoCPP: Add phonenumbermatcher.
philip.liard@gmail.com [Wed, 21 Sep 2011 17:43:54 +0000 (17:43 +0000)]
CPP: Add phonenumbermatcher.

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@356 ee073f10-1060-11df-b6a4-87a95322a99c

2 years agoCPP: libphonenumber 3.9.
philip.liard@gmail.com [Fri, 16 Sep 2011 10:22:04 +0000 (10:22 +0000)]
CPP: libphonenumber 3.9.

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@354 ee073f10-1060-11df-b6a4-87a95322a99c

2 years agoCPP: Add AsYouTypeFormatter (port from Java).
philip.liard@gmail.com [Wed, 14 Sep 2011 10:42:59 +0000 (10:42 +0000)]
CPP: Add AsYouTypeFormatter (port from Java).

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@352 ee073f10-1060-11df-b6a4-87a95322a99c

2 years agoCpp: Move scoped_ptr.h to memory folder. Patch contributed by thestig.
jia.shao.peng [Tue, 30 Aug 2011 13:35:41 +0000 (13:35 +0000)]
Cpp: Move scoped_ptr.h to memory folder. Patch contributed by thestig.

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@341 ee073f10-1060-11df-b6a4-87a95322a99c

2 years agoChanging license to Libphonenumber Authors.
philip.liard@gmail.com [Thu, 18 Aug 2011 11:41:24 +0000 (11:41 +0000)]
Changing license to Libphonenumber Authors.

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@338 ee073f10-1060-11df-b6a4-87a95322a99c

2 years agoCPP: Update PhoneNumberUtil and the generated metadata.
philip.liard@gmail.com [Fri, 12 Aug 2011 07:44:38 +0000 (07:44 +0000)]
CPP: Update PhoneNumberUtil and the generated metadata.

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@321 ee073f10-1060-11df-b6a4-87a95322a99c

3 years agoCPP: Move unit tests to the test directory.
philip.liard@gmail.com [Fri, 22 Jul 2011 09:54:01 +0000 (09:54 +0000)]
CPP: Move unit tests to the test directory.

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@306 ee073f10-1060-11df-b6a4-87a95322a99c

3 years agoCPP: Add AbstractRegExpFactory to allow the use of both ICU Regex and RE2.
philip.liard@gmail.com [Tue, 12 Jul 2011 15:41:29 +0000 (15:41 +0000)]
CPP: Add AbstractRegExpFactory to allow the use of both ICU Regex and RE2.

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@300 ee073f10-1060-11df-b6a4-87a95322a99c

3 years agoTOOLS: Fix missing Apache license and bad merge.
philip.liard@gmail.com [Tue, 5 Jul 2011 07:46:05 +0000 (07:46 +0000)]
TOOLS: Fix missing Apache license and bad merge.

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@292 ee073f10-1060-11df-b6a4-87a95322a99c

3 years agoTOOLS: Add unit tests for BuildMetadataFromXml.
philip.liard@gmail.com [Tue, 5 Jul 2011 07:34:45 +0000 (07:34 +0000)]
TOOLS: Add unit tests for BuildMetadataFromXml.

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@291 ee073f10-1060-11df-b6a4-87a95322a99c

3 years agoCPP: Exclude the logging-related code when the library is built in Chromium.
philip.liard@gmail.com [Tue, 5 Jul 2011 07:33:31 +0000 (07:33 +0000)]
CPP: Exclude the logging-related code when the library is built in Chromium.

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@290 ee073f10-1060-11df-b6a4-87a95322a99c

3 years agoCPP: Replace direct UTF-8 with escape sequences.
philip.liard@gmail.com [Mon, 4 Jul 2011 15:09:31 +0000 (15:09 +0000)]
CPP: Replace direct UTF-8 with escape sequences.

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@289 ee073f10-1060-11df-b6a4-87a95322a99c

3 years agoCPP: Move base/singleton.h to base/memory/singleton.h
philip.liard@gmail.com [Fri, 1 Jul 2011 15:10:38 +0000 (15:10 +0000)]
CPP: Move base/singleton.h to base/memory/singleton.h

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@284 ee073f10-1060-11df-b6a4-87a95322a99c

3 years agoCPP: Use map instead of deprecated hash_map when unordered_map is not available.
philip.liard@gmail.com [Fri, 1 Jul 2011 09:23:29 +0000 (09:23 +0000)]
CPP: Use map instead of deprecated hash_map when unordered_map is not available.

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@283 ee073f10-1060-11df-b6a4-87a95322a99c