1 /* -*- c-basic-offset:2; tab-width:2; indent-tabs-mode:nil -*- */
2
3 #include "ef_tg_map.h"
4
5 #include <pobl/bl_debug.h>
6
7 #include "ef_ucs4_map.h"
8 #include "ef_ucs4_iso8859.h"
9 #include "ef_ucs4_koi8.h"
10
11 static ef_map_ucs4_to_func_t map_ucs4_to_funcs[] = {
12 ef_map_ucs4_to_koi8_t, ef_map_ucs4_to_iso8859_5_r,
13 };
14
15 /* --- global functions --- */
16
ef_map_ucs4_to_tg(ef_char_t * tg,ef_char_t * ucs4)17 int ef_map_ucs4_to_tg(ef_char_t *tg, ef_char_t *ucs4) {
18 return ef_map_ucs4_to_with_funcs(tg, ucs4, map_ucs4_to_funcs,
19 sizeof(map_ucs4_to_funcs) / sizeof(map_ucs4_to_funcs[0]));
20 }
21
ef_map_koi8_t_to_iso8859_5_r(ef_char_t * iso8859,ef_char_t * tg)22 int ef_map_koi8_t_to_iso8859_5_r(ef_char_t *iso8859, ef_char_t *tg) {
23 return ef_map_via_ucs(iso8859, tg, ISO8859_5_R);
24 }
25