Lines Matching refs:base
8 #include "src/base/bounds.h"
18 inline constexpr int AsciiAlphaToLower(base::uc32 c) { return c | 0x20; }
20 inline constexpr bool IsCarriageReturn(base::uc32 c) { return c == 0x000D; }
22 inline constexpr bool IsLineFeed(base::uc32 c) { return c == 0x000A; }
24 inline constexpr bool IsAsciiIdentifier(base::uc32 c) {
28 inline constexpr bool IsAlphaNumeric(base::uc32 c) {
29 return base::IsInRange(AsciiAlphaToLower(c), 'a', 'z') || IsDecimalDigit(c);
32 inline constexpr bool IsDecimalDigit(base::uc32 c) {
34 return base::IsInRange(c, '0', '9');
37 inline constexpr bool IsHexDigit(base::uc32 c) {
39 return IsDecimalDigit(c) || base::IsInRange(AsciiAlphaToLower(c), 'a', 'f');
42 inline constexpr bool IsOctalDigit(base::uc32 c) {
44 return base::IsInRange(c, '0', '7');
47 inline constexpr bool IsNonOctalDecimalDigit(base::uc32 c) {
48 return base::IsInRange(c, '8', '9');
51 inline constexpr bool IsBinaryDigit(base::uc32 c) {
56 inline constexpr bool IsAsciiLower(base::uc32 c) {
57 return base::IsInRange(c, 'a', 'z');
60 inline constexpr bool IsAsciiUpper(base::uc32 c) {
61 return base::IsInRange(c, 'A', 'Z');
64 inline constexpr base::uc32 ToAsciiUpper(base::uc32 c) {
68 inline constexpr base::uc32 ToAsciiLower(base::uc32 c) {
72 inline constexpr bool IsRegExpWord(base::uc32 c) {
87 constexpr bool IsOneByteIDStart(base::uc32 c) {
96 constexpr bool IsOneByteIDContinue(base::uc32 c) {
104 constexpr bool IsOneByteWhitespace(base::uc32 c) {
108 constexpr uint8_t BuildOneByteCharFlags(base::uc32 c) {
133 bool IsIdentifierStart(base::uc32 c) {
134 if (!base::IsInRange(c, 0, 255)) return IsIdentifierStartSlow(c);
140 bool IsIdentifierPart(base::uc32 c) {
141 if (!base::IsInRange(c, 0, 255)) return IsIdentifierPartSlow(c);
147 bool IsWhiteSpace(base::uc32 c) {
148 if (!base::IsInRange(c, 0, 255)) return IsWhiteSpaceSlow(c);
154 bool IsWhiteSpaceOrLineTerminator(base::uc32 c) {
155 if (!base::IsInRange(c, 0, 255)) return IsWhiteSpaceOrLineTerminatorSlow(c);
162 bool IsLineTerminatorSequence(base::uc32 c, base::uc32 next) {
166 return base::IsInRange(static_cast<unsigned int>(c), 0x2028u, 0x2029u);