i18n_measure_unit_h hMeasureUnit = NULL;
const char *pRefType = "acceleration";
- const char *pRefSubtype = "meter-per-square-second";
+ const char *pRefSubtype_latest = "meter-per-square-second";
+ const char *pRefSubtype_old = "meter-per-second-squared";
char *pSubtype = NULL;
char *type = NULL;
nRet = i18n_measure_unit_get_subtype(hMeasureUnit, &pSubtype);
PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit));
- if(strcmp(pSubtype, pRefSubtype) !=0 )
+ if(strcmp(pSubtype, pRefSubtype_latest) != 0
+ && strcmp(pSubtype, pRefSubtype_old) !=0)
{
FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE);
i18n_measure_unit_destroy(hMeasureUnit);
i18n_measure_unit_h hMeasureUnit = NULL;
const char *pRefType = "pressure";
- const char *pRefSubtype = "inch-ofhg";
+ const char *pRefSubtype_latest = "inch-ofhg";
+ const char *pRefSubtype_old = "inch-hg";
char *pSubtype = NULL;
char *type = NULL;
nRet = i18n_measure_unit_get_subtype(hMeasureUnit, &pSubtype);
PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit));
- if(strcmp(pSubtype, pRefSubtype) != 0 )
+ if(strcmp(pSubtype, pRefSubtype_latest) != 0
+ && strcmp(pSubtype, pRefSubtype_old) !=0)
{
FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE);
i18n_measure_unit_destroy(hMeasureUnit);
i18n_measure_unit_h hMeasureUnit = NULL;
const char *pRefType = "pressure";
- const char *pRefSubtype = "millimeter-ofhg";
+ const char *pRefSubtype_latest = "millimeter-ofhg";
+ const char *pRefSubtype_old = "millimeter-of-mercury";
char *pSubtype = NULL;
char *type = NULL;
nRet = i18n_measure_unit_get_subtype(hMeasureUnit, &pSubtype);
PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit));
- if(strcmp(pSubtype, pRefSubtype) != 0 )
+ if(strcmp(pSubtype, pRefSubtype_latest) != 0
+ && strcmp(pSubtype, pRefSubtype_old) !=0)
{
FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE);
i18n_measure_unit_destroy(hMeasureUnit);
i18n_measure_unit_h hMeasureUnit = NULL;
const char *pRefType = "pressure";
- const char *pRefSubtype = "pound-force-per-square-inch";
+ const char *pRefSubtype_latest = "pound-force-per-square-inch";
+ const char *pRefSubtype_old = "pound-per-square-inch";
char *pSubtype = NULL;
char *type = NULL;
nRet = i18n_measure_unit_get_subtype(hMeasureUnit, &pSubtype);
PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_measure_unit_get_subtype", BaseUtilsGetError(nRet),i18n_measure_unit_destroy(hMeasureUnit));
- if(strcmp(pSubtype, pRefSubtype) != 0 )
+ if(strcmp(pSubtype, pRefSubtype_latest) != 0
+ && strcmp(pSubtype, pRefSubtype_old) !=0)
{
FPRINTF("\\n[Line : %d][%s] pSubtype is not set as pRefSubtype\\n", __LINE__, API_NAMESPACE);
i18n_measure_unit_destroy(hMeasureUnit);