Home | History | Annotate | Download | only in intltest

Lines Matching refs:errorCode

56             IcuTestErrorCode errorCode(*this, "init/createUTS46Instance()");
60 trans=IDNA::createUTS46Instance(commonOptions, errorCode);
64 errorCode);
65 if(errorCode.logDataIfFailureAndReset("createUTS46Instance()")) {
110 UErrorCode errorCode=U_ZERO_ERROR;
115 trans->nameToASCII(input, result, info, errorCode);
116 if(U_FAILURE(errorCode) || info.hasErrors() || result!=expected) {
118 (long)info.getErrors(), result==expected, u_errorName(errorCode));
120 errorCode=U_USELESS_COLLATOR_ERROR;
121 trans->nameToUnicode(input, result, info, errorCode);
122 if(errorCode!=U_USELESS_COLLATOR_ERROR || !result.isBogus()) {
123 errln("T.nameToUnicode(U_FAILURE) did not preserve the errorCode "
125 u_errorName(errorCode));
127 errorCode=U_ZERO_ERROR;
130 nontrans->labelToASCII(input, result, info, errorCode);
131 if(errorCode!=U_ILLEGAL_ARGUMENT_ERROR || !result.isBogus()) {
134 u_errorName(errorCode));
136 errorCode=U_ZERO_ERROR;
139 nontrans->labelToASCII(input, result, info, errorCode);
140 if( U_FAILURE(errorCode) ||
145 info.getErrors(), u_errorName(errorCode));
150 errorCode=U_ZERO_ERROR;
151 nontrans->labelToUnicodeUTF8(StringPiece(NULL, 5), sink, info, errorCode);
152 if(errorCode!=U_ILLEGAL_ARGUMENT_ERROR || sink.NumberOfBytesWritten()!=0) {
155 u_errorName(errorCode));
159 errorCode=U_ZERO_ERROR;
160 nontrans->nameToASCII_UTF8(StringPiece(), sink, info, errorCode);
161 if(U_FAILURE(errorCode) || sink.NumberOfBytesWritten()!=0 || !sink.calledFlush) {
163 u_errorName(errorCode));
168 errorCode=U_USELESS_COLLATOR_ERROR;
169 nontrans->nameToUnicodeUTF8(StringPiece(s, 3), sink, info, errorCode);
170 if(errorCode!=U_USELESS_COLLATOR_ERROR || sink.NumberOfBytesWritten()!=0) {
171 errln("N.nameToUnicode_UTF8(U_FAILURE) did not preserve the errorCode "
173 u_errorName(errorCode));
177 errorCode=U_ZERO_ERROR;
178 trans->labelToUnicodeUTF8(StringPiece(s, 3), sink, info, errorCode);
179 if( U_FAILURE(errorCode) || sink.NumberOfBytesWritten()!=3 ||
184 u_errorName(errorCode));
188 errorCode=U_ZERO_ERROR;
193 trans->nameToUnicodeUTF8(eX, sink, info, errorCode);
194 if( U_FAILURE(errorCode) || sink.NumberOfBytesWritten()!=11 ||
198 u_errorName(errorCode));
203 IcuTestErrorCode errorCode(*this, "TestNotSTD3()");
205 LocalPointer<IDNA> not3(IDNA::createUTS46Instance(UIDNA_CHECK_BIDI, errorCode));
206 if(errorCode.isFailure()) {
212 if( not3->nameToUnicode(input, result, info, errorCode)!=
222 not3->nameToASCII(input, result, info, errorCode);
228 not3->nameToUnicode(input, result, info, errorCode);
585 IcuTestErrorCode errorCode(*this, "TestSomeCases");
595 trans->nameToASCII(input, aT, aTInfo, errorCode);
596 trans->nameToUnicode(input, uT, uTInfo, errorCode);
597 nontrans->nameToASCII(input, aN, aNInfo, errorCode);
598 nontrans->nameToUnicode(input, uN, uNInfo, errorCode);
599 if(errorCode.logIfFailureAndReset("first-level processing [%d/%s] %s",
672 nontrans->nameToUnicode(aT, aTuN, aTuNInfo, errorCode);
673 nontrans->nameToASCII(uT, uTaN, uTaNInfo, errorCode);
674 nontrans->nameToUnicode(aN, aNuN, aNuNInfo, errorCode);
675 nontrans->nameToASCII(uN, uNaN, uNaNInfo, errorCode);
676 if(errorCode.logIfFailureAndReset("second-level processing [%d/%s] %s",
716 trans->labelToASCII(input, aTL, aTLInfo, errorCode);
717 trans->labelToUnicode(input, uTL, uTLInfo, errorCode);
718 nontrans->labelToASCII(input, aNL, aNLInfo, errorCode);
719 nontrans->labelToUnicode(input, uNL, uNLInfo, errorCode);
720 if(errorCode.logIfFailureAndReset("labelToXYZ processing [%d/%s] %s",
837 trans->nameToASCII_UTF8(input8, aT8Sink, aT8Info, errorCode);
838 trans->nameToUnicodeUTF8(input8, uT8Sink, uT8Info, errorCode);
839 nontrans->nameToASCII_UTF8(input8, aN8Sink, aN8Info, errorCode);
840 nontrans->nameToUnicodeUTF8(input8, uN8Sink, uN8Info, errorCode);
841 if(errorCode.logIfFailureAndReset("UTF-8 processing [%d/%s] %s",