Lines Matching refs:errorCode
203 * so that callers need to check only for U_FAILURE(errorCode)
207 * @param errorCode in/out UErrorCode, set to U_MEMORY_ALLOCATION_ERROR
211 LocalPointer(T *p, UErrorCode &errorCode) : LocalPointerBase<T>(p) {
212 if(p==NULL && U_SUCCESS(errorCode)) {
213 errorCode=U_MEMORY_ALLOCATION_ERROR;
294 * If U_FAILURE(errorCode), then the current object is retained and the new one deleted.
296 * If U_SUCCESS(errorCode) but the input pointer is NULL,
301 * @param errorCode in/out UErrorCode, set to U_MEMORY_ALLOCATION_ERROR
305 void adoptInsteadAndCheckErrorCode(T *p, UErrorCode &errorCode) {
306 if(U_SUCCESS(errorCode)) {
310 errorCode=U_MEMORY_ALLOCATION_ERROR;
352 * so that callers need to check only for U_FAILURE(errorCode)
356 * @param errorCode in/out UErrorCode, set to U_MEMORY_ALLOCATION_ERROR
360 LocalArray(T *p, UErrorCode &errorCode) : LocalPointerBase<T>(p) {
361 if(p==NULL && U_SUCCESS(errorCode)) {
362 errorCode=U_MEMORY_ALLOCATION_ERROR;
443 * If U_FAILURE(errorCode), then the current array is retained and the new one deleted.
445 * If U_SUCCESS(errorCode) but the input pointer is NULL,
450 * @param errorCode in/out UErrorCode, set to U_MEMORY_ALLOCATION_ERROR
454 void adoptInsteadAndCheckErrorCode(T *p, UErrorCode &errorCode) {
455 if(U_SUCCESS(errorCode)) {
459 errorCode=U_MEMORY_ALLOCATION_ERROR;
484 * LocalUCaseMapPointer csm(ucasemap_open(localeID, options, &errorCode));
487 * utf8In, utf8InLength, &errorCode);
488 * if(U_FAILURE(errorCode)) { return; } // no need to explicitly delete the UCaseMap