• Home
  • Raw
  • Download

Lines Matching refs:pErrorCode

60 parseMappings(const char *filename, UBool reportError, UErrorCode *pErrorCode);
63 parseNormalizationCorrections(const char *filename, UErrorCode *pErrorCode);
282 UErrorCode *pErrorCode) { in normalizationCorrectionsLineFn() argument
294 if(U_FAILURE(*pErrorCode)) { in normalizationCorrectionsLineFn()
296 exit(*pErrorCode); in normalizationCorrectionsLineFn()
302 length=u_parseCodePoints(s, mapping, sizeof(mapping)/4, pErrorCode); in normalizationCorrectionsLineFn()
311 if(U_FAILURE(*pErrorCode)) { in normalizationCorrectionsLineFn()
313 (long)code, u_errorName(*pErrorCode)); in normalizationCorrectionsLineFn()
314 exit(*pErrorCode); in normalizationCorrectionsLineFn()
321 storeMapping(code,mapping, length, USPREP_MAP, pErrorCode); in normalizationCorrectionsLineFn()
327 parseNormalizationCorrections(const char *filename, UErrorCode *pErrorCode) { in parseNormalizationCorrections() argument
330 if(pErrorCode==NULL || U_FAILURE(*pErrorCode)) { in parseNormalizationCorrections()
334 … u_parseDelimitedFile(filename, ';', fields, 4, normalizationCorrectionsLineFn, NULL, pErrorCode); in parseNormalizationCorrections()
338 if(U_FAILURE(*pErrorCode) && ( *pErrorCode!=U_FILE_ACCESS_ERROR)) { in parseNormalizationCorrections()
339 … "gensprep error: u_parseDelimitedFile(\"%s\") failed - %s\n", filename, u_errorName(*pErrorCode)); in parseNormalizationCorrections()
340 exit(*pErrorCode); in parseNormalizationCorrections()
347 UErrorCode *pErrorCode) { in strprepProfileLineFn() argument
384 u_parseCodePointRange(s, &rangeStart,&rangeEnd, pErrorCode); in strprepProfileLineFn()
385 if(U_FAILURE(*pErrorCode)){ in strprepProfileLineFn()
386 … fprintf(stderr, "Could not parse code point range. Error: %s\n",u_errorName(*pErrorCode)); in strprepProfileLineFn()
391 storeRange(rangeStart,rangeEnd,USPREP_UNASSIGNED, pErrorCode); in strprepProfileLineFn()
395 u_parseCodePointRange(s, &rangeStart,&rangeEnd, pErrorCode); in strprepProfileLineFn()
396 if(U_FAILURE(*pErrorCode)){ in strprepProfileLineFn()
397 … fprintf(stderr, "Could not parse code point range. Error: %s\n",u_errorName(*pErrorCode)); in strprepProfileLineFn()
402 storeRange(rangeStart,rangeEnd,USPREP_PROHIBITED, pErrorCode); in strprepProfileLineFn()
410 *pErrorCode=U_PARSE_ERROR; in strprepProfileLineFn()
415 length=u_parseCodePoints(map, mapping, sizeof(mapping)/4, pErrorCode); in strprepProfileLineFn()
418 storeMapping(code,mapping, length,USPREP_MAP, pErrorCode); in strprepProfileLineFn()
421 *pErrorCode = U_INVALID_FORMAT_ERROR; in strprepProfileLineFn()
424 if(U_FAILURE(*pErrorCode)) { in strprepProfileLineFn()
426 fields[0][0],fields[2][0],u_errorName(*pErrorCode)); in strprepProfileLineFn()
427 exit(*pErrorCode); in strprepProfileLineFn()
433 parseMappings(const char *filename, UBool reportError, UErrorCode *pErrorCode) { in parseMappings() argument
436 if(pErrorCode==NULL || U_FAILURE(*pErrorCode)) { in parseMappings()
440 … u_parseDelimitedFile(filename, ';', fields, 3, strprepProfileLineFn, (void*)filename, pErrorCode); in parseMappings()
444 if(U_FAILURE(*pErrorCode) && (reportError || *pErrorCode!=U_FILE_ACCESS_ERROR)) { in parseMappings()
445 … "gensprep error: u_parseDelimitedFile(\"%s\") failed - %s\n", filename, u_errorName(*pErrorCode)); in parseMappings()
446 exit(*pErrorCode); in parseMappings()