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:
parent
fb05ed1fa2
commit
39c6589edb
@ -1538,3 +1538,14 @@ is_cp_utf8(int cp_index)
|
|||||||
cp_index &= ~SYSTEM_CHARSET_FLAG;
|
cp_index &= ~SYSTEM_CHARSET_FLAG;
|
||||||
return is_cp_ptr_utf8(&codepages[cp_index]);
|
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;
|
||||||
|
}
|
||||||
|
@ -121,6 +121,8 @@ int get_cp_index(const unsigned char *);
|
|||||||
unsigned char *get_cp_name(int);
|
unsigned char *get_cp_name(int);
|
||||||
unsigned char *get_cp_config_name(int);
|
unsigned char *get_cp_config_name(int);
|
||||||
unsigned char *get_cp_mime_name(int);
|
unsigned char *get_cp_mime_name(int);
|
||||||
|
const uint16_t *get_cp_highhalf(const unsigned char *);
|
||||||
|
|
||||||
int is_cp_utf8(int);
|
int is_cp_utf8(int);
|
||||||
void free_conv_table(void);
|
void free_conv_table(void);
|
||||||
#ifdef CONFIG_UTF8
|
#ifdef CONFIG_UTF8
|
||||||
|
Loading…
Reference in New Issue
Block a user