• Home
  • Raw
  • Download

Lines Matching refs:pErrorCode

239 setCommonICUDataPointer(const void *pData, UBool /*warn*/, UErrorCode *pErrorCode) {  in setCommonICUDataPointer()  argument
243 udata_checkCommonData(&tData, pErrorCode); in setCommonICUDataPointer()
244 return setCommonICUData(&tData, FALSE, pErrorCode); in setCommonICUDataPointer()
441 UErrorCode *pErrorCode);
442 const char *next(UErrorCode *pErrorCode);
475 UErrorCode *pErrorCode) in UDataPathIterator() argument
489 packageStub.append(U_FILE_SEP_CHAR, *pErrorCode).append(pkg, *pErrorCode); in UDataPathIterator()
503 itemPath.append(item, (int32_t)(basename-item), *pErrorCode); in UDataPathIterator()
540 const char *UDataPathIterator::next(UErrorCode *pErrorCode) in next() argument
542 if(U_FAILURE(*pErrorCode)) { in next()
591 pathBuffer.clear().append(currentPath, pathLen, *pErrorCode); in next()
628 pathBuffer.append(U_FILE_SEP_CHAR, *pErrorCode); in next()
632 pathBuffer.append(packageStub.data()+1, packageStub.length()-1, *pErrorCode); in next()
639 pathBuffer.ensureEndsWithFileSeparator(*pErrorCode); in next()
641 pathBuffer.append(suffix, *pErrorCode); in next()
697 UErrorCode *pErrorCode) in openCommonData() argument
703 if (U_FAILURE(*pErrorCode)) { in openCommonData()
754 setCommonICUDataPointer(&U_ICUDATA_ENTRY_POINT, FALSE, pErrorCode); in openCommonData()
778 if (U_SUCCESS(*pErrorCode)) { in openCommonData()
779 *pErrorCode=U_FILE_ACCESS_ERROR; in openCommonData()
787 UDataMemory *dataToReturn = udata_findCachedData(inBasename, *pErrorCode); in openCommonData()
788 if (dataToReturn != NULL || U_FAILURE(*pErrorCode)) { in openCommonData()
796 UDataPathIterator iter(u_getDataDirectory(), inBasename, path, ".dat", TRUE, pErrorCode); in openCommonData()
798 while ((UDataMemory_isLoaded(&tData)==FALSE) && (pathBuffer = iter.next(pErrorCode)) != NULL) in openCommonData()
803 uprv_mapFile(&tData, pathBuffer, pErrorCode); in openCommonData()
808 if (U_FAILURE(*pErrorCode)) { in openCommonData()
819 uprv_mapFile(&tData, ourPathBuffer, pErrorCode); in openCommonData()
823 if (U_FAILURE(*pErrorCode)) { in openCommonData()
828 *pErrorCode=U_FILE_ACCESS_ERROR; in openCommonData()
833 udata_checkCommonData(&tData, pErrorCode); in openCommonData()
839 return udata_cacheDataItem(inBasename, &tData, pErrorCode); in openCommonData()
921 udata_setCommonData(const void *data, UErrorCode *pErrorCode) { in udata_setCommonData() argument
924 if(pErrorCode==NULL || U_FAILURE(*pErrorCode)) { in udata_setCommonData()
929 *pErrorCode=U_ILLEGAL_ARGUMENT_ERROR; in udata_setCommonData()
936 udata_checkCommonData(&dataMemory, pErrorCode); in udata_setCommonData()
937 if (U_FAILURE(*pErrorCode)) {return;} in udata_setCommonData()
941 setCommonICUData(&dataMemory, TRUE, pErrorCode); in udata_setCommonData()
1026 UErrorCode *pErrorCode) in doLoadFromIndividualFiles() argument
1034 UDataPathIterator iter(dataPath, pkgName, path, tocEntryPathSuffix, FALSE, pErrorCode); in doLoadFromIndividualFiles()
1036 while ((pathBuffer = iter.next(pErrorCode)) != NULL) in doLoadFromIndividualFiles()
1041 if (uprv_mapFile(&dataMemory, pathBuffer, pErrorCode)) in doLoadFromIndividualFiles()
1043 …a = checkDataItem(dataMemory.pHeader, isAcceptable, context, type, name, subErrorCode, pErrorCode); in doLoadFromIndividualFiles()
1061 if (U_FAILURE(*pErrorCode)) { in doLoadFromIndividualFiles()
1084 UErrorCode *pErrorCode) in doLoadFromCommonData() argument
1113 … pEntryData = checkDataItem(pHeader, isAcceptable, context, type, name, subErrorCode, pErrorCode); in doLoadFromCommonData()
1117 if (U_FAILURE(*pErrorCode)) { in doLoadFromCommonData()
1128 *pErrorCode = *subErrorCode; in doLoadFromCommonData()
1193 UErrorCode *pErrorCode) in doOpenChoice() argument
1225 altSepPath.append(path, *pErrorCode); in doOpenChoice()
1246 pkgName.append(U_ICUDATA_NAME, *pErrorCode); in doOpenChoice()
1255 pkgName.append(pkg+1, *pErrorCode); in doOpenChoice()
1257 pkgName.append(path, *pErrorCode); in doOpenChoice()
1262 treeName.append(treeChar+1, *pErrorCode); /* following '-' */ in doOpenChoice()
1264 pkgName.append(U_ICUDATA_NAME, *pErrorCode); in doOpenChoice()
1266 pkgName.append(path, (int32_t)(treeChar-path), *pErrorCode); in doOpenChoice()
1277 pkgName.append(U_ICUDATA_NAME, *pErrorCode); in doOpenChoice()
1279 pkgName.append(path, *pErrorCode); in doOpenChoice()
1295 tocEntryName.append(pkgName, *pErrorCode); in doOpenChoice()
1296 tocEntryPath.append(pkgName, *pErrorCode); in doOpenChoice()
1300 tocEntryName.append(U_TREE_ENTRY_SEP_CHAR, *pErrorCode).append(treeName, *pErrorCode); in doOpenChoice()
1301 tocEntryPath.append(U_FILE_SEP_CHAR, *pErrorCode).append(treeName, *pErrorCode); in doOpenChoice()
1304 tocEntryName.append(U_TREE_ENTRY_SEP_CHAR, *pErrorCode).append(name, *pErrorCode); in doOpenChoice()
1305 tocEntryPath.append(U_FILE_SEP_CHAR, *pErrorCode).append(name, *pErrorCode); in doOpenChoice()
1307 tocEntryName.append(".", *pErrorCode).append(type, *pErrorCode); in doOpenChoice()
1308 tocEntryPath.append(".", *pErrorCode).append(type, *pErrorCode); in doOpenChoice()
1337 const char *tzFilesDir = u_getTimeZoneFilesDirectory(pErrorCode); in doOpenChoice()
1343 … /* path */ "", type, name, isAcceptable, context, &subErrorCode, pErrorCode); in doOpenChoice()
1344 if((retVal != NULL) || U_FAILURE(*pErrorCode)) { in doOpenChoice()
1358 path, type, name, isAcceptable, context, &subErrorCode, pErrorCode); in doOpenChoice()
1359 if((retVal != NULL) || U_FAILURE(*pErrorCode)) { in doOpenChoice()
1373 path, type, name, isAcceptable, context, &subErrorCode, pErrorCode); in doOpenChoice()
1374 if((retVal != NULL) || U_FAILURE(*pErrorCode)) { in doOpenChoice()
1388 path, type, name, isAcceptable, context, &subErrorCode, pErrorCode); in doOpenChoice()
1389 if((retVal != NULL) || U_FAILURE(*pErrorCode)) { in doOpenChoice()
1403 path, type, name, isAcceptable, context, &subErrorCode, pErrorCode); in doOpenChoice()
1404 if((retVal != NULL) || U_FAILURE(*pErrorCode)) { in doOpenChoice()
1410 if(U_SUCCESS(*pErrorCode)) { in doOpenChoice()
1413 *pErrorCode=U_FILE_ACCESS_ERROR; in doOpenChoice()
1416 *pErrorCode=subErrorCode; in doOpenChoice()
1428 UErrorCode *pErrorCode) { in udata_open() argument
1434 if(pErrorCode==NULL || U_FAILURE(*pErrorCode)) { in udata_open()
1437 *pErrorCode=U_ILLEGAL_ARGUMENT_ERROR; in udata_open()
1440 return doOpenChoice(path, type, name, NULL, NULL, pErrorCode); in udata_open()
1449 UErrorCode *pErrorCode) { in udata_openChoice() argument
1454 if(pErrorCode==NULL || U_FAILURE(*pErrorCode)) { in udata_openChoice()
1457 *pErrorCode=U_ILLEGAL_ARGUMENT_ERROR; in udata_openChoice()
1460 return doOpenChoice(path, type, name, isAcceptable, context, pErrorCode); in udata_openChoice()