Home
last modified time | relevance | path

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

/external/v8/test/cctest/
Dtest-regexp.cc475 ZoneList<CharacterRange>* ranges = in TestCharacterClassEscapes()
476 new(&zone) ZoneList<CharacterRange>(2, &zone); in TestCharacterClassEscapes()
477 CharacterRange::AddClassEscape(c, ranges, &zone); in TestCharacterClassEscapes()
481 CharacterRange& range = ranges->at(j); in TestCharacterClassEscapes()
631 table.AddRange(CharacterRange(range[j], range[j + 1]), i, &zone); in TEST()
1423 ZoneList<CharacterRange>* ranges = in TEST()
1424 new(&zone) ZoneList<CharacterRange>(kRangeCount, &zone); in TEST()
1429 ranges->Add(CharacterRange(from, to), &zone); in TEST()
1444 ZoneList<CharacterRange>* ranges = in TEST()
1445 new(&zone) ZoneList<CharacterRange>(1, &zone); in TEST()
[all …]
/external/v8/src/
Djsregexp.cc2119 ZoneList<CharacterRange>* ranges = cc->ranges(zone); in EmitCharClass()
2120 if (!CharacterRange::IsCanonical(ranges)) { in EmitCharClass()
2121 CharacterRange::Canonicalize(ranges); in EmitCharClass()
2135 CharacterRange& range = ranges->at(last_valid_range); in EmitCharClass()
2197 CharacterRange& range = ranges->at(i); in EmitCharClass()
2608 ZoneList<CharacterRange>* ranges = tree->ranges(zone()); in GetQuickCheckDetails()
2626 CharacterRange range = ranges->at(first_range); in GetQuickCheckDetails()
2642 CharacterRange range = ranges->at(i); in GetQuickCheckDetails()
2773 static inline bool RangeContainsLatin1Equivalents(CharacterRange range) { in RangeContainsLatin1Equivalents()
2780 static bool RangesContainLatin1Equivalents(ZoneList<CharacterRange>* ranges) { in RangesContainLatin1Equivalents()
[all …]
Djsregexp.h239 class CharacterRange {
241 CharacterRange() : from_(0), to_(0) { } in CharacterRange() function
243 CharacterRange(void* null) { DCHECK_EQ(NULL, null); } //NOLINT in CharacterRange() function
244 CharacterRange(uc16 from, uc16 to) : from_(from), to_(to) { } in CharacterRange() function
245 static void AddClassEscape(uc16 type, ZoneList<CharacterRange>* ranges,
248 static inline CharacterRange Singleton(uc16 value) { in Singleton()
249 return CharacterRange(value, value); in Singleton()
251 static inline CharacterRange Range(uc16 from, uc16 to) { in Range()
253 return CharacterRange(from, to); in Range()
255 static inline CharacterRange Everything() { in Everything()
[all …]
Dparser.cc4254 ZoneList<CharacterRange>* ranges = in ParseDisjunction()
4255 new(zone()) ZoneList<CharacterRange>(2, zone()); in ParseDisjunction()
4256 CharacterRange::AddClassEscape('.', ranges, zone()); in ParseDisjunction()
4324 ZoneList<CharacterRange>* ranges = in ParseDisjunction()
4325 new(zone()) ZoneList<CharacterRange>(2, zone()); in ParseDisjunction()
4326 CharacterRange::AddClassEscape(c, ranges, zone()); in ParseDisjunction()
4771 CharacterRange RegExpParser::ParseClassAtom(uc16* char_class) { in ParseClassAtom()
4779 return CharacterRange::Singleton(0); // Return dummy value. in ParseClassAtom()
4785 return CharacterRange::Singleton(c); in ParseClassAtom()
4789 return CharacterRange::Singleton(first); in ParseClassAtom()
[all …]
Dast.cc801 void VisitCharacterRange(CharacterRange that);
834 void RegExpUnparser::VisitCharacterRange(CharacterRange that) { in VisitCharacterRange()
Dast.h2696 explicit CharacterSet(ZoneList<CharacterRange>* ranges) in CharacterSet()
2699 ZoneList<CharacterRange>* ranges(Zone* zone);
2707 ZoneList<CharacterRange>* ranges_;
2716 RegExpCharacterClass(ZoneList<CharacterRange>* ranges, bool is_negated) in RegExpCharacterClass()
2747 ZoneList<CharacterRange>* ranges(Zone* zone) { return set_.ranges(zone); } in ranges()
Dparser.h252 CharacterRange ParseClassAtom(uc16* char_class);