Home
last modified time | relevance | path

Searched refs:CharacterRange (Results 1 – 7 of 7) sorted by relevance

/external/v8/test/cctest/
Dtest-regexp.cc523 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()
[all …]
/external/v8/src/regexp/
Dregexp-ast.h75 class CharacterRange {
77 CharacterRange() : from_(0), to_(0) {} in CharacterRange() function
79 CharacterRange(void* null) { DCHECK_NULL(null); } // NOLINT in CharacterRange() function
80 CharacterRange(uc16 from, uc16 to) : from_(from), to_(to) {} in CharacterRange() function
81 static void AddClassEscape(uc16 type, ZoneList<CharacterRange>* ranges,
84 static inline CharacterRange Singleton(uc16 value) { in Singleton()
85 return CharacterRange(value, value); in Singleton()
87 static inline CharacterRange Range(uc16 from, uc16 to) { in Range()
89 return CharacterRange(from, to); in Range()
91 static inline CharacterRange Everything() { in Everything()
[all …]
Dregexp-parser.cc230 ZoneList<CharacterRange>* ranges = in ParseDisjunction()
231 new (zone()) ZoneList<CharacterRange>(2, zone()); in ParseDisjunction()
232 CharacterRange::AddClassEscape('.', ranges, zone()); in ParseDisjunction()
318 ZoneList<CharacterRange>* ranges = in ParseDisjunction()
319 new (zone()) ZoneList<CharacterRange>(2, zone()); in ParseDisjunction()
320 CharacterRange::AddClassEscape(c, ranges, zone()); in ParseDisjunction()
884 CharacterRange RegExpParser::ParseClassAtom(uc16* char_class) { in ParseClassAtom()
897 return CharacterRange::Singleton(0); // Return dummy value. in ParseClassAtom()
903 return CharacterRange::Singleton(c); in ParseClassAtom()
907 return CharacterRange::Singleton(first); in ParseClassAtom()
[all …]
Djsregexp.cc2100 ZoneList<CharacterRange>* ranges = cc->ranges(zone); in EmitCharClass()
2101 if (!CharacterRange::IsCanonical(ranges)) { in EmitCharClass()
2102 CharacterRange::Canonicalize(ranges); in EmitCharClass()
2116 CharacterRange& range = ranges->at(last_valid_range); in EmitCharClass()
2178 CharacterRange& range = ranges->at(i); in EmitCharClass()
2591 ZoneList<CharacterRange>* ranges = tree->ranges(zone()); in GetQuickCheckDetails()
2609 CharacterRange range = ranges->at(first_range); in GetQuickCheckDetails()
2625 CharacterRange range = ranges->at(i); in GetQuickCheckDetails()
2758 static inline bool RangeContainsLatin1Equivalents(CharacterRange range) { in RangeContainsLatin1Equivalents()
2765 static bool RangesContainLatin1Equivalents(ZoneList<CharacterRange>* ranges) { in RangesContainLatin1Equivalents()
[all …]
Dregexp-ast.cc142 void VisitCharacterRange(CharacterRange that);
174 void RegExpUnparser::VisitCharacterRange(CharacterRange that) { in VisitCharacterRange()
Dregexp-parser.h172 CharacterRange ParseClassAtom(uc16* char_class);
Djsregexp.h299 void AddRange(CharacterRange range, int value, Zone* zone);
1407 void AddRange(CharacterRange range) { in AddRange()
1411 void AddInverse(ZoneList<CharacterRange>* ranges);