-
-U_CAPI UBool U_EXPORT2 u_isDataOlder(UVersionInfo dataVersionFillin, UBool *isModifiedFillin, UErrorCode *status) {
- UBool result = TRUE;
- UVersionInfo dataVersion;
- UVersionInfo wiredVersion;
-
- if (U_FAILURE(*status)) {
- return result;
- }
-
- u_getDataVersion(dataVersion, status);
- if (U_SUCCESS(*status)) {
- u_versionFromString(wiredVersion, U_ICU_DATA_VERSION);
-
- if (uprv_memcmp(dataVersion, wiredVersion, sizeof(UVersionInfo)) >= 0) {
- result = FALSE;
- }
-
- if (dataVersionFillin != NULL) {
- uprv_memcpy(dataVersionFillin, dataVersion, sizeof(UVersionInfo));
- }
-
- if (hasICUSTDBundle()) {
- *isModifiedFillin = FALSE;
- } else {
- *isModifiedFillin = TRUE;
- }
- }
-
- return result;
-}