Convert hard-coded unicode byte order mark values to constants.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31374 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Nick Peskett 2011-12-20 08:15:36 +00:00
parent c24a36dd9d
commit 1b781df59c
4 changed files with 25 additions and 16 deletions

View file

@ -66,6 +66,13 @@ bool list_stop_handler(void);
void car_adapter_mode_init(void) INIT_ATTR;
extern int show_logo(void);
/* Unicode byte order mark sequences and lengths */
#define BOM_UTF_8 "\xef\xbb\xbf"
#define BOM_UTF_8_SIZE 3
#define BOM_UTF_16_LE "\xff\xfe"
#define BOM_UTF_16_BE "\xfe\xff"
#define BOM_UTF_16_SIZE 2
int open_utf8(const char* pathname, int flags);
#ifdef BOOTFILE