Change internal encoding of strings to CESU-8
JerryScript-DCO-1.0-Signed-off-by: Zsolt Borbély zsborbely.u-szeged@partner.samsung.com JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai dbatyai.u-szeged@partner.samsung.com
This commit is contained in:
@@ -93,6 +93,16 @@ typedef ecma_char_t *ecma_char_ptr_t;
|
||||
*/
|
||||
#define LIT_UTF8_MAX_BYTES_IN_CODE_POINT (4)
|
||||
|
||||
/**
|
||||
* Max bytes needed to represent a code unit (utf-16 char) via cesu-8 encoding
|
||||
*/
|
||||
#define LIT_CESU8_MAX_BYTES_IN_CODE_UNIT (3)
|
||||
|
||||
/**
|
||||
* Max bytes needed to represent a code point (Unicode character) via cesu-8 encoding
|
||||
*/
|
||||
#define LIT_CESU8_MAX_BYTES_IN_CODE_POINT (6)
|
||||
|
||||
/**
|
||||
* A byte of utf-8 string
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user