summaryrefslogtreecommitdiff
path: root/firmware/include/rbunicode.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/include/rbunicode.h')
-rw-r--r--firmware/include/rbunicode.h18
1 files changed, 15 insertions, 3 deletions
diff --git a/firmware/include/rbunicode.h b/firmware/include/rbunicode.h
index 3c28b3031e..077029304d 100644
--- a/firmware/include/rbunicode.h
+++ b/firmware/include/rbunicode.h
@@ -51,7 +51,8 @@ enum codepages {
51 KSX_1001, /* Korean */ 51 KSX_1001, /* Korean */
52 BIG_5, /* Trad. Chinese */ 52 BIG_5, /* Trad. Chinese */
53 UTF_8, /* Unicode */ 53 UTF_8, /* Unicode */
54 NUM_CODEPAGES 54 NUM_CODEPAGES,
55 INIT_CODEPAGE = ISO_8859_1,
55}; 56};
56 57
57#else /* !HAVE_LCD_BITMAP, reduced support */ 58#else /* !HAVE_LCD_BITMAP, reduced support */
@@ -65,7 +66,8 @@ enum codepages {
65 WIN_1250, /* Central European */ 66 WIN_1250, /* Central European */
66 WIN_1252, /* Western European */ 67 WIN_1252, /* Western European */
67 UTF_8, /* Unicode */ 68 UTF_8, /* Unicode */
68 NUM_CODEPAGES 69 NUM_CODEPAGES,
70 INIT_CODEPAGE = ISO_8859_1,
69}; 71};
70 72
71#endif 73#endif
@@ -78,9 +80,19 @@ unsigned char* utf16BEdecode(const unsigned char *utf16, unsigned char *utf8, in
78unsigned long utf8length(const unsigned char *utf8); 80unsigned long utf8length(const unsigned char *utf8);
79const unsigned char* utf8decode(const unsigned char *utf8, unsigned short *ucs); 81const unsigned char* utf8decode(const unsigned char *utf8, unsigned short *ucs);
80void set_codepage(int cp); 82void set_codepage(int cp);
83int get_codepage(void);
81int utf8seek(const unsigned char* utf8, int offset); 84int utf8seek(const unsigned char* utf8, int offset);
82const char* get_codepage_name(int cp); 85const char* get_codepage_name(int cp);
83#if defined(APPLICATION) && defined(__linux__) 86#ifdef APPLICATION
87#if defined(__linux__)
84const char *get_current_codepage_name_linux(void); 88const char *get_current_codepage_name_linux(void);
85#endif 89#endif
90#endif /* APPLICATION */
91
92#if 0 /* not needed just now */
93void unicode_init(void);
94#else
95#define unicode_init() do {} while (0)
96#endif
97
86#endif /* _RBUNICODE_H_ */ 98#endif /* _RBUNICODE_H_ */