Andy Staudacher
8d21a36506
Add comment
Follow up from change 49c2427 , copying the comment from the Java implementation to the C++ impl.
11 years ago
Andy Staudacher
49c2427627
Fix bug in AsYouTypeFormatter where we hit a IndexOutOfBoundsException in its Java implementation when extracting the Chinese national prefix 17951 and didn't reset the format template / lastMatchPosition.
Includes corresponding changes for C++ and JavaScript as well to keep the implementations in sync. (C++ and JS didn't exhibit buggy behavior because the corresponding substring methods don't throw errors for invalid start positions.)
Bugfix for https://github.com/googlei18n/libphonenumber/issues/592
11 years ago
David Yonge-Mallo
902cc6bf4c
Fully quality std::* names.
11 years ago
David Yonge-Mallo
1815a818cd
minor clean-up: remove some unused variables, add using and @Override annotations.
11 years ago
Cecilia Roes
02c9973312
JAVA/JS/CPP: v7.0.2 metadata updates.
11 years ago
Jeffrey Crowell
a5b0177f07
fix handling broken unicode character hang
fix from pagespeed change https://code.google.com/p/modpagespeed/source/detail?r=4389
11 years ago
Cecilia Roes
d68e26ed55
JAVA/JS/CPP: v7.0.1 metadata updates.
11 years ago
David Beaumont
1cdd650791
Adding missing license information for the new matcher API files.
11 years ago
Cecilia Roes
dc9d9062a2
CPP: Fix build issue
11 years ago
Cecilia Roes
300ac447bd
C++: Updated Geocoder documentation and tests
11 years ago
Lara Scheidegger
b5e59c4e80
JAVA/JS/CPP:libphonenumber v7.0 last changes
11 years ago
Lara Scheidegger
ada3e9e73f
CPP/JAVA: Introducing new public APIs in ShortNumberInfo/short_number_info. Deprecating old methods. Also includes a refactoring change introducing a matcher API.
11 years ago
Lara Scheidegger
a38b838ced
Remove shortnumberutil -> all C++ clients should now be using shortnumberinfo instead.
11 years ago
Lara Scheidegger
4ce6e4e438
JAVA/JS/CPP: v6.3.1, metadata updates.
11 years ago
Lara Scheidegger
5ff0ea2f0a
JAVA/CPP/JS: v6.3: Geocoding behaviour change, code clean-up, metadata updates.
11 years ago
scottmg
325d7a2306
Avoid unused variable warning when NDEBUG.
Author: scottmg@chromium.org
Review URL: https://codereview.appspot.com/134650043
11 years ago
Fredrik Roubert
d66fa8d928
Copy updated files from lib9/utf from upstream repository.
This also requires updating code that previously took a shortcut and
depended on the Rune and char32 typedefs to be identical (which is no
longer the case, as Rune is now unsigned).
R=jia.shao.peng@gmail.com
BUG=
Review URL: https://codereview.appspot.com/136920043
11 years ago
Lara Scheidegger
8327c99eba
JAVA/JS/CPP: Metadata updates v6.2.2
12 years ago
Lara Scheidegger
e39655e6ad
CPP/JAVA/JS: Metadata updates - libphonenumber v6.2.1
12 years ago
Lara Scheidegger
fdabe14ad8
CPP v6.2 plus README update
12 years ago
Lara Scheidegger
ec70728d8a
JAVA/JS/CPP: Metadata updates, v6.1.1
12 years ago
Shaopeng Jia
ebb02ef276
JAVA/CPP: Handle phone number input in RFC3966 with missing "tel:" prefix.
Review URL: https://codereview.appspot.com/96510044
12 years ago
Lara Scheidegger
b1337c7ff1
JAVA/CPP: Better exclusion of dates, change in build error messages.
12 years ago
Lara Scheidegger
d535b204b1
Porting fix for AYTF to C++, small comment updates.
12 years ago
Lara Scheidegger
a201099230
JAVA/JS/CPP: libphonenumber v6.1
12 years ago
Lara Scheidegger
5891032ffb
JAVA/JS/CPP: libphonenumber v6.0
12 years ago
Shaopeng Jia
7656b26c5d
JS/CPP/JAVA: libphonenumber v5.9.4 metadata updates
Review URL: https://codereview.appspot.com/60870046
12 years ago
Lara Scheidegger
1a77a51f31
JS/CPP/JAVA: libphonenumber v5.9.3 metadata updates
12 years ago
Lara Scheidegger
8e10a811a5
JS/CPP/JAVA: libphonenumber v5.9.2 metadata updates
12 years ago
Lara Scheidegger
b0e92be8ba
JS/CPP/JAVA: libphonenumber 5.9.1 metadata updates.
12 years ago
Lara Scheidegger
7123e3365f
JAVA/JS/CPP: Libphonenumber v5.9, code & metadata changes.
12 years ago
Philippe Liard
336fb751c7
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
12 years ago
Lara Scheidegger
247088d457
JAVA/JS/CPP v5.8.8: metadata updates, small test & comment fixes.
12 years ago
Cecilia Roes
35a62b36e7
JS/C++: Added mobile token support to phone number util
12 years ago
Lara Scheidegger
b5653dfc3a
JAVA/JS/CPP v5.8.1: metadata updates
12 years ago
Lara Scheidegger
f5439bb8a4
JAVA/JS/CPP: libphonenumber v5.8. ShortNumberInfo API, metadata updates, small bug fixes. See the release notes for more information.
12 years ago
Lara Scheidegger
60b0fb76ad
JAVA/JS/CPP: libphonenumber v5.7.2, metadata.
13 years ago
Lara Scheidegger
3b1d5f723e
CPP/JAVA: libphonenumber v5.7.1: Changing metadata generation to exclude irrelevant data.
No change in functionality.
13 years ago
Lara Scheidegger
d7e735969b
Fixing issue where default_logger.h conflates LOG and VLOG. Issue reported and original idea for a fix provided by ben.darnell.
13 years ago
Lara Scheidegger
102e52a58b
CPP: libphonenumber v5.7 changes - small improvement to phone number extraction, updates to metadata after build tool changes.
13 years ago
Lara Scheidegger
3c2a5326e8
JAVA/JS/CPP: libphonenumber v5.6.2 metadata updates.
13 years ago
Vonage Holdings Corp
4a597371da
CPP: Fixing crash when AsYouTypeFormatter tries to handle countries with long numbers.
13 years ago
Philippe Liard
115b4a1ad0
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
13 years ago
Philippe Liard
c2f2752b54
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
13 years ago
Lara Scheidegger
f086b9a9df
JAVA/JS/CPP: libphonenumber v5.6
13 years ago
David Beaumont
5f74e23bc0
JAVA/C++/JS: libphonenumber v5.5
13 years ago
Philippe Liard
418aa2c056
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
13 years ago
Philippe Liard
b8a13bf0a0
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
13 years ago
Philippe Liard
09b71c10f3
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
13 years ago
Philippe Liard
d60d343ae9
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
13 years ago