• Home
  • Raw
  • Download

Lines Matching refs:pErrorCode

214 setCommonICUDataPointer(const void *pData, UBool /*warn*/, UErrorCode *pErrorCode) {  in setCommonICUDataPointer()  argument
218 udata_checkCommonData(&tData, pErrorCode); in setCommonICUDataPointer()
219 return setCommonICUData(&tData, false, pErrorCode); in setCommonICUDataPointer()
416 UErrorCode *pErrorCode);
417 const char *next(UErrorCode *pErrorCode);
450 UErrorCode *pErrorCode) in UDataPathIterator() argument
464 packageStub.append(U_FILE_SEP_CHAR, *pErrorCode).append(pkg, *pErrorCode); in UDataPathIterator()
478 itemPath.append(item, (int32_t)(basename-item), *pErrorCode); in UDataPathIterator()
515 const char *UDataPathIterator::next(UErrorCode *pErrorCode) in next() argument
517 if(U_FAILURE(*pErrorCode)) { in next()
566 pathBuffer.clear().append(currentPath, pathLen, *pErrorCode); in next()
603 pathBuffer.append(U_FILE_SEP_CHAR, *pErrorCode); in next()
607 pathBuffer.append(packageStub.data()+1, packageStub.length()-1, *pErrorCode); in next()
614 pathBuffer.ensureEndsWithFileSeparator(*pErrorCode); in next()
616 pathBuffer.append(suffix, *pErrorCode); in next()
672 UErrorCode *pErrorCode) in openCommonData() argument
678 if (U_FAILURE(*pErrorCode)) { in openCommonData()
722 setCommonICUDataPointer(&U_ICUDATA_ENTRY_POINT, false, pErrorCode); in openCommonData()
746 if (U_SUCCESS(*pErrorCode)) { in openCommonData()
747 *pErrorCode=U_FILE_ACCESS_ERROR; in openCommonData()
755 UDataMemory *dataToReturn = udata_findCachedData(inBasename, *pErrorCode); in openCommonData()
756 if (dataToReturn != nullptr || U_FAILURE(*pErrorCode)) { in openCommonData()
764 UDataPathIterator iter(u_getDataDirectory(), inBasename, path, ".dat", true, pErrorCode); in openCommonData()
766 while ((UDataMemory_isLoaded(&tData)==false) && (pathBuffer = iter.next(pErrorCode)) != nullptr) in openCommonData()
771 uprv_mapFile(&tData, pathBuffer, pErrorCode); in openCommonData()
776 if (U_FAILURE(*pErrorCode)) { in openCommonData()
787 uprv_mapFile(&tData, ourPathBuffer, pErrorCode); in openCommonData()
791 if (U_FAILURE(*pErrorCode)) { in openCommonData()
796 *pErrorCode=U_FILE_ACCESS_ERROR; in openCommonData()
801 udata_checkCommonData(&tData, pErrorCode); in openCommonData()
807 return udata_cacheDataItem(inBasename, &tData, pErrorCode); in openCommonData()
889 udata_setCommonData(const void *data, UErrorCode *pErrorCode) { in udata_setCommonData() argument
892 if(pErrorCode==nullptr || U_FAILURE(*pErrorCode)) { in udata_setCommonData()
897 *pErrorCode=U_ILLEGAL_ARGUMENT_ERROR; in udata_setCommonData()
904 udata_checkCommonData(&dataMemory, pErrorCode); in udata_setCommonData()
905 if (U_FAILURE(*pErrorCode)) {return;} in udata_setCommonData()
909 setCommonICUData(&dataMemory, true, pErrorCode); in udata_setCommonData()
994 UErrorCode *pErrorCode) in doLoadFromIndividualFiles() argument
1002 UDataPathIterator iter(dataPath, pkgName, path, tocEntryPathSuffix, false, pErrorCode); in doLoadFromIndividualFiles()
1004 while ((pathBuffer = iter.next(pErrorCode)) != nullptr) in doLoadFromIndividualFiles()
1009 if (uprv_mapFile(&dataMemory, pathBuffer, pErrorCode)) in doLoadFromIndividualFiles()
1011 …a = checkDataItem(dataMemory.pHeader, isAcceptable, context, type, name, subErrorCode, pErrorCode); in doLoadFromIndividualFiles()
1029 if (U_FAILURE(*pErrorCode)) { in doLoadFromIndividualFiles()
1052 UErrorCode *pErrorCode) in doLoadFromCommonData() argument
1081 … pEntryData = checkDataItem(pHeader, isAcceptable, context, type, name, subErrorCode, pErrorCode); in doLoadFromCommonData()
1085 if (U_FAILURE(*pErrorCode)) { in doLoadFromCommonData()
1096 *pErrorCode = *subErrorCode; in doLoadFromCommonData()
1161 UErrorCode *pErrorCode) in doOpenChoice() argument
1193 altSepPath.append(path, *pErrorCode); in doOpenChoice()
1214 pkgName.append(U_ICUDATA_NAME, *pErrorCode); in doOpenChoice()
1223 pkgName.append(pkg+1, *pErrorCode); in doOpenChoice()
1225 pkgName.append(path, *pErrorCode); in doOpenChoice()
1230 treeName.append(treeChar+1, *pErrorCode); /* following '-' */ in doOpenChoice()
1232 pkgName.append(U_ICUDATA_NAME, *pErrorCode); in doOpenChoice()
1234 pkgName.append(path, (int32_t)(treeChar-path), *pErrorCode); in doOpenChoice()
1245 pkgName.append(U_ICUDATA_NAME, *pErrorCode); in doOpenChoice()
1247 pkgName.append(path, *pErrorCode); in doOpenChoice()
1263 tocEntryName.append(pkgName, *pErrorCode); in doOpenChoice()
1264 tocEntryPath.append(pkgName, *pErrorCode); in doOpenChoice()
1268 tocEntryName.append(U_TREE_ENTRY_SEP_CHAR, *pErrorCode).append(treeName, *pErrorCode); in doOpenChoice()
1269 tocEntryPath.append(U_FILE_SEP_CHAR, *pErrorCode).append(treeName, *pErrorCode); in doOpenChoice()
1272 tocEntryName.append(U_TREE_ENTRY_SEP_CHAR, *pErrorCode).append(name, *pErrorCode); in doOpenChoice()
1273 tocEntryPath.append(U_FILE_SEP_CHAR, *pErrorCode).append(name, *pErrorCode); in doOpenChoice()
1275 tocEntryName.append(".", *pErrorCode).append(type, *pErrorCode); in doOpenChoice()
1276 tocEntryPath.append(".", *pErrorCode).append(type, *pErrorCode); in doOpenChoice()
1305 const char *tzFilesDir = u_getTimeZoneFilesDirectory(pErrorCode); in doOpenChoice()
1311 … /* path */ "", type, name, isAcceptable, context, &subErrorCode, pErrorCode); in doOpenChoice()
1312 if((retVal != nullptr) || U_FAILURE(*pErrorCode)) { in doOpenChoice()
1326 path, type, name, isAcceptable, context, &subErrorCode, pErrorCode); in doOpenChoice()
1327 if((retVal != nullptr) || U_FAILURE(*pErrorCode)) { in doOpenChoice()
1341 path, type, name, isAcceptable, context, &subErrorCode, pErrorCode); in doOpenChoice()
1342 if((retVal != nullptr) || U_FAILURE(*pErrorCode)) { in doOpenChoice()
1356 path, type, name, isAcceptable, context, &subErrorCode, pErrorCode); in doOpenChoice()
1357 if((retVal != nullptr) || U_FAILURE(*pErrorCode)) { in doOpenChoice()
1371 path, type, name, isAcceptable, context, &subErrorCode, pErrorCode); in doOpenChoice()
1372 if((retVal != nullptr) || U_FAILURE(*pErrorCode)) { in doOpenChoice()
1378 if(U_SUCCESS(*pErrorCode)) { in doOpenChoice()
1381 *pErrorCode=U_FILE_ACCESS_ERROR; in doOpenChoice()
1384 *pErrorCode=subErrorCode; in doOpenChoice()
1396 UErrorCode *pErrorCode) { in udata_open() argument
1402 if(pErrorCode==nullptr || U_FAILURE(*pErrorCode)) { in udata_open()
1405 *pErrorCode=U_ILLEGAL_ARGUMENT_ERROR; in udata_open()
1408 return doOpenChoice(path, type, name, nullptr, nullptr, pErrorCode); in udata_open()
1417 UErrorCode *pErrorCode) { in udata_openChoice() argument
1422 if(pErrorCode==nullptr || U_FAILURE(*pErrorCode)) { in udata_openChoice()
1425 *pErrorCode=U_ILLEGAL_ARGUMENT_ERROR; in udata_openChoice()
1428 return doOpenChoice(path, type, name, isAcceptable, context, pErrorCode); in udata_openChoice()