Home | History | Annotate | Download | only in cctest

Lines Matching full:characterrange

478   ZoneList<CharacterRange>* ranges =
479 new(&zone) ZoneList<CharacterRange>(2, &zone);
480 CharacterRange::AddClassEscape(c, ranges, &zone);
484 CharacterRange& range = ranges->at(j);
649 table.AddRange(CharacterRange(range[j], range[j + 1]), i, &zone);
1441 ZoneList<CharacterRange>* ranges =
1442 new(&zone) ZoneList<CharacterRange>(kRangeCount, &zone);
1447 ranges->Add(CharacterRange(from, to), &zone);
1462 ZoneList<CharacterRange>* ranges =
1463 new(&zone) ZoneList<CharacterRange>(1, &zone);
1464 ranges->Add(CharacterRange(0xFFF0, 0xFFFE), &zone);
1572 static void TestRangeCaseIndependence(CharacterRange input,
1573 Vector<CharacterRange> expected) {
1576 ZoneList<CharacterRange>* list =
1577 new(&zone) ZoneList<CharacterRange>(count, &zone);
1587 static void TestSimpleRangeCaseIndependence(CharacterRange input,
1588 CharacterRange expected) {
1589 EmbeddedVector<CharacterRange, 1> vector;
1597 TestSimpleRangeCaseIndependence(CharacterRange::Singleton('a'),
1598 CharacterRange::Singleton('A'));
1599 TestSimpleRangeCaseIndependence(CharacterRange::Singleton('z'),
1600 CharacterRange::Singleton('Z'));
1601 TestSimpleRangeCaseIndependence(CharacterRange('a', 'z'),
1602 CharacterRange('A', 'Z'));
1603 TestSimpleRangeCaseIndependence(CharacterRange('c', 'f'),
1604 CharacterRange('C', 'F'));
1605 TestSimpleRangeCaseIndependence(CharacterRange('a', 'b'),
1606 CharacterRange('A', 'B'));
1607 TestSimpleRangeCaseIndependence(CharacterRange('y', 'z'),
1608 CharacterRange('Y', 'Z'));
1609 TestSimpleRangeCaseIndependence(CharacterRange('a' - 1, 'z' + 1),
1610 CharacterRange('A', 'Z'));
1611 TestSimpleRangeCaseIndependence(CharacterRange('A', 'Z'),
1612 CharacterRange('a', 'z'));
1613 TestSimpleRangeCaseIndependence(CharacterRange('C', 'F'),
1614 CharacterRange('c', 'f'));
1615 TestSimpleRangeCaseIndependence(CharacterRange('A' - 1, 'Z' + 1),
1616 CharacterRange('a', 'z'));
1620 TestSimpleRangeCaseIndependence(CharacterRange('A', 'k'),
1621 CharacterRange('a', 'z'));
1625 static bool InClass(uc16 c, ZoneList<CharacterRange>* ranges) {
1629 CharacterRange range = ranges->at(i);
1640 ZoneList<CharacterRange>* base =
1641 new(&zone) ZoneList<CharacterRange>(1, &zone);
1642 base->Add(CharacterRange::Everything(), &zone);
1643 Vector<const int> overlay = CharacterRange::GetWordBounds();
1644 ZoneList<CharacterRange>* included = NULL;
1645 ZoneList<CharacterRange>* excluded = NULL;
1646 CharacterRange::Split(base, overlay, &included, &excluded, &zone);
1668 ZoneList<CharacterRange>* list =
1669 new(&zone) ZoneList<CharacterRange>(4, &zone);
1672 list->Add(CharacterRange(10, 20), &zone);
1673 list->Add(CharacterRange(30, 40), &zone);
1674 list->Add(CharacterRange(50, 60), &zone);
1685 list->Add(CharacterRange(10, 20), &zone);
1686 list->Add(CharacterRange(50, 60), &zone);
1687 list->Add(CharacterRange(30, 40), &zone);
1698 list->Add(CharacterRange(30, 40), &zone);
1699 list->Add(CharacterRange(10, 20), &zone);
1700 list->Add(CharacterRange(25, 25), &zone);
1701 list->Add(CharacterRange(100, 100), &zone);
1702 list->Add(CharacterRange(1, 1), &zone);
1717 list->Add(CharacterRange(10, 19), &zone);
1718 list->Add(CharacterRange(21, 30), &zone);
1719 list->Add(CharacterRange(20, 20), &zone);
1730 ZoneList<CharacterRange> l1(4, &zone);
1731 ZoneList<CharacterRange> l2(4, &zone);
1746 l1.Add(CharacterRange::Singleton(offset + 2), &zone);
1747 l2.Add(CharacterRange::Singleton(offset + i), &zone);
1762 l1.Add(CharacterRange::Range(offset + 2, offset + 4), &zone);
1763 l2.Add(CharacterRange::Singleton(offset + i), &zone);
1783 l1.Add(CharacterRange::Range(offset + 6, offset + 15), &zone); // Length 8.
1784 l2.Add(CharacterRange::Range(offset + 2 * i, offset + 2 * i + 3), &zone);
1787 l1.Add(CharacterRange::Range(offset + 6, offset + 15), &zone);
1788 l2.Add(CharacterRange::Range(offset + 6, offset + 15), &zone);
1790 l1.Add(CharacterRange::Range(offset + 6, offset + 15), &zone);
1791 l2.Add(CharacterRange::Range(offset + 4, offset + 17), &zone);
1798 l1.Add(CharacterRange::Range(offset, offset + 21), &zone);
1799 l1.Add(CharacterRange::Range(offset + 31, offset + 52), &zone);
1801 l2.Add(CharacterRange::Range(offset + 2, offset + 5), &zone);
1802 l2.Add(CharacterRange::Singleton(offset + 8), &zone);
1806 ASSERT(CharacterRange::IsCanonical(&l1));
1807 ASSERT(CharacterRange::IsCanonical(&l2));
1809 ZoneList<CharacterRange> first_only(4, &zone);
1810 ZoneList<CharacterRange> second_only(4, &zone);
1811 ZoneList<CharacterRange> both(4, &zone);