Lines Matching refs:result

50                              const UnicodeString &expected, const UnicodeString &result,
130 UnicodeString result;
134 trans->nameToASCII(input, result, info, errorCode);
135 if(U_FAILURE(errorCode) || info.hasErrors() || result!=expected) {
136 errln("T.nameToASCII(www.example.com) info.errors=%04lx result matches=%d %s",
137 (long)info.getErrors(), result==expected, u_errorName(errorCode));
140 trans->nameToUnicode(input, result, info, errorCode);
141 if(errorCode!=U_USELESS_COLLATOR_ERROR || !result.isBogus()) {
143 "or not result.setToBogus() - %s",
148 result=UNICODE_STRING_SIMPLE("quatsch");
149 nontrans->labelToASCII(input, result, info, errorCode);
150 if(errorCode!=U_ILLEGAL_ARGUMENT_ERROR || !result.isBogus()) {
152 "or not result.setToBogus() - %s",
158 nontrans->labelToASCII(input, result, info, errorCode);
161 result!=expected
229 UnicodeString result;
231 if( not3->nameToUnicode(input, result, info, errorCode)!=
235 prettify(result).extract(0, 0x7fffffff, buffer, UPRV_LENGTHOF(buffer));
241 not3->nameToASCII(input, result, info, errorCode);
242 if(result!=input || info.getErrors()!=UIDNA_ERROR_BIDI) {
247 not3->nameToUnicode(input, result, info, errorCode);
248 if(result!=input || info.hasErrors()) {
249 prettify(result).extract(0, 0x7fffffff, buffer, UPRV_LENGTHOF(buffer));
261 UnicodeString result;
264 idna->nameToUnicode(u"xn--pleP", result, info, errorCode); // P=U+0050
267 assertEquals("normal result", u"ᔼᔴ", result);
271 idna->nameToUnicode(u"xn--pleѐ", result, info, errorCode); // ends with non-ASCII U+0450
279 idna->nameToUnicode(u"xn--ple/", result, info, errorCode);
286 idna->nameToUnicode(u"xn--ple:", result, info, errorCode);
293 idna->nameToUnicode(u"xn--ple@", result, info, errorCode);
300 idna->nameToUnicode(u"xn--ple[", result, info, errorCode);
307 idna->nameToUnicode(u"xn--ple`", result, info, errorCode);
314 idna->nameToUnicode(u"xn--ple{", result, info, errorCode);
328 UnicodeString result;
331 idna->labelToUnicode(u"xn--", result, info, errorCode);
336 idna->labelToUnicode(u"xN--ASCII-", result, info, errorCode);
344 idna->labelToUnicode(u"Xn---", result, info, errorCode);
366 // Expected Unicode result string.
778 errln("N.nameToASCII([%d] %s) (errors %04lx) result is not ASCII %s",
784 errln("T.nameToASCII([%d] %s) (errors %04lx) result is not ASCII %s",
791 logln("%c.nameToASCII([%d] %s) (errors %04lx) result string: %s",
795 logln("T.nameToASCII([%d] %s) (errors %04lx) result string: %s",
937 errln("N.process([%d] %s) vs. T.process() different errors or result strings",
956 errln("N.process([%d] %s) vs. T.process() same result strings",
1044 const UnicodeString &expected, const UnicodeString &result,
1061 if (!expectedHasErrors && expected != result) {
1064 errln(UnicodeString(u" ") + result);
1075 // The result of applying toUnicode to the source, with Transitional_Processing=false.
1088 // The result of applying toASCII to the source, with Transitional_Processing=false.
1104 // The result of applying toASCII to the source, with Transitional_Processing=true.