Optimize lit_char_is_unicode_letter.
JerryScript-DCO-1.0-Signed-off-by: Andrey Shitov a.shitov@samsung.com
This commit is contained in:
committed by
Evgeny Gavrin
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) \
|
||||
|
||||
Reference in New Issue
Block a user