Add ecma_char_is_word_char helper (part of IsWordChar abstract operation, ECMA-262 v5, 15.10.2.6); move hex_to_int from lexer to jerry-core/ecma/base/ecma-helpers-char.cpp, renaming it to ecma_char_hex_to_int.
JerryScript-DCO-1.0-Signed-off-by: Szilard Ledan szledan.u-szeged@partner.samsung.com JerryScript-DCO-1.0-Signed-off-by: László Langó llango.u-szeged@partner.samsung.com
This commit is contained in:
@@ -334,6 +334,8 @@ extern ecma_length_t ecma_number_to_zt_string (ecma_number_t num, ecma_char_t *b
|
||||
extern bool ecma_char_is_new_line (ecma_char_t c);
|
||||
extern bool ecma_char_is_carriage_return (ecma_char_t c);
|
||||
extern bool ecma_char_is_line_terminator (ecma_char_t c);
|
||||
extern bool ecma_char_is_word_char (ecma_char_t c);
|
||||
extern uint32_t ecma_char_hex_to_int (ecma_char_t hex);
|
||||
|
||||
#endif /* !JERRY_ECMA_HELPERS_H */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user