diff options
Diffstat (limited to 'lib/libkiconv/xlat16_iconv.c')
-rw-r--r-- | lib/libkiconv/xlat16_iconv.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/lib/libkiconv/xlat16_iconv.c b/lib/libkiconv/xlat16_iconv.c index 2490107..c714961 100644 --- a/lib/libkiconv/xlat16_iconv.c +++ b/lib/libkiconv/xlat16_iconv.c @@ -113,6 +113,23 @@ kiconv_add_xlat16_cspair(const char *tocode, const char *fromcode, int flag) return (-1); } +int +kiconv_add_xlat16_cspairs(const char *foreigncode, const char *localcode) +{ + int error; + + error = kiconv_add_xlat16_cspair(foreigncode, localcode, + KICONV_FROM_LOWER | KICONV_FROM_UPPER); + if (error) + return (error); + error = kiconv_add_xlat16_cspair(localcode, foreigncode, + KICONV_LOWER | KICONV_UPPER); + if (error) + return (error); + + return (0); +} + static struct xlat16_table kiconv_xlat16_open(const char *tocode, const char *fromcode, int lcase) { @@ -371,4 +388,11 @@ kiconv_add_xlat16_cspair(const char *tocode, const char *fromcode, int flag) return (-1); } +int +kiconv_add_xlat16_cspairs(const char *tocode, const char *fromcode) +{ + errno = EINVAL; + return (-1); +} + #endif /* PIC */ |