Browse Source

Minor documentation updates.

pull/567/head
Shaopeng Jia 15 years ago
committed by Mihaela Rosca
parent
commit
358ed5f912
4 changed files with 12 additions and 3 deletions
  1. +4
    -1
      java/resources/com/google/i18n/phonenumbers/BuildMetadataProtoFromXml.java
  2. +2
    -2
      java/src/com/google/i18n/phonenumbers/AsYouTypeFormatter.java
  3. +3
    -0
      java/src/com/google/i18n/phonenumbers/CountryCodeToRegionCodeMap.java
  4. +3
    -0
      java/test/com/google/i18n/phonenumbers/CountryCodeToRegionCodeMapForTesting.java

+ 4
- 1
java/resources/com/google/i18n/phonenumbers/BuildMetadataProtoFromXml.java View File

@ -68,7 +68,7 @@ public class BuildMetadataProtoFromXml {
String outputDir = args[1];
boolean forTesting = args[2].equals("true");
boolean liteBuild = args.length > 3 && args[3].equals("true");
String filePrefix;
if (forTesting) {
filePrefix = outputDir + PhoneNumberUtilTest.TEST_META_DATA_FILE_PREFIX;
@ -110,6 +110,9 @@ public class BuildMetadataProtoFromXml {
" * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n" +
" * See the License for the specific language governing permissions and\n" +
" * limitations under the License.\n" +
" *\n" +
" * This file is automatically generated by BuildMetadataProtoFromXml. Please\n" +
" * don't modify directly.\n" +
" */\n\n";
private static final String MAPPING_IMPORTS =
"import java.util.ArrayList;\n" +


+ 2
- 2
java/src/com/google/i18n/phonenumbers/AsYouTypeFormatter.java View File

@ -323,9 +323,9 @@ public class AsYouTypeFormatter {
if (!ableToFormat) {
return originalPosition;
}
int accruedInputIndex = 0, currentOutputIndex = 0;
int accruedInputIndex = 0;
int currentOutputIndex = 0;
int currentOutputLength = currentOutput.length();
while (accruedInputIndex < positionToRemember && currentOutputIndex < currentOutputLength) {
if (accruedInputWithoutFormatting.charAt(accruedInputIndex) ==
currentOutput.charAt(currentOutputIndex)) {


+ 3
- 0
java/src/com/google/i18n/phonenumbers/CountryCodeToRegionCodeMap.java View File

@ -12,6 +12,9 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* This file is automatically generated by BuildMetadataProtoFromXml. Please
* don't modify directly.
*/
package com.google.i18n.phonenumbers;


+ 3
- 0
java/test/com/google/i18n/phonenumbers/CountryCodeToRegionCodeMapForTesting.java View File

@ -12,6 +12,9 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* This file is automatically generated by BuildMetadataProtoFromXml. Please
* don't modify directly.
*/
package com.google.i18n.phonenumbers;


Loading…
Cancel
Save