Lines Matching defs:const

26 const int kMaxMappingSize = 4;
50 uchar code_point() const { return CodePointField::decode(bit_field_); }
51 bool value() const { return ValueField::decode(bit_field_); }
59 static const int kSize = size;
60 static const int kMask = kSize - 1;
83 static const int kNoChar = (1 << 21) - 1;
85 static const int kSize = size;
86 static const int kMask = kSize - 1;
94 static const uchar kMaxCodePoint;
101 static const int kNoPreviousCharacter = -1;
115 static const uchar kMaxNonSurrogateCharCode = 0xffff;
121 static const int kMaxExtraUtf8BytesForOneUtf16CodeUnit = 3;
124 static const int kUtf8BytesToCodeASurrogate = 3;
131 static inline bool HasUnpairedSurrogate(const uint16_t* code_units,
137 static const uint16_t kMaxChar = 0xff;
162 static uchar CalculateValue(const byte* str, size_t length, size_t* cursor);
166 static const uchar kBadChar = 0xFFFD;
167 static const uchar kBufferEmpty = 0x0;
168 static const uchar kIncomplete = 0xFFFFFFFC; // any non-valid code point.
169 static const unsigned kMaxEncodedSize = 4;
170 static const unsigned kMaxOneByteChar = 0x7f;
171 static const unsigned kMaxTwoByteChar = 0x7ff;
172 static const unsigned kMaxThreeByteChar = 0xffff;
173 static const unsigned kMaxFourByteChar = 0x1fffff;
177 static const unsigned kBytesSavedByCombiningSurrogates = 2;
178 static const unsigned kSizeOfUnmatchedSurrogate = 3;
181 static const unsigned kMax16BitCodeUnitSize = 3;
182 static inline uchar ValueOf(const byte* str, size_t length, size_t* cursor);
185 static inline uchar ValueOfIncremental(const byte** cursor, State* state,
200 static bool ValidateEncoding(const byte* str, size_t length);
234 static const int kMaxWidth = 3;
235 static const bool kIsToLower = true;
239 static const int kMaxWidth = 3;
240 static const bool kIsToLower = false;
244 static const int kMaxWidth = 1;
248 static const int kMaxWidth = 4;
252 static const int kMaxWidth = 1;