Home | History | Annotate | Download | only in phonenumbers

Lines Matching refs:output

103     StringBuilder output;
140 StringBuilder output = new StringBuilder(
143 output.append("<TABLE align=center border=1>");
144 output.append("<TH align=center>ID</TH>");
145 output.append("<TH align=center>Raw phone number</TH>");
146 output.append("<TH align=center>Pretty formatting</TH>");
147 output.append("<TH align=center>International format</TH>");
154 output.append("<TR>");
155 output.append("<TD align=center>").append(phoneNumberId).append(" </TD> \n");
156 output.append("<TD align=center>").append(
168 output.append("<TD align=center>").append(
170 output.append("<TD align=center>").append(
173 output.append("<TD align=center colspan=2>").append(
176 output.append("</TR>");
178 output.append("</BODY></HTML>");
179 return output;
182 private void appendLine(String title, String data, StringBuilder output) {
183 output.append("<TR>");
184 output.append("<TH>").append(title).append("</TH>");
185 output.append("<TD>").append(data.length() > 0 ? data : "&nbsp;").append("</TD>");
186 output.append("</TR>");
263 StringBuilder output = new StringBuilder("<HTML><HEAD>");
264 output.append(
266 output.append("</HEAD>");
267 output.append("<BODY>");
268 output.append("Phone Number entered: " + StringEscapeUtils.escapeHtml(phoneNumber) + "<BR>");
269 output.append("defaultCountry entered: " + StringEscapeUtils.escapeHtml(defaultCountry)
271 output.append("Language entered: "
275 output.append("<DIV>");
276 output.append("<TABLE border=1>");
277 output.append("<TR><TD colspan=2>Parsing Result</TD></TR>");
279 appendLine("country_code", Integer.toString(number.getCountryCode()), output);
280 appendLine("national_number", Long.toString(number.getNationalNumber()), output);
281 appendLine("extension", number.getExtension(), output);
282 appendLine("country_code_source", number.getCountryCodeSource().toString(), output);
283 appendLine("italian_leading_zero", Boolean.toString(number.isItalianLeadingZero()), output);
284 appendLine("raw_input", number.getRawInput(), output);
285 output.append("</TABLE>");
286 output.append("</DIV>");
293 output.append("<DIV>");
294 output.append("<TABLE border=1>");
295 output.append("<TR><TD colspan=2>Validation Results</TD></TR>");
296 appendLine("Result from isPossibleNumber()", Boolean.toString(isPossible), output);
299 phoneUtil.isPossibleNumberWithReason(number).toString(), output);
300 output.append("<TR><TD colspan=2>Note: numbers that are not possible have type " +
303 appendLine("Result from isValidNumber()", Boolean.toString(isNumberValid), output);
309 output);
313 appendLine("Phone Number region", region == null ? "" : region, output);
314 appendLine("Result from getNumberType()", numberType.toString(), output);
316 output.append("</TABLE>");
317 output.append("</DIV>");
320 output.append("<DIV>");
321 output.append("<TABLE border=1>");
322 output.append("<TR><TD colspan=2>Short Number Results</TD></TR>");
325 Boolean.toString(isPossibleShort), output);
328 Boolean.toString(shortInfo.isValidShortNumber(number)), output);
333 Boolean.toString(isPossibleShortForRegion), output);
337 defaultCountry)), output);
341 output.append("</TABLE>");
342 output.append("</DIV>");
345 output.append("<DIV>");
346 output.append("<TABLE border=1>");
347 output.append("<TR><TD colspan=2>Formatting Results</TD></TR>");
350 output);
352 phoneUtil.formatInOriginalFormat(number, defaultCountry), output);
353 appendLine("National format", phoneUtil.format(number, PhoneNumberFormat.NATIONAL), output);
357 output);
361 output);
365 output);
366 output.append("</TABLE>");
367 output.append("</DIV>");
371 output.append("<DIV>");
372 output.append("<TABLE border=1>");
373 output.append("<TR><TD colspan=2>AsYouTypeFormatter Results</TD></TR>");
378 appendLine("Char entered: '" + inputChar + "' Output: ",
379 formatter.inputDigit(inputChar), output);
381 output.append("</TABLE>");
382 output.append("</DIV>");
385 output.append("<DIV>");
386 output.append("<TABLE border=1>");
387 output.append("<TR><TD colspan=2>PhoneNumberOfflineGeocoder Results</TD></TR>");
392 output);
393 output.append("</TABLE>");
394 output.append("</DIV>");
396 output.append("<DIV>");
397 output.append("<TABLE border=1>");
398 output.append("<TR><TD colspan=2>PhoneNumberToTimeZonesMapper Results</TD></TR>");
402 output);
403 output.append("</TABLE>");
404 output.append("</DIV>");
409 output.append("<DIV>");
410 output.append("<TABLE border=1>");
411 output.append("<TR><TD colspan=2>PhoneNumberToCarrierMapper Results</TD></TR>");
415 output);
416 output.append("</TABLE>");
417 output.append("</DIV>");
424 output.append("<b style=\"color:red\">File an issue</b>: by clicking on "
429 output.append(StringEscapeUtils.escapeHtml(e.toString()));
431 output.append("</BODY></HTML>");
432 return output;