mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-13 17:01:16 +00:00
ICU-1896 Make ucnv_io_fillAvailableConverters use the new syntax
X-SVN-Rev: 8888
This commit is contained in:
parent
fecfb9d1f9
commit
c109642873
1 changed files with 3 additions and 6 deletions
|
@ -469,12 +469,9 @@ ucnv_io_getAvailableConverter(uint16_t n, UErrorCode *pErrorCode) {
|
|||
U_CFUNC void
|
||||
ucnv_io_fillAvailableConverters(const char **aliases, UErrorCode *pErrorCode) {
|
||||
if(haveAliasData(pErrorCode)) {
|
||||
const uint16_t *p=converterTable;
|
||||
uint16_t count=*p++;
|
||||
while(count>0) {
|
||||
*aliases++=(const char *)aliasTable+*p;
|
||||
p+=2;
|
||||
--count;
|
||||
uint16_t count = 0;
|
||||
while (count < availableConverterCount) {
|
||||
*aliases++=availableConverters[count++];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue