Age | Commit message (Collapse) | Author |
|
This commit was generated by merge_to_master.py.
Change-Id: I283eef90c15d40ea8cd6290f12094fc152a2c45e
|
|
This commit was generated by merge_to_master.py.
Change-Id: I54dfe87045260dd68161b9e69e4e6d099ec06849
|
|
https://chromium.googlesource.com/external/libaddressinput.git at 796b9d8aba7b058c1d69b08dfc0056ecb1f52c14
This commit was generated by merge_from_chromium.py.
Change-Id: Ie6d172946a49f4596470cd5e2799afd78b562f03
|
|
When building with GYP_DEFINES="clang=1 asan=1" in Chromium, the
compiler assumes that std::map<std::string, const Rule*>::iterator
uses std::less<> instead of IndexLess comparator. This patch fixes the
problem by using IndexMap::iterator instead.
TBR=roubert@google.com
Review URL: https://codereview.appspot.com/105300048
git-svn-id: http://libaddressinput.googlecode.com/svn/trunk@293 38ededc0-08b8-5190-f2ac-b31f878777ad
|
|
This patch removes language_tag parameter from
Localization::SetGetter(), because it's not required for retrieving
strings. BuildComponents() now requires a |ui_language_tag| parameter.
R=lararennie@google.com
Review URL: https://codereview.appspot.com/109940045
git-svn-id: http://libaddressinput.googlecode.com/svn/trunk@292 38ededc0-08b8-5190-f2ac-b31f878777ad
|
|
TBR=rouslan@chromium.org
BUG=
Review URL: https://codereview.appspot.com/101350044
git-svn-id: http://libaddressinput.googlecode.com/svn/trunk@291 38ededc0-08b8-5190-f2ac-b31f878777ad
|
|
This is done by updating the StringCompare helper class to also provide
a comparison method that conforms to the STL requirements for less<>
predicates, and then wrapping this as an STL predicate.
(A portable default implementation of this is done through "clever" use
of RE2 to get UTF-8 capable string comparison. Users of the library can
override this with better/faster implementations.)
This will make PreloadSupplier able to match "ZÜRICH" and "Zürich". Yay!
;-)
R=rouslan@chromium.org
BUG=
Review URL: https://codereview.appspot.com/101340044
git-svn-id: http://libaddressinput.googlecode.com/svn/trunk@290 38ededc0-08b8-5190-f2ac-b31f878777ad
|
|
- Add comment about where the file originally came from.
- Hard-code map type, to not require C++11.
- Standardize include guards.
- Remove trailing whitespace.
R=rouslan@chromium.org
BUG=
Review URL: https://codereview.appspot.com/109040045
git-svn-id: http://libaddressinput.googlecode.com/svn/trunk@289 38ededc0-08b8-5190-f2ac-b31f878777ad
|
|
https://bitbucket.org/timday/lru_cache/src/497822a492a8/include/lru_cache_using_std.h
R=rouslan@chromium.org
BUG=
Review URL: https://codereview.appspot.com/101350043
git-svn-id: http://libaddressinput.googlecode.com/svn/trunk@288 38ededc0-08b8-5190-f2ac-b31f878777ad
|
|
TBR=roubert@google.com
Review URL: https://codereview.appspot.com/109070043
git-svn-id: http://libaddressinput.googlecode.com/svn/trunk@287 38ededc0-08b8-5190-f2ac-b31f878777ad
|
|
Normally the address metadata server takes care of mapping from natural
language names to metadata IDs (eg. "São Paulo" -> "SP") and from Latin
script names to local script names (eg. "Tokushima" -> "徳島県").
As the PreloadSupplier doesn't contact the metadata server upon each
Supply() request, it does instead need to have an internal lookup table
that contains such mappings in order to be possible to use to validate
addresses that use natural language names or Latin script names.
R=rouslan@chromium.org
BUG=
Review URL: https://codereview.appspot.com/105920047
git-svn-id: http://libaddressinput.googlecode.com/svn/trunk@286 38ededc0-08b8-5190-f2ac-b31f878777ad
|
|
This patch changes error messages for postal codes to show at most one
example of a valid postal code. This behavior resembles other
implementations more closely.
R=keghani@google.com
Review URL: https://codereview.appspot.com/107160044
git-svn-id: http://libaddressinput.googlecode.com/svn/trunk@285 38ededc0-08b8-5190-f2ac-b31f878777ad
|
|
Human-readable addresses in US have a comma between city and state,
although machine-readable addresses do not require the comma.
R=lararennie@google.com
Review URL: https://codereview.appspot.com/109040043
git-svn-id: http://libaddressinput.googlecode.com/svn/trunk@284 38ededc0-08b8-5190-f2ac-b31f878777ad
|
|
According to the message now shown on code.google.com, the rapidjson
source code repository has been moved to GitHub:
https://code.google.com/p/rapidjson/
https://github.com/miloyip/rapidjson
(Today, both repositories contain the same source tree, but the
repository at code.google.com isn't expected to be kept updated, at
least not in a timely fashion, in the future.)
git-svn-id: http://libaddressinput.googlecode.com/svn/trunk@283 38ededc0-08b8-5190-f2ac-b31f878777ad
|
|
https://chromium.googlesource.com/external/libaddressinput.git at 128ae075bbf50996c1068740746f27430f89136d
This commit was generated by merge_from_chromium.py.
Change-Id: I2f62550bd34863534a2ad5e229f931fa6aec7546
|
|
For use with multithreaded implementations of Downloader and Storage, it
is desirable to work with heap-allocated objects that can easily be
passed between threads (instead of having to work with thread-local
objects that need to be copied between threads).
R=rouslan@chromium.org
git-svn-id: http://libaddressinput.googlecode.com/svn/trunk@282 38ededc0-08b8-5190-f2ac-b31f878777ad
|
|
Instead of unconditionally adding const& to the specified types, require
the user of the Callback templates to specify it. This makes it possible
to use these same templates also for other types.
Now, const int& is replaced with just plain int. Later, this will be
used to replace const std::string& with std::string*.
R=rouslan@chromium.org
git-svn-id: http://libaddressinput.googlecode.com/svn/trunk@281 38ededc0-08b8-5190-f2ac-b31f878777ad
|
|
https://chromium.googlesource.com/external/libaddressinput.git at 1cc079798198a961e938b74e573588986afdca3b
This commit was generated by merge_from_chromium.py.
Change-Id: Ief2f36f1e9dfbac8319d3500b0c000685c9e345d
|
|
match any part of a postal code, when it is intended to match only the prefix.
git-svn-id: http://libaddressinput.googlecode.com/svn/trunk@280 38ededc0-08b8-5190-f2ac-b31f878777ad
|
|
git-svn-id: http://libaddressinput.googlecode.com/svn/trunk@279 38ededc0-08b8-5190-f2ac-b31f878777ad
|
|
|
|
Review URL: https://codereview.appspot.com/106970043
git-svn-id: http://libaddressinput.googlecode.com/svn/trunk@278 38ededc0-08b8-5190-f2ac-b31f878777ad
|
|
adding/fixing formatting for Kosovo, Thailand, China etc.
git-svn-id: http://libaddressinput.googlecode.com/svn/trunk@277 38ededc0-08b8-5190-f2ac-b31f878777ad
|
|
git-svn-id: http://libaddressinput.googlecode.com/svn/trunk@276 38ededc0-08b8-5190-f2ac-b31f878777ad
|
|
git-svn-id: http://libaddressinput.googlecode.com/svn/trunk@275 38ededc0-08b8-5190-f2ac-b31f878777ad
|
|
git-svn-id: http://libaddressinput.googlecode.com/svn/trunk@274 38ededc0-08b8-5190-f2ac-b31f878777ad
|
|
git-svn-id: http://libaddressinput.googlecode.com/svn/trunk@273 38ededc0-08b8-5190-f2ac-b31f878777ad
|
|
format change cfor zh-Latn.
git-svn-id: http://libaddressinput.googlecode.com/svn/trunk@272 38ededc0-08b8-5190-f2ac-b31f878777ad
|
|
git-svn-id: http://libaddressinput.googlecode.com/svn/trunk@271 38ededc0-08b8-5190-f2ac-b31f878777ad
|
|
git-svn-id: http://libaddressinput.googlecode.com/svn/trunk@270 38ededc0-08b8-5190-f2ac-b31f878777ad
|
|
This is the New Build System for Android:
http://tools.android.com/tech-docs/new-build-system
git-svn-id: http://libaddressinput.googlecode.com/svn/trunk@269 38ededc0-08b8-5190-f2ac-b31f878777ad
|
|
R=lararennie@google.com
Review URL: https://codereview.appspot.com/103070043
git-svn-id: http://libaddressinput.googlecode.com/svn/trunk@268 38ededc0-08b8-5190-f2ac-b31f878777ad
|
|
Some compilers do not like a forward declaration:
class RuleHierarchy;
..followed by the actual declaration:
struct RuleHierarchy {...};
TBR=roubert@google.com
Review URL: https://codereview.appspot.com/109740044
git-svn-id: http://libaddressinput.googlecode.com/svn/trunk@267 38ededc0-08b8-5190-f2ac-b31f878777ad
|
|
The http://packages.debian.org/experimental/libre2-dev URL is no
longer valid. You now can get the RE2 library from:
http://packages.ubuntu.com/utopic/libre2-dev.
TBR=roubert@google.com
Review URL: https://codereview.appspot.com/103910045
git-svn-id: http://libaddressinput.googlecode.com/svn/trunk@266 38ededc0-08b8-5190-f2ac-b31f878777ad
|
|
Author: davinci@google.com
git-svn-id: http://libaddressinput.googlecode.com/svn/trunk@265 38ededc0-08b8-5190-f2ac-b31f878777ad
|
|
R=lararennie@google.com
BUG=
Review URL: https://codereview.appspot.com/105790043
git-svn-id: http://libaddressinput.googlecode.com/svn/trunk@264 38ededc0-08b8-5190-f2ac-b31f878777ad
|
|
git-svn-id: http://libaddressinput.googlecode.com/svn/trunk@263 38ededc0-08b8-5190-f2ac-b31f878777ad
|
|
post-code if possible, otherwise if one is present, tries to fill in state, locality and dep-locality.
git-svn-id: http://libaddressinput.googlecode.com/svn/trunk@262 38ededc0-08b8-5190-f2ac-b31f878777ad
|
|
information from statically linked region_data_constants.
git-svn-id: http://libaddressinput.googlecode.com/svn/trunk@261 38ededc0-08b8-5190-f2ac-b31f878777ad
|
|
The current situation, where OndemandSupplier has a nested class which
is a RuleHierarchy, is an artefact from the time when OndemandSupplier
was an internal interface (r244). It does no longer make any sense.
This change makes Supplier::RuleHierarchy a simple struct and moves all
the implementation details into an internal class OndemandSupplyTask.
R=rouslan@chromium.org
BUG=
Review URL: https://codereview.appspot.com/101960046
git-svn-id: http://libaddressinput.googlecode.com/svn/trunk@260 38ededc0-08b8-5190-f2ac-b31f878777ad
|
|
Instead of this particular field hardcoded, look the field up in the
kVectorStringField table to see whether GetRepeatedFieldValue() would
succeed for the field requested.
R=rouslan@chromium.org
BUG=
Review URL: https://codereview.appspot.com/101960045
git-svn-id: http://libaddressinput.googlecode.com/svn/trunk@259 38ededc0-08b8-5190-f2ac-b31f878777ad
|
|
This patch adds more tests for RegionDataBuilder to verify the behavior
as it's documented in the comment for RegionDataBuilder::Build() method.
TBR=roubert@google.com
Review URL: https://codereview.appspot.com/101990043
git-svn-id: http://libaddressinput.googlecode.com/svn/trunk@258 38ededc0-08b8-5190-f2ac-b31f878777ad
|
|
git-svn-id: http://libaddressinput.googlecode.com/svn/trunk@257 38ededc0-08b8-5190-f2ac-b31f878777ad
|
|
R=roubert@google.com
Review URL: https://codereview.appspot.com/101830044
git-svn-id: http://libaddressinput.googlecode.com/svn/trunk@256 38ededc0-08b8-5190-f2ac-b31f878777ad
|
|
If building libaddressinput in an environment where there already is
another implementation of the basictypes.h header file (like in
Chromium), then this change will make it possible to pass the command
line flag -DI18N_ADDRESSINPUT_USE_BASICTYPES_OVERRIDE=1 to the compiler
and provide a file named basictypes_override.h, in a location where the
compiler will look for it, which provides the desired implementation.
This also makes it possible to remove the work-around for basictypes.h
in re2ptr.h as any environment where re2.h includes its own basictypes.h
now will be able to have all of libaddressinput use that implementation.
R=rouslan@chromium.org
BUG=
Review URL: https://codereview.appspot.com/99490045
git-svn-id: http://libaddressinput.googlecode.com/svn/trunk@255 38ededc0-08b8-5190-f2ac-b31f878777ad
|
|
This patch removes the extra whitespace from English strings. After
this patch lands, Chrome can pull in the strings and start the
translation process.
R=lararennie@google.com, roubert@google.com
Review URL: https://codereview.appspot.com/92660044
git-svn-id: http://libaddressinput.googlecode.com/svn/trunk@254 38ededc0-08b8-5190-f2ac-b31f878777ad
|
|
R=rouslan@chromium.org
BUG=
Review URL: https://codereview.appspot.com/101760044
git-svn-id: http://libaddressinput.googlecode.com/svn/trunk@253 38ededc0-08b8-5190-f2ac-b31f878777ad
|
|
git-svn-id: http://libaddressinput.googlecode.com/svn/trunk@252 38ededc0-08b8-5190-f2ac-b31f878777ad
|
|
This has been left over from an earlier version of this code, in which
this was used to set region_address.language_code (which is now left
unset).
R=rouslan@chromium.org
BUG=
Review URL: https://codereview.appspot.com/101730045
git-svn-id: http://libaddressinput.googlecode.com/svn/trunk@251 38ededc0-08b8-5190-f2ac-b31f878777ad
|
|
R=roubert@google.com
Review URL: https://codereview.appspot.com/98460048
git-svn-id: http://libaddressinput.googlecode.com/svn/trunk@250 38ededc0-08b8-5190-f2ac-b31f878777ad
|