• Home
  • Raw
  • Download

Lines Matching refs:pErrorCode

56 parseMappings(const char *filename, UBool reportError, UErrorCode *pErrorCode);
59 parseNormalizationCorrections(const char *filename, UErrorCode *pErrorCode);
278 UErrorCode *pErrorCode) { in normalizationCorrectionsLineFn() argument
288 if(U_FAILURE(*pErrorCode)) { in normalizationCorrectionsLineFn()
290 exit(*pErrorCode); in normalizationCorrectionsLineFn()
296 length=u_parseCodePoints(s, mapping, sizeof(mapping)/4, pErrorCode); in normalizationCorrectionsLineFn()
305 if(U_FAILURE(*pErrorCode)) { in normalizationCorrectionsLineFn()
307 (long)code, u_errorName(*pErrorCode)); in normalizationCorrectionsLineFn()
308 exit(*pErrorCode); in normalizationCorrectionsLineFn()
315 storeMapping(code,mapping, length, USPREP_MAP, pErrorCode); in normalizationCorrectionsLineFn()
321 parseNormalizationCorrections(const char *filename, UErrorCode *pErrorCode) { in parseNormalizationCorrections() argument
324 if(pErrorCode==NULL || U_FAILURE(*pErrorCode)) { in parseNormalizationCorrections()
328 … u_parseDelimitedFile(filename, ';', fields, 4, normalizationCorrectionsLineFn, NULL, pErrorCode); in parseNormalizationCorrections()
332 if(U_FAILURE(*pErrorCode) && ( *pErrorCode!=U_FILE_ACCESS_ERROR)) { in parseNormalizationCorrections()
333 … "gensprep error: u_parseDelimitedFile(\"%s\") failed - %s\n", filename, u_errorName(*pErrorCode)); in parseNormalizationCorrections()
334 exit(*pErrorCode); in parseNormalizationCorrections()
341 UErrorCode *pErrorCode) { in strprepProfileLineFn() argument
377 u_parseCodePointRange(s, &rangeStart,&rangeEnd, pErrorCode); in strprepProfileLineFn()
378 if(U_FAILURE(*pErrorCode)){ in strprepProfileLineFn()
379 … fprintf(stderr, "Could not parse code point range. Error: %s\n",u_errorName(*pErrorCode)); in strprepProfileLineFn()
384 storeRange(rangeStart,rangeEnd,USPREP_UNASSIGNED, pErrorCode); in strprepProfileLineFn()
388 u_parseCodePointRange(s, &rangeStart,&rangeEnd, pErrorCode); in strprepProfileLineFn()
389 if(U_FAILURE(*pErrorCode)){ in strprepProfileLineFn()
390 … fprintf(stderr, "Could not parse code point range. Error: %s\n",u_errorName(*pErrorCode)); in strprepProfileLineFn()
395 storeRange(rangeStart,rangeEnd,USPREP_PROHIBITED, pErrorCode); in strprepProfileLineFn()
403 *pErrorCode=U_PARSE_ERROR; in strprepProfileLineFn()
408 length=u_parseCodePoints(map, mapping, sizeof(mapping)/4, pErrorCode); in strprepProfileLineFn()
411 storeMapping(code,mapping, length,USPREP_MAP, pErrorCode); in strprepProfileLineFn()
414 *pErrorCode = U_INVALID_FORMAT_ERROR; in strprepProfileLineFn()
417 if(U_FAILURE(*pErrorCode)) { in strprepProfileLineFn()
419 fields[0][0],fields[2][0],u_errorName(*pErrorCode)); in strprepProfileLineFn()
420 exit(*pErrorCode); in strprepProfileLineFn()
426 parseMappings(const char *filename, UBool reportError, UErrorCode *pErrorCode) { in parseMappings() argument
429 if(pErrorCode==NULL || U_FAILURE(*pErrorCode)) { in parseMappings()
433 … u_parseDelimitedFile(filename, ';', fields, 3, strprepProfileLineFn, (void*)filename, pErrorCode); in parseMappings()
437 if(U_FAILURE(*pErrorCode) && (reportError || *pErrorCode!=U_FILE_ACCESS_ERROR)) { in parseMappings()
438 … "gensprep error: u_parseDelimitedFile(\"%s\") failed - %s\n", filename, u_errorName(*pErrorCode)); in parseMappings()
439 exit(*pErrorCode); in parseMappings()