mirror of
https://github.com/jerryscript-project/jerryscript.git
synced 2025-12-15 16:29:21 +00:00
Optimize lit_char_is_unicode_letter.
JerryScript-DCO-1.0-Signed-off-by: Andrey Shitov a.shitov@samsung.com
This commit is contained in:
parent
502f4c4623
commit
656908ecaf
@ -15,6 +15,8 @@
|
||||
|
||||
#include "lit-char-helpers.h"
|
||||
|
||||
#include "lit-strings.h"
|
||||
|
||||
/**
|
||||
* Check if specified character is one of the Format-Control characters
|
||||
*
|
||||
@ -112,6 +114,10 @@ lit_char_is_unicode_letter (ecma_char_t c) /**< code unit */
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else if (c <= LIT_UTF8_1_BYTE_CODE_POINT_MAX)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/* Lu */
|
||||
#define LIT_UNICODE_RANGE_LU(range_begin, range_end) \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user