Lines Matching refs:pErrorCode
58 parseMappings(const char *filename, UBool reportError, UErrorCode *pErrorCode);
61 parseNormalizationCorrections(const char *filename, UErrorCode *pErrorCode);
280 UErrorCode *pErrorCode) { in normalizationCorrectionsLineFn() argument
290 if(U_FAILURE(*pErrorCode)) { in normalizationCorrectionsLineFn()
292 exit(*pErrorCode); in normalizationCorrectionsLineFn()
298 length=u_parseCodePoints(s, mapping, sizeof(mapping)/4, pErrorCode); in normalizationCorrectionsLineFn()
307 if(U_FAILURE(*pErrorCode)) { in normalizationCorrectionsLineFn()
309 (long)code, u_errorName(*pErrorCode)); in normalizationCorrectionsLineFn()
310 exit(*pErrorCode); in normalizationCorrectionsLineFn()
317 storeMapping(code,mapping, length, USPREP_MAP, pErrorCode); in normalizationCorrectionsLineFn()
323 parseNormalizationCorrections(const char *filename, UErrorCode *pErrorCode) { in parseNormalizationCorrections() argument
326 if(pErrorCode==NULL || U_FAILURE(*pErrorCode)) { in parseNormalizationCorrections()
330 … u_parseDelimitedFile(filename, ';', fields, 4, normalizationCorrectionsLineFn, NULL, pErrorCode); in parseNormalizationCorrections()
334 if(U_FAILURE(*pErrorCode) && ( *pErrorCode!=U_FILE_ACCESS_ERROR)) { in parseNormalizationCorrections()
335 … "gensprep error: u_parseDelimitedFile(\"%s\") failed - %s\n", filename, u_errorName(*pErrorCode)); in parseNormalizationCorrections()
336 exit(*pErrorCode); in parseNormalizationCorrections()
343 UErrorCode *pErrorCode) { in strprepProfileLineFn() argument
379 u_parseCodePointRange(s, &rangeStart,&rangeEnd, pErrorCode); in strprepProfileLineFn()
380 if(U_FAILURE(*pErrorCode)){ in strprepProfileLineFn()
381 … fprintf(stderr, "Could not parse code point range. Error: %s\n",u_errorName(*pErrorCode)); in strprepProfileLineFn()
386 storeRange(rangeStart,rangeEnd,USPREP_UNASSIGNED, pErrorCode); in strprepProfileLineFn()
390 u_parseCodePointRange(s, &rangeStart,&rangeEnd, pErrorCode); in strprepProfileLineFn()
391 if(U_FAILURE(*pErrorCode)){ in strprepProfileLineFn()
392 … fprintf(stderr, "Could not parse code point range. Error: %s\n",u_errorName(*pErrorCode)); in strprepProfileLineFn()
397 storeRange(rangeStart,rangeEnd,USPREP_PROHIBITED, pErrorCode); in strprepProfileLineFn()
405 *pErrorCode=U_PARSE_ERROR; in strprepProfileLineFn()
410 length=u_parseCodePoints(map, mapping, sizeof(mapping)/4, pErrorCode); in strprepProfileLineFn()
413 storeMapping(code,mapping, length,USPREP_MAP, pErrorCode); in strprepProfileLineFn()
416 *pErrorCode = U_INVALID_FORMAT_ERROR; in strprepProfileLineFn()
419 if(U_FAILURE(*pErrorCode)) { in strprepProfileLineFn()
421 fields[0][0],fields[2][0],u_errorName(*pErrorCode)); in strprepProfileLineFn()
422 exit(*pErrorCode); in strprepProfileLineFn()
428 parseMappings(const char *filename, UBool reportError, UErrorCode *pErrorCode) { in parseMappings() argument
431 if(pErrorCode==NULL || U_FAILURE(*pErrorCode)) { in parseMappings()
435 … u_parseDelimitedFile(filename, ';', fields, 3, strprepProfileLineFn, (void*)filename, pErrorCode); in parseMappings()
439 if(U_FAILURE(*pErrorCode) && (reportError || *pErrorCode!=U_FILE_ACCESS_ERROR)) { in parseMappings()
440 … "gensprep error: u_parseDelimitedFile(\"%s\") failed - %s\n", filename, u_errorName(*pErrorCode)); in parseMappings()
441 exit(*pErrorCode); in parseMappings()