ICU-322 new ucnv_getStandardName() API.
X-SVN-Rev: 1722
This commit is contained in:
parent
962dc91faa
commit
ff2268461c
@ -212,6 +212,15 @@ ucnv_getAliases(const char *alias, const char **aliases, UErrorCode *pErrorCode)
|
||||
}
|
||||
}
|
||||
|
||||
U_CAPI const char *ucnv_getStandardName(const char *name, const char *standard, UErrorCode *pErrorCode) {
|
||||
if (!pErrorCode || U_FAILURE(*pErrorCode)) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
*pErrorCode = U_UNSUPPORTED_ERROR;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void ucnv_getSubstChars (const UConverter * converter,
|
||||
char *mySubChar,
|
||||
int8_t * len,
|
||||
|
@ -753,6 +753,19 @@ ucnv_getAlias(const char *alias, uint16_t n, UErrorCode *pErrorCode);
|
||||
U_CAPI void
|
||||
ucnv_getAliases(const char *alias, const char **aliases, UErrorCode *pErrorCode);
|
||||
|
||||
/**
|
||||
* returns a standard name for a given converter name.
|
||||
*
|
||||
* @param name original converter name
|
||||
* @param standard name of the standard governing the names; MIME and IANA
|
||||
* are such standards
|
||||
* @return returns the standard converter name;
|
||||
* if a standard converter name cannot be determined,
|
||||
* then <code>NULL</code> is returned
|
||||
*
|
||||
*/
|
||||
U_CAPI const char *ucnv_getStandardName(const char *name, const char *standard, UErrorCode *pErrorCode);
|
||||
|
||||
/**
|
||||
* returns the current default converter name.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user