Lines Matching refs:CharacterRange

523   ZoneList<CharacterRange>* ranges =  in TestCharacterClassEscapes()
524 new(&zone) ZoneList<CharacterRange>(2, &zone); in TestCharacterClassEscapes()
525 CharacterRange::AddClassEscape(c, ranges, &zone); in TestCharacterClassEscapes()
529 CharacterRange& range = ranges->at(j); in TestCharacterClassEscapes()
681 table.AddRange(CharacterRange(range[j], range[j + 1]), i, &zone); in TEST()
1487 ZoneList<CharacterRange>* ranges = in TEST()
1488 new(&zone) ZoneList<CharacterRange>(kRangeCount, &zone); in TEST()
1493 ranges->Add(CharacterRange(from, to), &zone); in TEST()
1508 ZoneList<CharacterRange>* ranges = in TEST()
1509 new(&zone) ZoneList<CharacterRange>(1, &zone); in TEST()
1510 ranges->Add(CharacterRange(0xFFF0, 0xFFFE), &zone); in TEST()
1618 static void TestRangeCaseIndependence(Isolate* isolate, CharacterRange input, in TestRangeCaseIndependence()
1619 Vector<CharacterRange> expected) { in TestRangeCaseIndependence()
1622 ZoneList<CharacterRange>* list = in TestRangeCaseIndependence()
1623 new(&zone) ZoneList<CharacterRange>(count, &zone); in TestRangeCaseIndependence()
1634 CharacterRange input, in TestSimpleRangeCaseIndependence()
1635 CharacterRange expected) { in TestSimpleRangeCaseIndependence()
1636 EmbeddedVector<CharacterRange, 1> vector; in TestSimpleRangeCaseIndependence()
1644 TestSimpleRangeCaseIndependence(isolate, CharacterRange::Singleton('a'), in TEST()
1645 CharacterRange::Singleton('A')); in TEST()
1646 TestSimpleRangeCaseIndependence(isolate, CharacterRange::Singleton('z'), in TEST()
1647 CharacterRange::Singleton('Z')); in TEST()
1648 TestSimpleRangeCaseIndependence(isolate, CharacterRange('a', 'z'), in TEST()
1649 CharacterRange('A', 'Z')); in TEST()
1650 TestSimpleRangeCaseIndependence(isolate, CharacterRange('c', 'f'), in TEST()
1651 CharacterRange('C', 'F')); in TEST()
1652 TestSimpleRangeCaseIndependence(isolate, CharacterRange('a', 'b'), in TEST()
1653 CharacterRange('A', 'B')); in TEST()
1654 TestSimpleRangeCaseIndependence(isolate, CharacterRange('y', 'z'), in TEST()
1655 CharacterRange('Y', 'Z')); in TEST()
1656 TestSimpleRangeCaseIndependence(isolate, CharacterRange('a' - 1, 'z' + 1), in TEST()
1657 CharacterRange('A', 'Z')); in TEST()
1658 TestSimpleRangeCaseIndependence(isolate, CharacterRange('A', 'Z'), in TEST()
1659 CharacterRange('a', 'z')); in TEST()
1660 TestSimpleRangeCaseIndependence(isolate, CharacterRange('C', 'F'), in TEST()
1661 CharacterRange('c', 'f')); in TEST()
1662 TestSimpleRangeCaseIndependence(isolate, CharacterRange('A' - 1, 'Z' + 1), in TEST()
1663 CharacterRange('a', 'z')); in TEST()
1667 TestSimpleRangeCaseIndependence(isolate, CharacterRange('A', 'k'), in TEST()
1668 CharacterRange('a', 'z')); in TEST()
1672 static bool InClass(uc16 c, ZoneList<CharacterRange>* ranges) { in InClass()
1676 CharacterRange range = ranges->at(i); in InClass()
1686 ZoneList<CharacterRange>* base = in TEST()
1687 new(&zone) ZoneList<CharacterRange>(1, &zone); in TEST()
1688 base->Add(CharacterRange::Everything(), &zone); in TEST()
1689 Vector<const int> overlay = CharacterRange::GetWordBounds(); in TEST()
1690 ZoneList<CharacterRange>* included = NULL; in TEST()
1691 ZoneList<CharacterRange>* excluded = NULL; in TEST()
1692 CharacterRange::Split(base, overlay, &included, &excluded, &zone); in TEST()
1713 ZoneList<CharacterRange>* list = in TEST()
1714 new(&zone) ZoneList<CharacterRange>(4, &zone); in TEST()
1717 list->Add(CharacterRange(10, 20), &zone); in TEST()
1718 list->Add(CharacterRange(30, 40), &zone); in TEST()
1719 list->Add(CharacterRange(50, 60), &zone); in TEST()
1730 list->Add(CharacterRange(10, 20), &zone); in TEST()
1731 list->Add(CharacterRange(50, 60), &zone); in TEST()
1732 list->Add(CharacterRange(30, 40), &zone); in TEST()
1743 list->Add(CharacterRange(30, 40), &zone); in TEST()
1744 list->Add(CharacterRange(10, 20), &zone); in TEST()
1745 list->Add(CharacterRange(25, 25), &zone); in TEST()
1746 list->Add(CharacterRange(100, 100), &zone); in TEST()
1747 list->Add(CharacterRange(1, 1), &zone); in TEST()
1762 list->Add(CharacterRange(10, 19), &zone); in TEST()
1763 list->Add(CharacterRange(21, 30), &zone); in TEST()
1764 list->Add(CharacterRange(20, 20), &zone); in TEST()
1774 ZoneList<CharacterRange> l1(4, &zone); in TEST()
1775 ZoneList<CharacterRange> l2(4, &zone); in TEST()
1790 l1.Add(CharacterRange::Singleton(offset + 2), &zone); in TEST()
1791 l2.Add(CharacterRange::Singleton(offset + i), &zone); in TEST()
1806 l1.Add(CharacterRange::Range(offset + 2, offset + 4), &zone); in TEST()
1807 l2.Add(CharacterRange::Singleton(offset + i), &zone); in TEST()
1827 l1.Add(CharacterRange::Range(offset + 6, offset + 15), &zone); // Length 8. in TEST()
1828 l2.Add(CharacterRange::Range(offset + 2 * i, offset + 2 * i + 3), &zone); in TEST()
1831 l1.Add(CharacterRange::Range(offset + 6, offset + 15), &zone); in TEST()
1832 l2.Add(CharacterRange::Range(offset + 6, offset + 15), &zone); in TEST()
1834 l1.Add(CharacterRange::Range(offset + 6, offset + 15), &zone); in TEST()
1835 l2.Add(CharacterRange::Range(offset + 4, offset + 17), &zone); in TEST()
1842 l1.Add(CharacterRange::Range(offset, offset + 21), &zone); in TEST()
1843 l1.Add(CharacterRange::Range(offset + 31, offset + 52), &zone); in TEST()
1845 l2.Add(CharacterRange::Range(offset + 2, offset + 5), &zone); in TEST()
1846 l2.Add(CharacterRange::Singleton(offset + 8), &zone); in TEST()
1850 CHECK(CharacterRange::IsCanonical(&l1)); in TEST()
1851 CHECK(CharacterRange::IsCanonical(&l2)); in TEST()
1853 ZoneList<CharacterRange> first_only(4, &zone); in TEST()
1854 ZoneList<CharacterRange> second_only(4, &zone); in TEST()
1855 ZoneList<CharacterRange> both(4, &zone); in TEST()