5 #ifndef V8_INTL_SUPPORT 6 #error Internationalization is expected to be enabled. 7 #endif // V8_INTL_SUPPORT 9 #include "src/char-predicates.h" 11 #include "unicode/uchar.h" 12 #include "unicode/urename.h" 19 bool IsIdentifierStartSlow(uc32 c) {
22 return u_hasBinaryProperty(c, UCHAR_ID_START) ||
23 (c < 0x60 && (c ==
'$' || c ==
'\\' || c ==
'_'));
28 bool IsIdentifierPartSlow(uc32 c) {
31 return u_hasBinaryProperty(c, UCHAR_ID_CONTINUE) ||
32 (c < 0x60 && (c ==
'$' || c ==
'\\' || c ==
'_')) || c == 0x200C ||
38 bool IsWhiteSpaceSlow(uc32 c) {
39 return (u_charType(c) == U_SPACE_SEPARATOR) ||
40 (c < 0x0D && (c == 0x09 || c == 0x0B || c == 0x0C)) || c == 0xFEFF;