Lines Matching refs:errorCode
57 PreparsedUCD::PreparsedUCD(const char *filename, UErrorCode &errorCode)
64 if(U_FAILURE(errorCode)) { return; }
75 errorCode=U_FILE_ACCESS_ERROR;
105 PreparsedUCD::readLine(UErrorCode &errorCode) {
106 if(U_FAILURE(errorCode)) { return NO_LINE; }
123 errorCode=U_FILE_ACCESS_ERROR;
155 errorCode=U_PARSE_ERROR;
185 PreparsedUCD::getProps(UnicodeSet &newValues, UErrorCode &errorCode) {
186 if(U_FAILURE(errorCode)) { return NULL; }
189 errorCode=U_ILLEGAL_ARGUMENT_ERROR;
200 errorCode=U_PARSE_ERROR;
204 if(!parseCodePointRange(field, start, end, errorCode)) { return NULL; }
212 errorCode=U_PARSE_ERROR;
219 errorCode=U_PARSE_ERROR;
243 errorCode=U_PARSE_ERROR;
250 errorCode=U_ILLEGAL_ARGUMENT_ERROR;
256 if(!parseProperty(*props, field, newValues, errorCode)) { return NULL; }
273 UErrorCode &errorCode) {
284 errorCode=U_PARSE_ERROR;
294 pBuffer.append(p, (int32_t)(v-p), errorCode);
321 errorCode=U_PARSE_ERROR;
329 errorCode=U_PARSE_ERROR;
334 errorCode=U_PARSE_ERROR;
349 errorCode=U_PARSE_ERROR;
390 errorCode=U_PARSE_ERROR;
411 props.bmg=parseCodePoint(v, errorCode);
414 props.scf=parseCodePoint(v, errorCode);
417 props.slc=parseCodePoint(v, errorCode);
420 props.stc=parseCodePoint(v, errorCode);
423 props.suc=parseCodePoint(v, errorCode);
426 parseString(v, props.cf, errorCode);
429 parseString(v, props.lc, errorCode);
432 parseString(v, props.tc, errorCode);
435 parseString(v, props.uc, errorCode);
445 parseScriptExtensions(v, props.scx, errorCode);
452 if(U_SUCCESS(errorCode)) {
461 PreparsedUCD::getRangeForAlgNames(UChar32 &start, UChar32 &end, UErrorCode &errorCode) {
462 if(U_FAILURE(errorCode)) { return FALSE; }
464 errorCode=U_ILLEGAL_ARGUMENT_ERROR;
475 errorCode=U_PARSE_ERROR;
478 return parseCodePointRange(field, start, end, errorCode);
482 PreparsedUCD::parseCodePoint(const char *s, UErrorCode &errorCode) {
489 errorCode=U_PARSE_ERROR;
496 PreparsedUCD::parseCodePointRange(const char *s, UChar32 &start, UChar32 &end, UErrorCode &errorCode) {
498 u_parseCodePointRange(s, &st, &e, &errorCode);
499 if(U_FAILURE(errorCode)) {
511 PreparsedUCD::parseString(const char *s, UnicodeString &uni, UErrorCode &errorCode) {
513 int32_t length=u_parseString(s, buffer, uni.getCapacity(), NULL, &errorCode);
514 if(errorCode==U_BUFFER_OVERFLOW_ERROR) {
515 errorCode=U_ZERO_ERROR;
518 length=u_parseString(s, buffer, uni.getCapacity(), NULL, &errorCode);
521 if(U_FAILURE(errorCode)) {
529 PreparsedUCD::parseScriptExtensions(const char *s, UnicodeSet &scx, UErrorCode &errorCode) {
530 if(U_FAILURE(errorCode)) { return; }
537 scs=scString.clear().append(s, (int32_t)(scLimit-s), errorCode).data();
538 if(U_FAILURE(errorCode)) { return; }
547 errorCode=U_PARSE_ERROR;
553 errorCode=U_PARSE_ERROR;
566 errorCode=U_PARSE_ERROR;