Lines Matching refs:pErrorCode
59 parseMappings(const char *filename, UBool reportError, UErrorCode *pErrorCode);
62 parseNormalizationCorrections(const char *filename, UErrorCode *pErrorCode);
281 UErrorCode *pErrorCode) { in normalizationCorrectionsLineFn() argument
293 if(U_FAILURE(*pErrorCode)) { in normalizationCorrectionsLineFn()
295 exit(*pErrorCode); in normalizationCorrectionsLineFn()
301 length=u_parseCodePoints(s, mapping, sizeof(mapping)/4, pErrorCode); in normalizationCorrectionsLineFn()
310 if(U_FAILURE(*pErrorCode)) { in normalizationCorrectionsLineFn()
312 (long)code, u_errorName(*pErrorCode)); in normalizationCorrectionsLineFn()
313 exit(*pErrorCode); in normalizationCorrectionsLineFn()
320 storeMapping(code,mapping, length, USPREP_MAP, pErrorCode); in normalizationCorrectionsLineFn()
326 parseNormalizationCorrections(const char *filename, UErrorCode *pErrorCode) { in parseNormalizationCorrections() argument
329 if(pErrorCode==NULL || U_FAILURE(*pErrorCode)) { in parseNormalizationCorrections()
333 … u_parseDelimitedFile(filename, ';', fields, 4, normalizationCorrectionsLineFn, NULL, pErrorCode); in parseNormalizationCorrections()
337 if(U_FAILURE(*pErrorCode) && ( *pErrorCode!=U_FILE_ACCESS_ERROR)) { in parseNormalizationCorrections()
338 … "gensprep error: u_parseDelimitedFile(\"%s\") failed - %s\n", filename, u_errorName(*pErrorCode)); in parseNormalizationCorrections()
339 exit(*pErrorCode); in parseNormalizationCorrections()
346 UErrorCode *pErrorCode) { in strprepProfileLineFn() argument
383 u_parseCodePointRange(s, &rangeStart,&rangeEnd, pErrorCode); in strprepProfileLineFn()
384 if(U_FAILURE(*pErrorCode)){ in strprepProfileLineFn()
385 … fprintf(stderr, "Could not parse code point range. Error: %s\n",u_errorName(*pErrorCode)); in strprepProfileLineFn()
390 storeRange(rangeStart,rangeEnd,USPREP_UNASSIGNED, pErrorCode); in strprepProfileLineFn()
394 u_parseCodePointRange(s, &rangeStart,&rangeEnd, pErrorCode); in strprepProfileLineFn()
395 if(U_FAILURE(*pErrorCode)){ in strprepProfileLineFn()
396 … fprintf(stderr, "Could not parse code point range. Error: %s\n",u_errorName(*pErrorCode)); in strprepProfileLineFn()
401 storeRange(rangeStart,rangeEnd,USPREP_PROHIBITED, pErrorCode); in strprepProfileLineFn()
409 *pErrorCode=U_PARSE_ERROR; in strprepProfileLineFn()
414 length=u_parseCodePoints(map, mapping, sizeof(mapping)/4, pErrorCode); in strprepProfileLineFn()
417 storeMapping(code,mapping, length,USPREP_MAP, pErrorCode); in strprepProfileLineFn()
420 *pErrorCode = U_INVALID_FORMAT_ERROR; in strprepProfileLineFn()
423 if(U_FAILURE(*pErrorCode)) { in strprepProfileLineFn()
425 fields[0][0],fields[2][0],u_errorName(*pErrorCode)); in strprepProfileLineFn()
426 exit(*pErrorCode); in strprepProfileLineFn()
432 parseMappings(const char *filename, UBool reportError, UErrorCode *pErrorCode) { in parseMappings() argument
435 if(pErrorCode==NULL || U_FAILURE(*pErrorCode)) { in parseMappings()
439 … u_parseDelimitedFile(filename, ';', fields, 3, strprepProfileLineFn, (void*)filename, pErrorCode); in parseMappings()
443 if(U_FAILURE(*pErrorCode) && (reportError || *pErrorCode!=U_FILE_ACCESS_ERROR)) { in parseMappings()
444 … "gensprep error: u_parseDelimitedFile(\"%s\") failed - %s\n", filename, u_errorName(*pErrorCode)); in parseMappings()
445 exit(*pErrorCode); in parseMappings()