summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--firmware/common/unicode.c4
-rw-r--r--firmware/include/rbunicode.h1
2 files changed, 3 insertions, 2 deletions
diff --git a/firmware/common/unicode.c b/firmware/common/unicode.c
index 1dc7eedc3e..34c11369f2 100644
--- a/firmware/common/unicode.c
+++ b/firmware/common/unicode.c
@@ -45,7 +45,7 @@ static const char cp_2_table[NUM_CODEPAGES] =
45}; 45};
46 46
47/* Load codepage file into memory */ 47/* Load codepage file into memory */
48int load_cp_table(int cp) 48static int load_cp_table(int cp)
49{ 49{
50 int i=0; 50 int i=0;
51 int table = cp_2_table[cp]; 51 int table = cp_2_table[cp];
@@ -213,6 +213,7 @@ unsigned char* utf16BEdecode(const unsigned char *utf16, unsigned char *utf8,
213 return utf8; 213 return utf8;
214} 214}
215 215
216#if 0 /* currently unused */
216/* Recode any UTF-16 string to UTF-8 */ 217/* Recode any UTF-16 string to UTF-8 */
217unsigned char* utf16decode(const unsigned char *utf16, unsigned char *utf8, 218unsigned char* utf16decode(const unsigned char *utf16, unsigned char *utf8,
218 unsigned int count) 219 unsigned int count)
@@ -231,6 +232,7 @@ unsigned char* utf16decode(const unsigned char *utf16, unsigned char *utf8,
231 return utf16BEdecode(utf16, utf8, count); 232 return utf16BEdecode(utf16, utf8, count);
232 } 233 }
233} 234}
235#endif
234 236
235/* Return the number of UTF-8 chars in a string */ 237/* Return the number of UTF-8 chars in a string */
236unsigned long utf8length(const unsigned char *utf8) 238unsigned long utf8length(const unsigned char *utf8)
diff --git a/firmware/include/rbunicode.h b/firmware/include/rbunicode.h
index 66726d10b5..a9ab49f280 100644
--- a/firmware/include/rbunicode.h
+++ b/firmware/include/rbunicode.h
@@ -21,7 +21,6 @@ unsigned char* utf8encode(unsigned long ucs, unsigned char *utf8);
21unsigned char* iso_decode(const unsigned char *latin1, unsigned char *utf8, int cp, int count); 21unsigned char* iso_decode(const unsigned char *latin1, unsigned char *utf8, int cp, int count);
22unsigned char* utf16LEdecode(const unsigned char *utf16, unsigned char *utf8, int count); 22unsigned char* utf16LEdecode(const unsigned char *utf16, unsigned char *utf8, int count);
23unsigned char* utf16BEdecode(const unsigned char *utf16, unsigned char *utf8, int count); 23unsigned char* utf16BEdecode(const unsigned char *utf16, unsigned char *utf8, int count);
24unsigned char* utf16decode(const unsigned char *utf16, unsigned char *utf8, unsigned int count);
25unsigned long utf8length(const unsigned char *utf8); 24unsigned long utf8length(const unsigned char *utf8);
26const unsigned char* utf8decode(const unsigned char *utf8, unsigned short *ucs); 25const unsigned char* utf8decode(const unsigned char *utf8, unsigned short *ucs);
27void set_codepage(int cp); 26void set_codepage(int cp);