Add lit_char_is_octal_digit, lit_char_is_decimal_digit, lit_char_is_hex_digit helpers.
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
This commit is contained in:
@@ -199,9 +199,17 @@ extern bool lit_char_is_unicode_connector_punctuation (ecma_char_t);
|
||||
* hexadecimal digits range */
|
||||
#define LIT_CHAR_ASCII_LOWERCASE_LETTERS_HEX_END LIT_CHAR_LOWERCASE_F
|
||||
|
||||
#define LIT_CHAR_ASCII_OCTAL_DIGITS_BEGIN LIT_CHAR_0 /* octal digits range */
|
||||
#define LIT_CHAR_ASCII_OCTAL_DIGITS_END LIT_CHAR_7
|
||||
|
||||
#define LIT_CHAR_ASCII_DIGITS_BEGIN LIT_CHAR_0 /* decimal digits range */
|
||||
#define LIT_CHAR_ASCII_DIGITS_END LIT_CHAR_9
|
||||
|
||||
extern bool lit_char_is_octal_digit (ecma_char_t);
|
||||
extern bool lit_char_is_decimal_digit (ecma_char_t);
|
||||
extern bool lit_char_is_hex_digit (ecma_char_t);
|
||||
extern uint32_t lit_char_hex_to_int (ecma_char_t);
|
||||
|
||||
/**
|
||||
* Null character
|
||||
*/
|
||||
@@ -212,6 +220,4 @@ extern bool lit_char_is_unicode_connector_punctuation (ecma_char_t);
|
||||
*/
|
||||
extern bool lit_char_is_word_char (ecma_char_t);
|
||||
|
||||
extern uint32_t lit_char_hex_to_int (ecma_char_t);
|
||||
|
||||
#endif /* LIT_CHAR_HELPERS_H */
|
||||
|
||||
Reference in New Issue
Block a user