Add core unicode functionality.
Add utf-8 processing routines. Change ecma_char_t from char/uint16_t to uint16_t. Apply all utf-8 processing routines. Change char to jerry_api_char in API functions' declarations. JerryScript-DCO-1.0-Signed-off-by: Andrey Shitov a.shitov@samsung.com
This commit is contained in:
+2
-1
@@ -17,6 +17,7 @@
|
||||
#include <string.h>
|
||||
|
||||
#include "jerry.h"
|
||||
#include "jerry-core/jerry-api.h"
|
||||
|
||||
/**
|
||||
* The module interface routine
|
||||
@@ -195,7 +196,7 @@ int jerry_main (int argc, char *argv[])
|
||||
{
|
||||
printf ("Source:\n------------\n%s\n------------\n", source_p);
|
||||
|
||||
jerry_completion_code_t ret_code = jerry_run_simple (source_p, source_size, flags);
|
||||
jerry_completion_code_t ret_code = jerry_run_simple ((jerry_api_char_t *) source_p, source_size, flags);
|
||||
|
||||
if (ret_code == JERRY_COMPLETION_CODE_OK)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user