Lines Matching refs:pErrorCode
1718 UErrorCode *pErrorCode) {
1724 if(pErrorCode==NULL || U_FAILURE(*pErrorCode)) {
1732 *pErrorCode=U_ILLEGAL_ARGUMENT_ERROR;
1752 ucnv_fromUnicode(cnv, &dest, destLimit, &src, srcLimit, 0, TRUE, pErrorCode);
1756 if(*pErrorCode==U_BUFFER_OVERFLOW_ERROR) {
1762 *pErrorCode=U_ZERO_ERROR;
1763 ucnv_fromUnicode(cnv, &dest, destLimit, &src, srcLimit, 0, TRUE, pErrorCode);
1765 } while(*pErrorCode==U_BUFFER_OVERFLOW_ERROR);
1771 return u_terminateChars(originalDest, destCapacity, destLength, pErrorCode);
1778 UErrorCode *pErrorCode) {
1784 if(pErrorCode==NULL || U_FAILURE(*pErrorCode)) {
1792 *pErrorCode=U_ILLEGAL_ARGUMENT_ERROR;
1812 ucnv_toUnicode(cnv, &dest, destLimit, &src, srcLimit, 0, TRUE, pErrorCode);
1816 if(*pErrorCode==U_BUFFER_OVERFLOW_ERROR)
1823 *pErrorCode=U_ZERO_ERROR;
1824 ucnv_toUnicode(cnv, &dest, destLimit, &src, srcLimit, 0, TRUE, pErrorCode);
1827 while(*pErrorCode==U_BUFFER_OVERFLOW_ERROR);
1833 return u_terminateUChars(originalDest, destCapacity, destLength, pErrorCode);
2050 UErrorCode *pErrorCode) {
2062 if(pErrorCode==NULL || U_FAILURE(*pErrorCode)) {
2070 *pErrorCode=U_ILLEGAL_ARGUMENT_ERROR;
2077 *pErrorCode=U_ILLEGAL_ARGUMENT_ERROR;
2089 *pErrorCode=U_ILLEGAL_ARGUMENT_ERROR;
2096 *pErrorCode=U_ILLEGAL_ARGUMENT_ERROR;
2110 *pErrorCode=U_ILLEGAL_ARGUMENT_ERROR;
2125 if(ucnv_outputOverflowFromUnicode(targetCnv, target, targetLimit, NULL, pErrorCode)) {
2222 U_FAILURE(*pErrorCode) ||
2228 _fromUnicodeWithCallback(&fromUArgs, pErrorCode);
2229 if(U_FAILURE(*pErrorCode)) {
2252 if(ucnv_outputOverflowToUnicode(sourceCnv, pivotTarget, pivotLimit, NULL, pErrorCode)) {
2254 *pErrorCode=U_ZERO_ERROR;
2280 if(*pErrorCode==U_USING_DEFAULT_WARNING) {
2282 *pErrorCode=U_ZERO_ERROR;
2284 convert(&fromUArgs, &toUArgs, pErrorCode);
2285 if(*pErrorCode==U_BUFFER_OVERFLOW_ERROR) {
2287 } else if(U_FAILURE(*pErrorCode)) {
2310 } else if(*pErrorCode==U_USING_DEFAULT_WARNING) {
2315 *pErrorCode=U_ZERO_ERROR;
2328 *pErrorCode=U_TRUNCATED_CHAR_FOUND;
2353 _toUnicodeWithCallback(&toUArgs, pErrorCode);
2355 if(*pErrorCode==U_BUFFER_OVERFLOW_ERROR) {
2357 *pErrorCode=U_ZERO_ERROR;
2358 } else if(U_FAILURE(*pErrorCode) || (!flush && *pivotTarget==pivotStart)) {
2389 if(flush && U_SUCCESS(*pErrorCode)) {
2392 if(*pErrorCode==U_STRING_NOT_TERMINATED_WARNING) {
2393 *pErrorCode=U_ZERO_ERROR;
2396 *pErrorCode=U_STRING_NOT_TERMINATED_WARNING;
2406 UErrorCode *pErrorCode) {
2424 return u_terminateChars(target, targetCapacity, 0, pErrorCode);
2440 pErrorCode);
2449 if(*pErrorCode==U_BUFFER_OVERFLOW_ERROR || targetCapacity==0)
2455 *pErrorCode=U_ZERO_ERROR;
2463 pErrorCode);
2465 } while(*pErrorCode==U_BUFFER_OVERFLOW_ERROR);
2468 return u_terminateChars(target, targetCapacity, targetLength, pErrorCode);
2479 UErrorCode *pErrorCode) {
2484 if(pErrorCode==NULL || U_FAILURE(*pErrorCode)) {
2491 *pErrorCode=U_ILLEGAL_ARGUMENT_ERROR;
2497 return u_terminateChars(target, targetCapacity, 0, pErrorCode);
2501 inConverter=ucnv_createConverter(&in, fromConverterName, pErrorCode);
2502 if(U_FAILURE(*pErrorCode)) {
2506 outConverter=ucnv_createConverter(&out, toConverterName, pErrorCode);
2507 if(U_FAILURE(*pErrorCode)) {
2515 pErrorCode);
2530 UErrorCode *pErrorCode) {
2535 if(pErrorCode==NULL || U_FAILURE(*pErrorCode)) {
2542 *pErrorCode=U_ILLEGAL_ARGUMENT_ERROR;
2548 return u_terminateChars(target, targetCapacity, 0, pErrorCode);
2553 "", 0, pErrorCode);
2554 if(U_FAILURE(*pErrorCode)) {
2574 pErrorCode);
2586 UErrorCode *pErrorCode) {
2590 pErrorCode);
2598 UErrorCode *pErrorCode) {
2602 pErrorCode);
2756 UErrorCode* pErrorCode) {
2765 if((pErrorCode==NULL) || U_FAILURE(*pErrorCode)){
2770 *pErrorCode = U_ILLEGAL_ARGUMENT_ERROR;