textencoding: add CP-1250 encoding
This commit is contained in:
parent
024f78deeb
commit
5b4fb267ad
@ -303,6 +303,17 @@ static const char* kUTF16Aliases[] = {
|
|||||||
static const BCharacterSet kUTF16(27, 1000, B_TRANSLATE("Unicode"), "UTF-16", "UTF-16",
|
static const BCharacterSet kUTF16(27, 1000, B_TRANSLATE("Unicode"), "UTF-16", "UTF-16",
|
||||||
kUTF16Aliases);
|
kUTF16Aliases);
|
||||||
|
|
||||||
|
static const char* kWindows1250Aliases[] = {
|
||||||
|
// IANA aliases
|
||||||
|
"cswindows1250",
|
||||||
|
// java aliases
|
||||||
|
"cp1250",
|
||||||
|
"ms-ee",
|
||||||
|
NULL
|
||||||
|
};
|
||||||
|
static const BCharacterSet kWindows1250(28, 2250, B_TRANSLATE("Windows-1250 "
|
||||||
|
"(CP-1250)"), "windows-1250", "Windows-1250", kWindows1250Aliases);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The following initializes the global character set array.
|
* The following initializes the global character set array.
|
||||||
* It is organized by id for efficient retrieval using predefined constants in UTF8.h and Font.h.
|
* It is organized by id for efficient retrieval using predefined constants in UTF8.h and Font.h.
|
||||||
@ -323,6 +334,7 @@ const BCharacterSet * character_sets_by_id[] = {
|
|||||||
// R5 convert_to/from_utf8 encodings end here
|
// R5 convert_to/from_utf8 encodings end here
|
||||||
&big5,&gb18030,
|
&big5,&gb18030,
|
||||||
&kUTF16,
|
&kUTF16,
|
||||||
|
&kWindows1250,
|
||||||
};
|
};
|
||||||
const uint32 character_sets_by_id_count = sizeof(character_sets_by_id)/sizeof(const BCharacterSet*);
|
const uint32 character_sets_by_id_count = sizeof(character_sets_by_id)/sizeof(const BCharacterSet*);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user