Lines Matching defs:errorCode
74 IDNAInfo &info, UErrorCode &errorCode) const {
75 if(U_SUCCESS(errorCode)) {
78 info, errorCode).toUTF8(dest);
84 IDNAInfo &info, UErrorCode &errorCode) const {
85 if(U_SUCCESS(errorCode)) {
88 info, errorCode).toUTF8(dest);
94 IDNAInfo &info, UErrorCode &errorCode) const {
95 if(U_SUCCESS(errorCode)) {
98 info, errorCode).toUTF8(dest);
104 IDNAInfo &info, UErrorCode &errorCode) const {
105 if(U_SUCCESS(errorCode)) {
108 info, errorCode).toUTF8(dest);
116 UTS46(uint32_t options, UErrorCode &errorCode);
121 IDNAInfo &info, UErrorCode &errorCode) const;
125 IDNAInfo &info, UErrorCode &errorCode) const;
129 IDNAInfo &info, UErrorCode &errorCode) const;
133 IDNAInfo &info, UErrorCode &errorCode) const;
137 IDNAInfo &info, UErrorCode &errorCode) const;
141 IDNAInfo &info, UErrorCode &errorCode) const;
145 IDNAInfo &info, UErrorCode &errorCode) const;
149 IDNAInfo &info, UErrorCode &errorCode) const;
156 IDNAInfo &info, UErrorCode &errorCode) const;
162 IDNAInfo &info, UErrorCode &errorCode) const;
169 IDNAInfo &info, UErrorCode &errorCode) const;
174 UErrorCode &errorCode) const;
181 IDNAInfo &info, UErrorCode &errorCode) const;
201 IDNA::createUTS46Instance(uint32_t options, UErrorCode &errorCode) {
202 if(U_SUCCESS(errorCode)) {
203 IDNA *idna=new UTS46(options, errorCode);
205 errorCode=U_MEMORY_ALLOCATION_ERROR;
206 } else if(U_FAILURE(errorCode)) {
218 UTS46::UTS46(uint32_t opt, UErrorCode &errorCode)
219 : uts46Norm2(*Normalizer2::getInstance(NULL, "uts46", UNORM2_COMPOSE, errorCode)),
226 IDNAInfo &info, UErrorCode &errorCode) const {
227 return process(label, TRUE, TRUE, dest, info, errorCode);
232 IDNAInfo &info, UErrorCode &errorCode) const {
233 return process(label, TRUE, FALSE, dest, info, errorCode);
238 IDNAInfo &info, UErrorCode &errorCode) const {
239 process(name, FALSE, TRUE, dest, info, errorCode);
251 IDNAInfo &info, UErrorCode &errorCode) const {
252 return process(name, FALSE, FALSE, dest, info, errorCode);
257 IDNAInfo &info, UErrorCode &errorCode) const {
258 processUTF8(label, TRUE, TRUE, dest, info, errorCode);
263 IDNAInfo &info, UErrorCode &errorCode) const {
264 processUTF8(label, TRUE, FALSE, dest, info, errorCode);
269 IDNAInfo &info, UErrorCode &errorCode) const {
270 processUTF8(name, FALSE, TRUE, dest, info, errorCode);
275 IDNAInfo &info, UErrorCode &errorCode) const {
276 processUTF8(name, FALSE, FALSE, dest, info, errorCode);
305 IDNAInfo &info, UErrorCode &errorCode) const {
309 if(U_FAILURE(errorCode)) {
315 errorCode=U_ILLEGAL_ARGUMENT_ERROR;
331 errorCode=U_MEMORY_ALLOCATION_ERROR;
399 processUnicode(src, labelStart, i, isLabel, toASCII, dest, info, errorCode);
400 if( info.isBiDi && U_SUCCESS(errorCode) && (info.errors&severeErrors)==0 &&
412 IDNAInfo &info, UErrorCode &errorCode) const {
413 if(U_FAILURE(errorCode)) {
419 errorCode=U_ILLEGAL_ARGUMENT_ERROR;
506 destString, info, errorCode);
511 destString, info, errorCode);
525 if( info.isBiDi && U_SUCCESS(errorCode) && (info.errors&severeErrors)==0 &&
537 IDNAInfo &info, UErrorCode &errorCode) const {
539 uts46Norm2.normalize(src, dest, errorCode);
541 uts46Norm2.normalizeSecondAndAppend(dest, src.tempSubString(mappingStart), errorCode);
543 if(U_FAILURE(errorCode)) {
557 toASCII, info, errorCode);
560 if(U_FAILURE(errorCode)) {
569 destLength=mapDevChars(dest, labelStart, labelLimit, errorCode);
570 if(U_FAILURE(errorCode)) {
589 toASCII, info, errorCode);
597 UErrorCode &errorCode) const {
601 errorCode=U_MEMORY_ALLOCATION_ERROR;
620 errorCode=U_MEMORY_ALLOCATION_ERROR;
652 uts46Norm2.normalize(dest.tempSubString(labelStart), normalized, errorCode);
653 if(U_SUCCESS(errorCode)) {
687 IDNAInfo &info, UErrorCode &errorCode) const {
700 errorCode=U_MEMORY_ALLOCATION_ERROR;
711 errorCode=U_MEMORY_ALLOCATION_ERROR;
731 UBool isValid=uts46Norm2.isNormalized(fromPunycode, errorCode);
732 if(U_FAILURE(errorCode)) {
843 errorCode=U_MEMORY_ALLOCATION_ERROR;
852 NULL, &errorCode);
853 if(errorCode==U_BUFFER_OVERFLOW_ERROR) {
854 errorCode=U_ZERO_ERROR;
858 errorCode=U_MEMORY_ALLOCATION_ERROR;
863 NULL, &errorCode);
867 if(U_FAILURE(errorCode)) {
1206 UErrorCode errorCode=U_ZERO_ERROR;
1209 script=uscript_getScript(c, &errorCode);
1226 UErrorCode errorCode=U_ZERO_ERROR;
1229 script=uscript_getScript(c, &errorCode);
1267 UErrorCode errorCode=U_ZERO_ERROR;
1274 UScriptCode script=uscript_getScript(c, &errorCode);