platform/upstream/libphonenumber.git
14 years agoAdd @license tag to js project. Patch submitted by tronikos.
jia.shao.peng [Mon, 16 Aug 2010 08:51:05 +0000 (08:51 +0000)]
Add @license tag to js project. Patch submitted by tronikos.

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

14 years agoUpdate link and change mime-type of demo page for js project. Patch submitted by...
jia.shao.peng [Mon, 16 Aug 2010 07:47:47 +0000 (07:47 +0000)]
Update link and change mime-type of demo page for js project. Patch submitted by tronikos.

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

14 years agoUpdate JS project to Java project revision 46. Patch submitted by tronikos.
jia.shao.peng [Thu, 12 Aug 2010 08:20:42 +0000 (08:20 +0000)]
Update JS project to Java project revision 46. Patch submitted by tronikos.

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

14 years agoInitialize country calling code to region code map in PhoneNumberUtil to further...
jia.shao.peng [Mon, 9 Aug 2010 04:32:31 +0000 (04:32 +0000)]
Initialize country calling code to region code map in PhoneNumberUtil to further improve startup speed.

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

14 years agoStyle fixes - patch submitted by tronikos.
jia.shao.peng [Wed, 4 Aug 2010 13:53:22 +0000 (13:53 +0000)]
Style fixes - patch submitted by tronikos.

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

14 years agoremove empty binary file.
jia.shao.peng [Sat, 31 Jul 2010 11:03:05 +0000 (11:03 +0000)]
remove empty binary file.

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

14 years agoImprove startup performance by separating generated metadata binary to one per region...
jia.shao.peng [Sat, 31 Jul 2010 08:29:46 +0000 (08:29 +0000)]
Improve startup performance by separating generated metadata binary to one per region, and load each only when needed.

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

14 years agoImprove AsYouTypeFormatter to handle Chinese local numbers; improve extension parsing...
jia.shao.peng [Fri, 30 Jul 2010 14:47:20 +0000 (14:47 +0000)]
Improve AsYouTypeFormatter to handle Chinese local numbers; improve extension parsing; metadata update; also adding release_notes.txt

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

14 years agoFixing issue 1. Patch submitted by tronikos.
jia.shao.peng [Thu, 29 Jul 2010 08:19:02 +0000 (08:19 +0000)]
Fixing issue 1. Patch submitted by tronikos.

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

14 years agoRemove trailing white spaces.
jia.shao.peng [Fri, 23 Jul 2010 13:26:30 +0000 (13:26 +0000)]
Remove trailing white spaces.

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

14 years agoMajor improvement in AsYouTypeFormatter to start formatting earlier. New TrancateTooL...
jia.shao.peng [Fri, 23 Jul 2010 12:35:03 +0000 (12:35 +0000)]
Major improvement in AsYouTypeFormatter to start formatting earlier. New TrancateTooLongNumber functionality in PhoneNumberUtil. Also fixes formatByPattern and Japanese AsYouTypeFormatter bugs.

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

14 years agoFixing Issue 2. Patch submitted by tronikos.
jia.shao.peng [Fri, 23 Jul 2010 07:59:38 +0000 (07:59 +0000)]
Fixing Issue 2. Patch submitted by tronikos.

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

14 years agoUpdate library with new functionalities and metadata.
jia.shao.peng [Mon, 12 Jul 2010 12:18:43 +0000 (12:18 +0000)]
Update library with new functionalities and metadata.

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

14 years agoadding javascript directory for porting the java library to javascript.
jia.shao.peng [Tue, 22 Jun 2010 07:16:39 +0000 (07:16 +0000)]
adding javascript directory for porting the java library to javascript.

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

14 years agoStops PhoneNumber from implementing Serializable and make it non-final.
jia.shao.peng [Mon, 7 Jun 2010 09:38:59 +0000 (09:38 +0000)]
Stops PhoneNumber from implementing Serializable and make it non-final.

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

14 years agoImprove serialization and deserialization speed for Phonemetadata.java and size of...
jia.shao.peng [Sun, 6 Jun 2010 16:17:12 +0000 (16:17 +0000)]
Improve serialization and deserialization speed for Phonemetadata.java and size of the generated binary file by making use of Java Externalization.

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

14 years agoUpdate library with new metadata.
jia.shao.peng [Sun, 30 May 2010 14:54:50 +0000 (14:54 +0000)]
Update library with new metadata.

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

14 years agoReorganize project structure to make it easy to build(cont.)
jia.shao.peng [Sat, 29 May 2010 12:36:56 +0000 (12:36 +0000)]
Reorganize project structure to make it easy to build(cont.)

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

14 years agoReorganize project structure to make it easy to build.
jia.shao.peng [Sat, 29 May 2010 12:30:44 +0000 (12:30 +0000)]
Reorganize project structure to make it easy to build.

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

14 years agoRemove white space.
jia.shao.peng [Sat, 29 May 2010 12:07:57 +0000 (12:07 +0000)]
Remove white space.

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

14 years agoCorrect a typo in comments.
jia.shao.peng [Sat, 29 May 2010 10:33:26 +0000 (10:33 +0000)]
Correct a typo in comments.

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

14 years agoDecouple Phonemetadata.java from protocol buffer.
jia.shao.peng [Sat, 29 May 2010 10:31:43 +0000 (10:31 +0000)]
Decouple Phonemetadata.java from protocol buffer.

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

14 years agoDecouple Phonenumber.java from protocol buffer.
jia.shao.peng [Wed, 26 May 2010 13:43:46 +0000 (13:43 +0000)]
Decouple Phonenumber.java from protocol buffer.

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

14 years agoFix another bug in AsYouTypeFormatter where the rememberedPosition is incorrect when...
jia.shao.peng [Tue, 25 May 2010 14:19:28 +0000 (14:19 +0000)]
Fix another bug in AsYouTypeFormatter where the rememberedPosition is incorrect when a number is entered with more digits than correct.

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

14 years agoFix a bug in AsYouTypeFormatter where the rememberedPosition is incorrect when a...
jia.shao.peng [Tue, 25 May 2010 13:13:26 +0000 (13:13 +0000)]
Fix a bug in AsYouTypeFormatter where the rememberedPosition is incorrect when a number is entered with more digits than correct.

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

14 years agoSmall refactoring and documentation updates for AsYouTypeFormatter.java
jia.shao.peng [Mon, 24 May 2010 11:58:43 +0000 (11:58 +0000)]
Small refactoring and documentation updates for AsYouTypeFormatter.java

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

14 years agoAdding inputDigitAndRememberPosition and getRememberedPosition methods to AsYouTypeFo...
jia.shao.peng [Mon, 24 May 2010 08:47:31 +0000 (08:47 +0000)]
Adding inputDigitAndRememberPosition and getRememberedPosition methods to AsYouTypeFormatter.java to provide better cursor control.

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

14 years agoDocumentation updates.
jia.shao.peng [Mon, 24 May 2010 08:45:45 +0000 (08:45 +0000)]
Documentation updates.

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

14 years agoRemove dependency on guava library.
jia.shao.peng [Fri, 21 May 2010 00:46:32 +0000 (00:46 +0000)]
Remove dependency on guava library.

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

14 years agoRemove white spaces.
jia.shao.peng [Fri, 21 May 2010 00:44:52 +0000 (00:44 +0000)]
Remove white spaces.

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

14 years agoThis change improves performance by (1) Create a cacheing mechanism to cache frequent...
jia.shao.peng [Thu, 20 May 2010 23:44:52 +0000 (23:44 +0000)]
This change improves performance by (1) Create a cacheing mechanism to cache frequently used cached regex (2) Precompile some known regexes. (3) Other misc improvements. It also (1) removes dependency to Guava library (2) creates new interfaces that accept parameters that could be reused instead of immutable ones.

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

14 years agoFix a bug where NANPA numbers starting with 1 were incorrectly formatted.
jia.shao.peng [Thu, 20 May 2010 18:23:03 +0000 (18:23 +0000)]
Fix a bug where NANPA numbers starting with 1 were incorrectly formatted.

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

14 years agoImprove performance of AsYouTypeFormatter by precompliling regular expressions and...
jia.shao.peng [Thu, 20 May 2010 00:54:27 +0000 (00:54 +0000)]
Improve performance of AsYouTypeFormatter by precompliling regular expressions and decrease object allocation by reusing StringBuffers.

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

14 years agoModify AsYouTypeFormatter to do no formatting for vanity numbers. Also improve the...
jia.shao.peng [Wed, 19 May 2010 22:28:24 +0000 (22:28 +0000)]
Modify AsYouTypeFormatter to do no formatting for vanity numbers. Also improve the formatter to handle numbers with variable lengths in subscriber number.

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

14 years agoRemove trailing whitespaces and formattings for results produced by AsYouTypeFormatter.
jia.shao.peng [Tue, 18 May 2010 03:58:25 +0000 (03:58 +0000)]
Remove trailing whitespaces and formattings for results produced by AsYouTypeFormatter.

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

14 years agoAdding new functionality: formatUsingOriginalNumberFormat.
jia.shao.peng [Fri, 14 May 2010 21:35:50 +0000 (21:35 +0000)]
Adding new functionality: formatUsingOriginalNumberFormat.

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

14 years agoRemoving whitespaces from files.
jia.shao.peng [Fri, 7 May 2010 09:26:01 +0000 (09:26 +0000)]
Removing whitespaces from files.

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

14 years agoRemove non-Ascii character from source code.
jia.shao.peng [Fri, 7 May 2010 08:43:23 +0000 (08:43 +0000)]
Remove non-Ascii character from source code.

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

14 years agoCorrect sync error in phonemetadata.proto.
jia.shao.peng [Fri, 7 May 2010 08:06:23 +0000 (08:06 +0000)]
Correct sync error in phonemetadata.proto.

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

14 years agoUpdate library to v2.2
jia.shao.peng [Thu, 6 May 2010 22:38:55 +0000 (22:38 +0000)]
Update library to v2.2

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

14 years agoSet correct mime-type to dependent libaries.
jia.shao.peng [Mon, 3 May 2010 11:37:43 +0000 (11:37 +0000)]
Set correct mime-type to dependent libaries.

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

14 years agoUpdate library to v2.1
jia.shao.peng [Mon, 3 May 2010 11:24:47 +0000 (11:24 +0000)]
Update library to v2.1

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

14 years agoremoving white spaces
jia.shao.peng [Wed, 24 Mar 2010 16:10:06 +0000 (16:10 +0000)]
removing white spaces

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

14 years agoUpdate library to v2.0
jia.shao.peng [Sat, 20 Mar 2010 13:52:51 +0000 (13:52 +0000)]
Update library to v2.0

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

14 years agoMinor documentation update.
jia.shao.peng [Mon, 1 Mar 2010 15:22:37 +0000 (15:22 +0000)]
Minor documentation update.

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

14 years agoReorganize project structure, creating resources directory.
jia.shao.peng [Fri, 12 Feb 2010 23:41:32 +0000 (23:41 +0000)]
Reorganize project structure, creating resources directory.

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

14 years agoseparate unittests to test directory; modified build.xml
jia.shao.peng [Fri, 12 Feb 2010 00:18:07 +0000 (00:18 +0000)]
separate unittests to test directory; modified build.xml

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

14 years agoremove unused import statements.
jia.shao.peng [Thu, 11 Feb 2010 21:34:22 +0000 (21:34 +0000)]
remove unused import statements.

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

14 years agoswitch the library to use protobuf lite instead of the full version.
jia.shao.peng [Thu, 11 Feb 2010 19:59:01 +0000 (19:59 +0000)]
switch the library to use protobuf lite instead of the full version.

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

14 years agoChecking in first version of java libphonenumber
jia.shao.peng [Wed, 10 Feb 2010 17:54:46 +0000 (17:54 +0000)]
Checking in first version of java libphonenumber

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

14 years agoInitial directory structure.
(no author) [Wed, 3 Feb 2010 01:10:34 +0000 (01:10 +0000)]
Initial directory structure.

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