forked from len0rd/rockbox
Comment out an unused function and make another one static to save a few bytes
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12073 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
00a3fc7ec0
commit
faba818e1d
2 changed files with 3 additions and 2 deletions
|
@ -45,7 +45,7 @@ static const char cp_2_table[NUM_CODEPAGES] =
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Load codepage file into memory */
|
/* Load codepage file into memory */
|
||||||
int load_cp_table(int cp)
|
static int load_cp_table(int cp)
|
||||||
{
|
{
|
||||||
int i=0;
|
int i=0;
|
||||||
int table = cp_2_table[cp];
|
int table = cp_2_table[cp];
|
||||||
|
@ -213,6 +213,7 @@ unsigned char* utf16BEdecode(const unsigned char *utf16, unsigned char *utf8,
|
||||||
return utf8;
|
return utf8;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0 /* currently unused */
|
||||||
/* Recode any UTF-16 string to UTF-8 */
|
/* Recode any UTF-16 string to UTF-8 */
|
||||||
unsigned char* utf16decode(const unsigned char *utf16, unsigned char *utf8,
|
unsigned char* utf16decode(const unsigned char *utf16, unsigned char *utf8,
|
||||||
unsigned int count)
|
unsigned int count)
|
||||||
|
@ -231,6 +232,7 @@ unsigned char* utf16decode(const unsigned char *utf16, unsigned char *utf8,
|
||||||
return utf16BEdecode(utf16, utf8, count);
|
return utf16BEdecode(utf16, utf8, count);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Return the number of UTF-8 chars in a string */
|
/* Return the number of UTF-8 chars in a string */
|
||||||
unsigned long utf8length(const unsigned char *utf8)
|
unsigned long utf8length(const unsigned char *utf8)
|
||||||
|
|
|
@ -21,7 +21,6 @@ unsigned char* utf8encode(unsigned long ucs, unsigned char *utf8);
|
||||||
unsigned char* iso_decode(const unsigned char *latin1, unsigned char *utf8, int cp, int count);
|
unsigned char* iso_decode(const unsigned char *latin1, unsigned char *utf8, int cp, int count);
|
||||||
unsigned char* utf16LEdecode(const unsigned char *utf16, unsigned char *utf8, int count);
|
unsigned char* utf16LEdecode(const unsigned char *utf16, unsigned char *utf8, int count);
|
||||||
unsigned char* utf16BEdecode(const unsigned char *utf16, unsigned char *utf8, int count);
|
unsigned char* utf16BEdecode(const unsigned char *utf16, unsigned char *utf8, int count);
|
||||||
unsigned char* utf16decode(const unsigned char *utf16, unsigned char *utf8, unsigned int count);
|
|
||||||
unsigned long utf8length(const unsigned char *utf8);
|
unsigned long utf8length(const unsigned char *utf8);
|
||||||
const unsigned char* utf8decode(const unsigned char *utf8, unsigned short *ucs);
|
const unsigned char* utf8decode(const unsigned char *utf8, unsigned short *ucs);
|
||||||
void set_codepage(int cp);
|
void set_codepage(int cp);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue