ICU-42 fix API for aliases
X-SVN-Rev: 658
This commit is contained in:
parent
a55f6c6ed9
commit
9ec6f2a492
@ -304,12 +304,12 @@ ucnv_getAlias(const char *alias, uint16_t index, UErrorCode *pErrorCode) {
|
||||
|
||||
U_CAPI void
|
||||
ucnv_getAliases(const char *alias, const char **aliases, UErrorCode *pErrorCode) {
|
||||
char *p;
|
||||
const char *p;
|
||||
uint16_t count=ucnv_io_getAliases(alias, &p, pErrorCode);
|
||||
while(count>0) {
|
||||
*aliases++=*p;
|
||||
*aliases++=p;
|
||||
/* skip a name, first the canonical converter name */
|
||||
*p+=uprv_strlen(p)+1;
|
||||
p+=uprv_strlen(p)+1;
|
||||
--count;
|
||||
}
|
||||
}
|
||||
|
@ -604,7 +604,9 @@ ucnv_getAlias(const char *alias, uint16_t index, UErrorCode *pErrorCode);
|
||||
/**
|
||||
* Fill-up the list of alias names for the given alias
|
||||
* @param alias alias name
|
||||
* @param aliases fill-in list
|
||||
* @param aliases fill-in list, aliases is a pointer to an array of
|
||||
* <code>ucnv_countAliases()</code> string-pointers
|
||||
* (<code>const char *</code>) that will be filled in
|
||||
* @param pErrorCode result of operation
|
||||
*/
|
||||
U_CAPI void
|
||||
|
Loading…
Reference in New Issue
Block a user