mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
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:
parent
c24a36dd9d
commit
1b781df59c
4 changed files with 25 additions and 16 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue