2009-08-13 17:21:33 +00:00
|
|
|
/*
|
|
|
|
******************************************************************************
|
|
|
|
*
|
2010-01-21 20:51:49 +00:00
|
|
|
* Copyright (C) 2009-2010, International Business Machines
|
2009-08-13 17:21:33 +00:00
|
|
|
* Corporation and others. All Rights Reserved.
|
|
|
|
*
|
|
|
|
******************************************************************************
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __ICU_DATA_VER_H__
|
|
|
|
#define __ICU_DATA_VER_H__
|
|
|
|
|
|
|
|
#include "unicode/utypes.h"
|
|
|
|
|
2010-01-21 20:51:49 +00:00
|
|
|
/**
|
|
|
|
* @internal ICU 4.4
|
|
|
|
*/
|
2009-08-13 17:21:33 +00:00
|
|
|
#define U_ICU_VERSION_BUNDLE "icuver"
|
2010-01-21 20:51:49 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @internal ICU 4.4
|
|
|
|
*/
|
2009-08-13 17:21:33 +00:00
|
|
|
#define U_ICU_STD_BUNDLE "icustd"
|
|
|
|
|
2010-01-21 20:51:49 +00:00
|
|
|
/**
|
|
|
|
* @internal ICU 4.4
|
|
|
|
*/
|
2009-08-13 17:21:33 +00:00
|
|
|
#define U_ICU_DATA_KEY "DataVersion"
|
|
|
|
|
|
|
|
/**
|
|
|
|
* This function loads up icuver and compares the data version to the wired-in U_ICU_DATA_VERSION.
|
|
|
|
* If icuver shows something less than U_ICU_DATA_VERSION it returns TRUE, else FALSE. The version
|
|
|
|
* found will be returned in the first fillin parameter (if non-null), and *isModified will be set
|
|
|
|
* to TRUE if "icustd" is NOT found. Thus, if the data has been repackaged or modified, "icustd"
|
|
|
|
* (standard ICU) will be missing, and the function will alert the caller that the data is not standard.
|
|
|
|
*
|
|
|
|
* @param dataVersionFillin icuver data version information to be filled in if not-null
|
|
|
|
* @param isModifiedFillin if the data is not standard if not-null
|
|
|
|
* @param status stores the error code from the calls to resource bundle
|
|
|
|
*
|
|
|
|
* @return TRUE if U_ICU_DATA_VERSION is newer than icuver, else FALSE
|
|
|
|
*
|
2010-01-21 20:51:49 +00:00
|
|
|
* @internal ICU 4.4
|
2009-08-13 17:21:33 +00:00
|
|
|
*/
|
2010-01-21 20:51:49 +00:00
|
|
|
U_INTERNAL UBool U_EXPORT2 u_isDataOlder(UVersionInfo dataVersionFillin, UBool *isModifiedFillin, UErrorCode *status);
|
2009-08-13 17:21:33 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Retrieves the data version from icuver and stores it in dataVersionFillin.
|
|
|
|
*
|
|
|
|
* @param dataVersionFillin icuver data version information to be filled in if not-null
|
|
|
|
* @param status stores the error code from the calls to resource bundle
|
|
|
|
*
|
2010-01-21 20:51:49 +00:00
|
|
|
* @internal ICU 4.4
|
2009-08-13 17:21:33 +00:00
|
|
|
*/
|
2010-01-21 20:51:49 +00:00
|
|
|
U_INTERNAL void U_EXPORT2 u_getDataVersion(UVersionInfo dataVersionFillin, UErrorCode *status);
|
2009-08-13 17:21:33 +00:00
|
|
|
|
|
|
|
#endif
|