ICU-4236 remove umsg_getLocaleByType. Remove failing cloctst test depending on this API
X-SVN-Rev: 17140
This commit is contained in:
parent
d0f7df88c9
commit
c79038f47e
@ -601,18 +601,5 @@ umsg_vparse(const UMessageFormat *fmt,
|
||||
delete [] args;
|
||||
}
|
||||
|
||||
U_CAPI const char* U_EXPORT2
|
||||
umsg_getLocaleByType(const UMessageFormat *fmt,
|
||||
ULocDataLocaleType type,
|
||||
UErrorCode* status)
|
||||
{
|
||||
if (fmt == NULL) {
|
||||
if (U_SUCCESS(*status)) {
|
||||
*status = U_ILLEGAL_ARGUMENT_ERROR;
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
return ((Format*)fmt)->getLocaleID(type, *status);
|
||||
}
|
||||
|
||||
#endif /* #if !UCONFIG_NO_FORMATTING */
|
||||
|
@ -596,20 +596,6 @@ umsg_vparse(const UMessageFormat *fmt,
|
||||
UErrorCode *status);
|
||||
|
||||
|
||||
/**
|
||||
* Get the locale for this message format object.
|
||||
* You can choose between valid and actual locale.
|
||||
* @param fmt The formatter to get the locale from
|
||||
* @param type type of the locale we're looking for (valid or actual)
|
||||
* @param status error code for the operation
|
||||
* @return the locale name
|
||||
* @draft ICU 2.8 likely to change in ICU 3.0, based on feedback
|
||||
*/
|
||||
U_STABLE const char* U_EXPORT2
|
||||
umsg_getLocaleByType(const UMessageFormat *fmt,
|
||||
ULocDataLocaleType type,
|
||||
UErrorCode* status);
|
||||
|
||||
#endif /* #if !UCONFIG_NO_FORMATTING */
|
||||
|
||||
#endif
|
||||
|
@ -2175,6 +2175,8 @@ static void TestGetLocale(void) {
|
||||
#endif
|
||||
|
||||
/* === umsg === */
|
||||
#if 0
|
||||
/* commented out by weiv 01/12/2005. umsg_getLocaleByType is to be removed */
|
||||
#if !UCONFIG_NO_FORMATTING
|
||||
{
|
||||
UMessageFormat *obj;
|
||||
@ -2212,6 +2214,7 @@ static void TestGetLocale(void) {
|
||||
}
|
||||
umsg_close(obj);
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/* === ubrk === */
|
||||
|
Loading…
Reference in New Issue
Block a user