1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

Added the get_cp_highhalf function, which will be used by xhtml.

This commit is contained in:
Witold Filipczyk 2009-01-26 21:11:14 +01:00 committed by Witold Filipczyk
parent fb05ed1fa2
commit 39c6589edb
2 changed files with 13 additions and 0 deletions

View File

@ -1538,3 +1538,14 @@ is_cp_utf8(int cp_index)
cp_index &= ~SYSTEM_CHARSET_FLAG;
return is_cp_ptr_utf8(&codepages[cp_index]);
}
/* This function will be used by the xhtml parser. */
const uint16_t *
get_cp_highhalf(const unsigned char *name)
{
int cp = get_cp_index(name);
if (cp < 0) return NULL;
cp &= ~SYSTEM_CHARSET_FLAG;
return codepages[cp].highhalf;
}

View File

@ -121,6 +121,8 @@ int get_cp_index(const unsigned char *);
unsigned char *get_cp_name(int);
unsigned char *get_cp_config_name(int);
unsigned char *get_cp_mime_name(int);
const uint16_t *get_cp_highhalf(const unsigned char *);
int is_cp_utf8(int);
void free_conv_table(void);
#ifdef CONFIG_UTF8