EPhoneNumber: Fixed phone number matching semantics.
authorTristan Van Berkom <tristanvb@openismus.com>
Sat, 23 Nov 2013 13:08:58 +0000 (22:08 +0900)
committerTristan Van Berkom <tristanvb@openismus.com>
Fri, 29 Nov 2013 13:08:02 +0000 (22:08 +0900)
commit3c6d57c5275140fd93c1025180ba71a3d6928a80
treefbbf5908519a816472694d4521ba89d8c2a3fccc
parent96876cd1942e7e855f167e48bbf4e4613c2a394f
EPhoneNumber: Fixed phone number matching semantics.

Only use the default region code for the purpose of parsing
phone numbers, but disregard the default country code in comparisons.

Also, work around a bug in libphonenumber's C++ implementation
and make sure to properly promote SHORT number matches to NATIONAL
number match strength.

Based on a patch by Patrick Ohly
addressbook/libebook-contacts/e-phone-number-private.cpp