Age | Commit message (Collapse) | Author |
|
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
|
|
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
|
|
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
|
|
R=roubert@google.com
Review URL: https://codereview.appspot.com/100630048
git-svn-id: http://libaddressinput.googlecode.com/svn/trunk@249 38ededc0-08b8-5190-f2ac-b31f878777ad
|
|
git-svn-id: http://libaddressinput.googlecode.com/svn/trunk@248 38ededc0-08b8-5190-f2ac-b31f878777ad
|
|
- Add Latin name and name to rule.
- Move language guessing to language object.
- Create child lookup objects.
R=lararennie@google.com
Review URL: https://codereview.appspot.com/96560045
git-svn-id: http://libaddressinput.googlecode.com/svn/trunk@247 38ededc0-08b8-5190-f2ac-b31f878777ad
|
|
git-svn-id: http://libaddressinput.googlecode.com/svn/trunk@246 38ededc0-08b8-5190-f2ac-b31f878777ad
|
|
TBR=lararennie@google.com
Review URL: https://codereview.appspot.com/97650047
git-svn-id: http://libaddressinput.googlecode.com/svn/trunk@245 38ededc0-08b8-5190-f2ac-b31f878777ad
|
|
With OndemandSupplier public, users of libaddressinput can choose to
create either OndemandSupplier or PreloadSupplier objects to use when
some Supplier object is needed.
R=rouslan@chromium.org
BUG=
Review URL: https://codereview.appspot.com/98450049
git-svn-id: http://libaddressinput.googlecode.com/svn/trunk@244 38ededc0-08b8-5190-f2ac-b31f878777ad
|
|
R=lararennie@google.com
Review URL: https://codereview.appspot.com/95550047
git-svn-id: http://libaddressinput.googlecode.com/svn/trunk@243 38ededc0-08b8-5190-f2ac-b31f878777ad
|
|
In the future, AddressValidator objects should always be constructed by
passing a pointer to an existing object that implements the Supplier
interface (and never construct its own Supplier internally).
R=rouslan@chromium.org
BUG=
Review URL: https://codereview.appspot.com/92550048
git-svn-id: http://libaddressinput.googlecode.com/svn/trunk@242 38ededc0-08b8-5190-f2ac-b31f878777ad
|
|
region_data_constants, rather than the metadata from the server. This is
possible now since region_data_constants is autogenerated and can be
depended on to be up-to-date (r206).
git-svn-id: http://libaddressinput.googlecode.com/svn/trunk@241 38ededc0-08b8-5190-f2ac-b31f878777ad
|
|
git-svn-id: http://libaddressinput.googlecode.com/svn/trunk@240 38ededc0-08b8-5190-f2ac-b31f878777ad
|
|
With this class now being an implementation of the Supplier interface
(r235) this new name better reflects that fact and its relationship to
PreloadSupplier (r236) and corresponds to the class comment:
An implementation of the Supplier interface that owns a Retriever
object, through which it loads address metadata as needed, creating Rule
objects and caching these.
R=rouslan@chromium.org
BUG=
Review URL: https://codereview.appspot.com/96540048
git-svn-id: http://libaddressinput.googlecode.com/svn/trunk@239 38ededc0-08b8-5190-f2ac-b31f878777ad
|
|
The test fixture is parametrized to be executed with different wrappers
that provide different Supplier implementations.
This verifies that both MetadataLoader and PreloadSupplier give the same
results when used for address validation.
In order to do this, add a constructor that takes Supplier* to
AddressValidator.
R=rouslan@chromium.org
BUG=
Review URL: https://codereview.appspot.com/97640045
git-svn-id: http://libaddressinput.googlecode.com/svn/trunk@238 38ededc0-08b8-5190-f2ac-b31f878777ad
|
|
Those tests in MetadataLoaderTest that should hold for all
implementations of the Supplier interface are moved into a new test
fixture Supplier, which is parametrized to be executed with different
wrappers that provide different Supplier implementations.
This verifies that both MetadataLoader and PreloadSupplier implement
this base functionality with the same results.
R=lararennie@google.com, rouslan@chromium.org
BUG=
Review URL: https://codereview.appspot.com/92560044
git-svn-id: http://libaddressinput.googlecode.com/svn/trunk@237 38ededc0-08b8-5190-f2ac-b31f878777ad
|
|
PreloadSupplier owns a Retriever object, through which it can load
aggregated address metadata for a region when instructed to, creating
Rule objects and caching these. It also provides methods to check
whether metadata for a particular region is already loaded or in
progress of being loaded.
When using a PreloadSupplier, it becomes possible to do synchronous
address validation using an asynchronous Downloader, and to have full
control over when network access is being done.
R=rouslan@chromium.org
BUG=
Review URL: https://codereview.appspot.com/94700044
git-svn-id: http://libaddressinput.googlecode.com/svn/trunk@236 38ededc0-08b8-5190-f2ac-b31f878777ad
|
|
To make it possible to supply the AddressValidator with address metadata
in several different way, an interface for such a Supplier is defined
and the existing MetadataLoader is refactored to implement it.
This will be used to implement another Supplier that doesn't load any
data on demand, but only works with preloaded data.
R=rouslan@chromium.org
BUG=
Review URL: https://codereview.appspot.com/97650044
git-svn-id: http://libaddressinput.googlecode.com/svn/trunk@235 38ededc0-08b8-5190-f2ac-b31f878777ad
|
|
This provides the same functionality as iterating through the list of
region codes returned by RegionDataConstants::GetRegionCodes() to check
whether a particular region code is supported by the library, but much
more efficient.
R=rouslan@chromium.org
BUG=
Review URL: https://codereview.appspot.com/95590043
git-svn-id: http://libaddressinput.googlecode.com/svn/trunk@234 38ededc0-08b8-5190-f2ac-b31f878777ad
|
|
git-svn-id: http://libaddressinput.googlecode.com/svn/trunk@233 38ededc0-08b8-5190-f2ac-b31f878777ad
|
|
lines, and combining multiple street address lines into one, in a language-dependent fashion.
git-svn-id: http://libaddressinput.googlecode.com/svn/trunk@232 38ededc0-08b8-5190-f2ac-b31f878777ad
|
|
This patch changes fake data URL from test:/// to test:///plain/ and
adds a URL for fake aggregate data: test:///aggregate/.
Example of data at test:///plain/data/ZW:
{"name": "ZIMBABWE", "key": "ZW", "id": "data/ZW"}
Example of aggregate data at test:///aggregate/data/ZW:
{"data/ZW": {"name": "ZIMBABWE", "key": "ZW", "id": "data/ZW"}}
This behavior mimics the behavior of the server URLs
https://i18napis.appspot.com/ssl-address/data/ and
https://i18napis.appspot.com/ssl-aggregate-address/data/.
R=lararennie@google.com
Review URL: https://codereview.appspot.com/95560045
git-svn-id: http://libaddressinput.googlecode.com/svn/trunk@231 38ededc0-08b8-5190-f2ac-b31f878777ad
|
|
TBR=roubert@google.com
Review URL: https://codereview.appspot.com/92520047
git-svn-id: http://libaddressinput.googlecode.com/svn/trunk@230 38ededc0-08b8-5190-f2ac-b31f878777ad
|
|
TBR=roubert@google.com
Review URL: https://codereview.appspot.com/92520046
git-svn-id: http://libaddressinput.googlecode.com/svn/trunk@229 38ededc0-08b8-5190-f2ac-b31f878777ad
|
|
If a download of validation rules fails, but stale data is available,
then re-use it. Stale data is valid data that is more than 30 days
old. Valid data is data with a correct checksum.
Review URL: https://codereview.appspot.com/95500044
git-svn-id: http://libaddressinput.googlecode.com/svn/trunk@228 38ededc0-08b8-5190-f2ac-b31f878777ad
|
|
git-svn-id: http://libaddressinput.googlecode.com/svn/trunk@227 38ededc0-08b8-5190-f2ac-b31f878777ad
|
|
Review URL: https://codereview.appspot.com/97600043
git-svn-id: http://libaddressinput.googlecode.com/svn/trunk@226 38ededc0-08b8-5190-f2ac-b31f878777ad
|
|
git-svn-id: http://libaddressinput.googlecode.com/svn/trunk@225 38ededc0-08b8-5190-f2ac-b31f878777ad
|
|
This patch is necessary for implementing synonym lookups.
R=roubert@google.com
Review URL: https://codereview.appspot.com/92440044
git-svn-id: http://libaddressinput.googlecode.com/svn/trunk@224 38ededc0-08b8-5190-f2ac-b31f878777ad
|
|
R=roubert@google.com
Review URL: https://codereview.appspot.com/97580043
git-svn-id: http://libaddressinput.googlecode.com/svn/trunk@223 38ededc0-08b8-5190-f2ac-b31f878777ad
|
|
git-svn-id: http://libaddressinput.googlecode.com/svn/trunk@222 38ededc0-08b8-5190-f2ac-b31f878777ad
|
|
R=lararennie@google.com
Review URL: https://codereview.appspot.com/91500047
git-svn-id: http://libaddressinput.googlecode.com/svn/trunk@221 38ededc0-08b8-5190-f2ac-b31f878777ad
|
|
git-svn-id: http://libaddressinput.googlecode.com/svn/trunk@218 38ededc0-08b8-5190-f2ac-b31f878777ad
|