");
- for (int i = 0; i < rawNumberLength; i++) {
- // Note this doesn't handle supplementary characters, but it shouldn't be a big deal as
- // there are no dial-pad characters in the supplementary range.
- char inputChar = phoneNumber.charAt(i);
- appendLine(
- "Char entered: '" + inputChar + "' Output: ", formatter.inputDigit(inputChar), output);
- }
- output.append("
+ {/if}
+{/if}
+
+File an issue: by clicking on this link, I confirm that I have read the contributor's guidelines.
+
+
+{/template}
\ No newline at end of file
diff --git a/java/demo/src/main/resources/com/google/phonenumbers/demo/result_error.soy b/java/demo/src/main/resources/com/google/phonenumbers/demo/result_error.soy
new file mode 100644
index 000000000..1f3c4007b
--- /dev/null
+++ b/java/demo/src/main/resources/com/google/phonenumbers/demo/result_error.soy
@@ -0,0 +1,20 @@
+{namespace com.google.phonenumbers.demo.error}
+{template error}
+{@param phoneNumber: string}
+{@param defaultCountry: string}
+{@param geocodingLocale: string}
+{@param error: string}
+
+
+
+
+ Results for {$phoneNumber}
+
+
+
Phone Number entered: {$phoneNumber}
+
Default Country entered: {$defaultCountry}
+
Language entered: {$geocodingLocale}
+
An error occurred while parsing the input: {$error}
+
+
+{/template}
\ No newline at end of file
diff --git a/java/demo/src/main/resources/com/google/phonenumbers/demo/result_file.soy b/java/demo/src/main/resources/com/google/phonenumbers/demo/result_file.soy
new file mode 100644
index 000000000..fd921fe43
--- /dev/null
+++ b/java/demo/src/main/resources/com/google/phonenumbers/demo/result_file.soy
@@ -0,0 +1,44 @@
+{namespace com.google.phonenumbers.demo.file}
+{template file}
+ {@param rows: list<[id: int, numberStr: string, prettyFormat: string|null, internationalFormat: string|null, error: string|null]>}
+
+
+
+
+
+ Results generated from phone numbers in the file provided
+
+
+
+
Results generated from phone numbers in the file provided: