Lines Matching refs:CharacterRange
472 ZoneList<CharacterRange>* ranges = new ZoneList<CharacterRange>(2);
473 CharacterRange::AddClassEscape(c, ranges);
477 CharacterRange& range = ranges->at(j);
630 table.AddRange(CharacterRange(range[j], range[j + 1]), i);
1390 ZoneList<CharacterRange>* ranges =
1391 new ZoneList<CharacterRange>(kRangeCount);
1396 ranges->Add(CharacterRange(from, to));
1411 ZoneList<CharacterRange>* ranges =
1412 new ZoneList<CharacterRange>(1);
1413 ranges->Add(CharacterRange(0xFFF0, 0xFFFE));
1521 static void TestRangeCaseIndependence(CharacterRange input,
1522 Vector<CharacterRange> expected) {
1525 ZoneList<CharacterRange>* list = new ZoneList<CharacterRange>(count);
1535 static void TestSimpleRangeCaseIndependence(CharacterRange input,
1536 CharacterRange expected) {
1537 EmbeddedVector<CharacterRange, 1> vector;
1545 TestSimpleRangeCaseIndependence(CharacterRange::Singleton('a'),
1546 CharacterRange::Singleton('A'));
1547 TestSimpleRangeCaseIndependence(CharacterRange::Singleton('z'),
1548 CharacterRange::Singleton('Z'));
1549 TestSimpleRangeCaseIndependence(CharacterRange('a', 'z'),
1550 CharacterRange('A', 'Z'));
1551 TestSimpleRangeCaseIndependence(CharacterRange('c', 'f'),
1552 CharacterRange('C', 'F'));
1553 TestSimpleRangeCaseIndependence(CharacterRange('a', 'b'),
1554 CharacterRange('A', 'B'));
1555 TestSimpleRangeCaseIndependence(CharacterRange('y', 'z'),
1556 CharacterRange('Y', 'Z'));
1557 TestSimpleRangeCaseIndependence(CharacterRange('a' - 1, 'z' + 1),
1558 CharacterRange('A', 'Z'));
1559 TestSimpleRangeCaseIndependence(CharacterRange('A', 'Z'),
1560 CharacterRange('a', 'z'));
1561 TestSimpleRangeCaseIndependence(CharacterRange('C', 'F'),
1562 CharacterRange('c', 'f'));
1563 TestSimpleRangeCaseIndependence(CharacterRange('A' - 1, 'Z' + 1),
1564 CharacterRange('a', 'z'));
1568 TestSimpleRangeCaseIndependence(CharacterRange('A', 'k'),
1569 CharacterRange('a', 'z'));
1573 static bool InClass(uc16 c, ZoneList<CharacterRange>* ranges) {
1577 CharacterRange range = ranges->at(i);
1588 ZoneList<CharacterRange>* base = new ZoneList<CharacterRange>(1);
1589 base->Add(CharacterRange::Everything());
1590 Vector<const uc16> overlay = CharacterRange::GetWordBounds();
1591 ZoneList<CharacterRange>* included = NULL;
1592 ZoneList<CharacterRange>* excluded = NULL;
1593 CharacterRange::Split(base, overlay, &included, &excluded);
1615 ZoneList<CharacterRange>* list = new ZoneList<CharacterRange>(4);
1618 list->Add(CharacterRange(10, 20));
1619 list->Add(CharacterRange(30, 40));
1620 list->Add(CharacterRange(50, 60));
1631 list->Add(CharacterRange(10, 20));
1632 list->Add(CharacterRange(50, 60));
1633 list->Add(CharacterRange(30, 40));
1644 list->Add(CharacterRange(30, 40));
1645 list->Add(CharacterRange(10, 20));
1646 list->Add(CharacterRange(25, 25));
1647 list->Add(CharacterRange(100, 100));
1648 list->Add(CharacterRange(1, 1));
1663 list->Add(CharacterRange(10, 19));
1664 list->Add(CharacterRange(21, 30));
1665 list->Add(CharacterRange(20, 20));
1673 static bool CharacterInSet(ZoneList<CharacterRange>* set, uc16 value) {
1675 CharacterRange range = set->at(i);
1686 ZoneList<CharacterRange> l1(4);
1687 ZoneList<CharacterRange> l2(4);
1702 l1.Add(CharacterRange::Singleton(offset + 2));
1703 l2.Add(CharacterRange::Singleton(offset + i));
1718 l1.Add(CharacterRange::Range(offset + 2, offset + 4));
1719 l2.Add(CharacterRange::Singleton(offset + i));
1739 l1.Add(CharacterRange::Range(offset + 6, offset + 15)); // Length 8.
1740 l2.Add(CharacterRange::Range(offset + 2 * i, offset + 2 * i + 3));
1743 l1.Add(CharacterRange::Range(offset + 6, offset + 15));
1744 l2.Add(CharacterRange::Range(offset + 6, offset + 15));
1746 l1.Add(CharacterRange::Range(offset + 6, offset + 15));
1747 l2.Add(CharacterRange::Range(offset + 4, offset + 17));
1754 l1.Add(CharacterRange::Range(offset, offset + 21));
1755 l1.Add(CharacterRange::Range(offset + 31, offset + 52));
1757 l2.Add(CharacterRange::Range(offset + 2, offset + 5));
1758 l2.Add(CharacterRange::Singleton(offset + 8));
1762 ASSERT(CharacterRange::IsCanonical(&l1));
1763 ASSERT(CharacterRange::IsCanonical(&l2));
1765 ZoneList<CharacterRange> first_only(4);
1766 ZoneList<CharacterRange> second_only(4);
1767 ZoneList<CharacterRange> both(4);
1770 CharacterRange::Merge(&l1, &l2, &first_only, &second_only, &both);
1772 CHECK(CharacterRange::IsCanonical(&first_only));
1773 CHECK(CharacterRange::IsCanonical(&second_only));
1774 CHECK(CharacterRange::IsCanonical(&both));
1789 CharacterRange::Merge(&l2, &l1, &second_only, &first_only, &both);
1791 CHECK(CharacterRange::IsCanonical(&first_only));
1792 CHECK(CharacterRange::IsCanonical(&second_only));
1793 CHECK(CharacterRange::IsCanonical(&both));
1808 CharacterRange::Merge(&l1, &l2, NULL, NULL, &both);
1810 CHECK(CharacterRange::IsCanonical(&both));
1819 ZoneList<CharacterRange> all(4);
1820 CharacterRange::Merge(&l1, &l2, &all, &all, &all);
1822 CHECK(CharacterRange::IsCanonical(&all));