5#ifndef V8_STRINGS_CHAR_PREDICATES_INL_H_
6#define V8_STRINGS_CHAR_PREDICATES_INL_H_
55 return c ==
'0' || c ==
'1';
92 return c == 0x0024 || (c >= 0x0041 && c <= 0x005A) || c == 0x005F ||
93 (c >= 0x0061 && c <= 0x007A) || c == 0x00AA || c == 0x00B5 ||
94 c == 0x00BA || (c >= 0x00C0 && c <= 0x00D6) ||
95 (c >= 0x00D8 && c <= 0x00F6) || (c >= 0x00F8 && c <= 0x00FF);
101 return c == 0x0024 || (c >= 0x0030 && c <= 0x0039) || c == 0x005F ||
102 (c >= 0x0041 && c <= 0x005A) || (c >= 0x0061 && c <= 0x007A) ||
103 c == 0x00AA || c == 0x00B5 || c == 0x00B7 || c == 0x00BA ||
104 (c >= 0x00C0 && c <= 0x00D6) || (c >= 0x00D8 && c <= 0x00F6) ||
105 (c >= 0x00F8 && c <= 0x00FF);
109 return c ==
'\t' || c ==
'\v' || c ==
'\f' || c ==
' ' || c == u
'\xa0';
119 if (c ==
'\r' || c ==
'\n') {
123 if (c ==
static_cast<uint8_t
>(0x2028) || c ==
static_cast<uint8_t
>(0x2029)) {
129#define BUILD_CHAR_FLAGS(N) BuildOneByteCharFlags(N),
131#undef BUILD_CHAR_FLAGS
132#define BUILD_CHAR_FLAGS(N) BuildOneByteCharFlags(N + 128),
134#undef BUILD_CHAR_FLAGS
168 if (c ==
'\n')
return true;
169 if (c ==
'\r')
return next !=
'\n';
170 return base::IsInRange(
static_cast<unsigned int>(c), 0x2028u, 0x2029u);
#define BUILD_CHAR_FLAGS(N)
ZoneVector< RpoNumber > & result
constexpr bool IsInRange(T value, U lower_limit, U higher_limit)
bool IsIdentifierStart(base::uc32 c)
constexpr bool IsHexDigit(base::uc32 c)
constexpr bool IsOneByteIDContinue(base::uc32 c)
bool IsLineTerminatorSequence(base::uc32 c, base::uc32 next)
constexpr bool IsAsciiIdentifier(base::uc32 c)
constexpr bool IsCarriageReturn(base::uc32 c)
constexpr bool IsAsciiLower(base::uc32 c)
constexpr bool IsAscii(base::uc32 c)
bool IsWhiteSpaceOrLineTerminator(base::uc32 c)
constexpr bool IsOctalDigit(base::uc32 c)
constexpr bool IsNonOctalDecimalDigit(base::uc32 c)
bool IsIdentifierPartSlow(base::uc32 c)
bool IsWhiteSpace(base::uc32 c)
constexpr bool IsOneByteIDStart(base::uc32 c)
constexpr uint8_t BuildOneByteCharFlags(base::uc32 c)
constexpr bool IsRegExpWord(base::uc32 c)
constexpr bool IsDecimalDigit(base::uc32 c)
bool IsWhiteSpaceOrLineTerminatorSlow(base::uc32 c)
constexpr base::uc32 ToAsciiUpper(base::uc32 c)
constexpr bool IsAsciiUpper(base::uc32 c)
constexpr bool IsBinaryDigit(base::uc32 c)
constexpr bool IsLineFeed(base::uc32 c)
const constexpr uint8_t kOneByteCharFlags[256]
@ kIsWhiteSpaceOrLineTerminator
constexpr int AsciiAlphaToLower(base::uc32 c)
constexpr bool IsAlphaNumeric(base::uc32 c)
bool IsIdentifierStartSlow(base::uc32 c)
bool IsWhiteSpaceSlow(base::uc32 c)
bool IsIdentifierPart(base::uc32 c)
constexpr bool IsOneByteWhitespace(base::uc32 c)
constexpr base::uc32 ToAsciiLower(base::uc32 c)
#define DCHECK_EQ(v1, v2)
#define INT_0_TO_127_LIST(V)