Lines Matching refs: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;
185 UBool toASCII, 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;
329 errorCode=U_MEMORY_ALLOCATION_ERROR;
396 processUnicode(src, labelStart, i, isLabel, toASCII, dest, info, errorCode);
397 if( info.isBiDi && U_SUCCESS(errorCode) && (info.errors&severeErrors)==0 &&
409 IDNAInfo &info, UErrorCode &errorCode) const {
410 if(U_FAILURE(errorCode)) {
416 errorCode=U_ILLEGAL_ARGUMENT_ERROR;
500 destString, info, errorCode);
505 destString, info, errorCode);
519 if( info.isBiDi && U_SUCCESS(errorCode) && (info.errors&severeErrors)==0 &&
531 IDNAInfo &info, UErrorCode &errorCode) const {
533 uts46Norm2.normalize(src, dest, errorCode);
535 uts46Norm2.normalizeSecondAndAppend(dest, src.tempSubString(mappingStart), errorCode);
537 if(U_FAILURE(errorCode)) {
551 toASCII, info, errorCode);
554 if(U_FAILURE(errorCode)) {
563 destLength=mapDevChars(dest, labelStart, labelLimit, errorCode);
564 if(U_FAILURE(errorCode)) {
583 toASCII, info, errorCode);
591 UErrorCode &errorCode) const {
592 if(U_FAILURE(errorCode)) {
598 errorCode=U_MEMORY_ALLOCATION_ERROR;
617 errorCode=U_MEMORY_ALLOCATION_ERROR;
649 uts46Norm2.normalize(dest.tempSubString(labelStart), normalized, errorCode);
650 if(U_SUCCESS(errorCode)) {
653 errorCode=U_MEMORY_ALLOCATION_ERROR;
676 const UnicodeString &label, int32_t labelLength, UErrorCode &errorCode) {
677 if(U_FAILURE(errorCode)) {
683 errorCode=U_MEMORY_ALLOCATION_ERROR;
694 IDNAInfo &info, UErrorCode &errorCode) const {
695 if(U_FAILURE(errorCode)) {
710 errorCode=U_MEMORY_ALLOCATION_ERROR;
721 errorCode=U_MEMORY_ALLOCATION_ERROR;
732 return markBadACELabel(dest, labelStart, labelLength, toASCII, info, errorCode);
741 UBool isValid=uts46Norm2.isNormalized(fromPunycode, errorCode);
742 if(U_FAILURE(errorCode)) {
747 return markBadACELabel(dest, labelStart, labelLength, toASCII, info, errorCode);
761 *labelString, labelLength, errorCode);
852 errorCode=U_MEMORY_ALLOCATION_ERROR;
861 NULL, &errorCode);
862 if(errorCode
863 errorCode=U_ZERO_ERROR;
867 errorCode=U_MEMORY_ALLOCATION_ERROR;
872 NULL, &errorCode);
876 if(U_FAILURE(errorCode)) {
883 punycode, punycodeLength, errorCode);
896 return markBadACELabel(dest, destLabelStart, destLabelLength, toASCII, info, errorCode);
900 *labelString, labelLength, errorCode);
909 UBool toASCII, IDNAInfo &info, UErrorCode &errorCode) const {
910 if(U_FAILURE(errorCode)) {
941 errorCode=U_MEMORY_ALLOCATION_ERROR;
1223 UErrorCode errorCode=U_ZERO_ERROR;
1226 script=uscript_getScript(c, &errorCode);
1243 UErrorCode errorCode=U_ZERO_ERROR;
1246 script=uscript_getScript(c, &errorCode);
1284 UErrorCode errorCode=U_ZERO_ERROR;
1291 UScriptCode script=uscript_getScript(c, &errorCode);