Home | History | Annotate | Download | only in intltest

Lines Matching refs:errorCode

57             IcuTestErrorCode errorCode(*this, "init/createUTS46Instance()");
61 trans=IDNA::createUTS46Instance(commonOptions, errorCode);
65 errorCode);
66 if(errorCode.logDataIfFailureAndReset("createUTS46Instance()")) {
111 UErrorCode errorCode=U_ZERO_ERROR;
116 trans->nameToASCII(input, result, info, errorCode);
117 if(U_FAILURE(errorCode) || info.hasErrors() || result!=expected) {
119 (long)info.getErrors(), result==expected, u_errorName(errorCode));
121 errorCode=U_USELESS_COLLATOR_ERROR;
122 trans->nameToUnicode(input, result, info, errorCode);
123 if(errorCode!=U_USELESS_COLLATOR_ERROR || !result.isBogus()) {
124 errln("T.nameToUnicode(U_FAILURE) did not preserve the errorCode "
126 u_errorName(errorCode));
128 errorCode=U_ZERO_ERROR;
131 nontrans->labelToASCII(input, result, info, errorCode);
132 if(errorCode!=U_ILLEGAL_ARGUMENT_ERROR || !result.isBogus()) {
135 u_errorName(errorCode));
137 errorCode=U_ZERO_ERROR;
140 nontrans->labelToASCII(input, result, info, errorCode);
141 if( U_FAILURE(errorCode) ||
146 info.getErrors(), u_errorName(errorCode));
151 errorCode=U_ZERO_ERROR;
152 nontrans->labelToUnicodeUTF8(StringPiece(NULL, 5), sink, info, errorCode);
153 if(errorCode!=U_ILLEGAL_ARGUMENT_ERROR || sink.NumberOfBytesWritten()!=0) {
156 u_errorName(errorCode));
160 errorCode=U_ZERO_ERROR;
161 nontrans->nameToASCII_UTF8(StringPiece(), sink, info, errorCode);
162 if(U_FAILURE(errorCode) || sink.NumberOfBytesWritten()!=0 || !sink.calledFlush) {
164 u_errorName(errorCode));
169 errorCode=U_USELESS_COLLATOR_ERROR;
170 nontrans->nameToUnicodeUTF8(StringPiece(s, 3), sink, info, errorCode);
171 if(errorCode!=U_USELESS_COLLATOR_ERROR || sink.NumberOfBytesWritten()!=0) {
172 errln("N.nameToUnicode_UTF8(U_FAILURE) did not preserve the errorCode "
174 u_errorName(errorCode));
178 errorCode=U_ZERO_ERROR;
179 trans->labelToUnicodeUTF8(StringPiece(s, 3), sink, info, errorCode);
180 if( U_FAILURE(errorCode) || sink.NumberOfBytesWritten()!=3 ||
185 u_errorName(errorCode));
189 errorCode=U_ZERO_ERROR;
194 trans->nameToUnicodeUTF8(eX, sink, info, errorCode);
195 if( U_FAILURE(errorCode) || sink.NumberOfBytesWritten()!=11 ||
199 u_errorName(errorCode));
204 IcuTestErrorCode errorCode(*this, "TestNotSTD3()");
206 LocalPointer<IDNA> not3(IDNA::createUTS46Instance(UIDNA_CHECK_BIDI, errorCode));
207 if(errorCode.isFailure()) {
213 if( not3->nameToUnicode(input, result, info, errorCode)!=
223 not3->nameToASCII(input, result, info, errorCode);
229 not3->nameToUnicode(input, result, info, errorCode);
583 IcuTestErrorCode errorCode(*this, "TestSomeCases");
593 trans->nameToASCII(input, aT, aTInfo, errorCode);
594 trans->nameToUnicode(input, uT, uTInfo, errorCode);
595 nontrans->nameToASCII(input, aN, aNInfo, errorCode);
596 nontrans->nameToUnicode(input, uN, uNInfo, errorCode);
597 if(errorCode.logIfFailureAndReset("first-level processing [%d/%s] %s",
671 nontrans->nameToUnicode(aT, aTuN, aTuNInfo, errorCode);
672 nontrans->nameToASCII(uT, uTaN, uTaNInfo, errorCode);
673 nontrans->nameToUnicode(aN, aNuN, aNuNInfo, errorCode);
674 nontrans->nameToASCII(uN, uNaN, uNaNInfo, errorCode);
675 if(errorCode.logIfFailureAndReset("second-level processing [%d/%s] %s",
715 trans->labelToASCII(input, aTL, aTLInfo, errorCode);
716 trans->labelToUnicode(input, uTL, uTLInfo, errorCode);
717 nontrans->labelToASCII(input, aNL, aNLInfo, errorCode);
718 nontrans->labelToUnicode(input, uNL, uNLInfo, errorCode);
719 if(errorCode.logIfFailureAndReset("labelToXYZ processing [%d/%s] %s",
836 trans->nameToASCII_UTF8(input8, aT8Sink, aT8Info, errorCode);
837 trans->nameToUnicodeUTF8(input8, uT8Sink, uT8Info, errorCode);
838 nontrans->nameToASCII_UTF8(input8, aN8Sink, aN8Info, errorCode);
839 nontrans->nameToUnicodeUTF8(input8, uN8Sink, uN8Info, errorCode);
840 if(errorCode.logIfFailureAndReset("UTF-8 processing [%d/%s] %s",