Lines Matching refs:base

13 #include "src/base/strings.h"
25 constexpr base::uc32 kMaxCodePoint = 0x10ffff;
65 if (static_cast<base::uc32>(special_class[i]) != (range.to() + 1)) {
69 if (static_cast<base::uc32>(special_class[i + 1]) != range.from()) {
86 if (range.from() != static_cast<base::uc32>(special_class[i]) ||
87 range.to() != static_cast<base::uc32>(special_class[i + 1] - 1)) {
134 UnicodeRangeSplitter::UnicodeRangeSplitter(ZoneList<CharacterRange>* base) {
143 for (int i = 0; i < base->length(); i++) AddRange(base->at(i));
147 static constexpr base::uc32 kBmp1Start = 0;
148 static constexpr base::uc32 kBmp1End = kLeadSurrogateStart - 1;
149 static constexpr base::uc32 kBmp2Start = kTrailSurrogateEnd + 1;
150 static constexpr base::uc32 kBmp2End = kNonBmpStart - 1;
164 static constexpr base::uc32 kStarts[] = {
169 static constexpr base::uc32 kEnds[] = {
183 const base::uc32 from = std::max(kStarts[i], range.from());
184 const base::uc32 to = std::min(kEnds[i], range.to());
217 constexpr UC16Range ToUC16Range(base::uc16 from, base::uc16 to) {
220 constexpr base::uc16 ExtractFrom(UC16Range r) {
221 return static_cast<base::uc16>(r >> 16);
223 constexpr base::uc16 ExtractTo(UC16Range r) {
224 return static_cast<base::uc16>(r);
253 const auto AddRange = [&](base::uc16 from_l, base::uc16 to_l,
254 base::uc16 from_t, base::uc16 to_t) {
277 base::uc32 from = non_bmp->at(i).from();
278 base::uc32 to = non_bmp->at(i).to();
279 base::uc16 from_l = unibrow::Utf16::LeadSurrogate(from);
280 base::uc16 from_t = unibrow::Utf16::TrailSurrogate(from);
281 base::uc16 to_l = unibrow::Utf16::LeadSurrogate(to);
282 base::uc16 to_t = unibrow::Utf16::TrailSurrogate(to);
513 base::uc16 character1 = atom1->data().at(0);
514 base::uc16 character2 = atom2->data().at(0);
1170 base::uc16 last = 0x0000;
1253 base::uc32 from = range.from();
1255 base::uc32 to = std::min({range.to(), kMaxUtf16CodeUnitU});
1296 base::uc32 bottom = range.from();
1298 base::uc32 top = std::min({range.to(), kMaxUtf16CodeUnitU});
1310 base::uc32 chr = chars[i];
1333 base::uc32 pos = bottom;
1337 base::uc32 block_end;
1348 base::uc32 c = equivalents[i];
1349 base::uc32 range_from = c - (block_end - pos);
1350 base::uc32 range_to = c - (block_end - end);
1366 base::uc32 max = ranges->at(0).to();
1408 base::uc32 from = insert.from();
1409 base::uc32 to = insert.to();
1472 base::uc32 max = character_ranges->at(0).to();
1509 base::uc32 from = 0;
1534 static constexpr base::uc32 max_char = String::kMaxOneByteCharCodeU;