v8
3.14.5(node0.10.28)
V8 is Google's open source JavaScript engine
|
#include <jsregexp.h>
Public Member Functions | |
CharacterRange () | |
CharacterRange (void *null) | |
CharacterRange (uc16 from, uc16 to) | |
bool | Contains (uc16 i) |
uc16 | from () const |
void | set_from (uc16 value) |
uc16 | to () const |
void | set_to (uc16 value) |
bool | is_valid () |
bool | IsEverything (uc16 max) |
bool | IsSingleton () |
void | AddCaseEquivalents (ZoneList< CharacterRange > *ranges, bool is_ascii, Zone *zone) |
Static Public Member Functions | |
static void | AddClassEscape (uc16 type, ZoneList< CharacterRange > *ranges, Zone *zone) |
static Vector< const int > | GetWordBounds () |
static CharacterRange | Singleton (uc16 value) |
static CharacterRange | Range (uc16 from, uc16 to) |
static CharacterRange | Everything () |
static void | Split (ZoneList< CharacterRange > *base, Vector< const int > overlay, ZoneList< CharacterRange > **included, ZoneList< CharacterRange > **excluded, Zone *zone) |
static bool | IsCanonical (ZoneList< CharacterRange > *ranges) |
static void | Canonicalize (ZoneList< CharacterRange > *ranges) |
static void | Negate (ZoneList< CharacterRange > *src, ZoneList< CharacterRange > *dst, Zone *zone) |
Static Public Attributes | |
static const int | kStartMarker = (1 << 24) |
static const int | kPayloadMask = (1 << 24) - 1 |
Definition at line 259 of file jsregexp.h.
|
inline |
Definition at line 261 of file jsregexp.h.
Referenced by CharacterRange::AddCaseEquivalents(), CharacterRange::Everything(), CharacterRange::Negate(), CharacterRange::Range(), CharacterRange::Singleton(), and CharacterRange::Split().
|
inline |
Definition at line 263 of file jsregexp.h.
References ASSERT_EQ, and v8::internal::NULL.
|
inline |
Definition at line 264 of file jsregexp.h.
void AddCaseEquivalents | ( | ZoneList< CharacterRange > * | ranges, |
bool | is_ascii, | ||
Zone * | zone | ||
) |
Definition at line 5333 of file jsregexp.cc.
References List< T, ZoneAllocationPolicy >::Add(), ASSERT_EQ, bottom, CharacterRange::CharacterRange(), CharacterRange::from(), Mapping< T, size >::get(), Isolate::jsregexp_canonrange(), Isolate::jsregexp_uncanonicalize(), String::kMaxAsciiCharCode, Ecma262UnCanonicalize::kMaxWidth, CharacterRange::Singleton(), and CharacterRange::to().
|
static |
Definition at line 5231 of file jsregexp.cc.
References List< T, ZoneAllocationPolicy >::Add(), CharacterRange::Everything(), and UNREACHABLE.
Referenced by RegExpParser::ParseDisjunction(), and RegExpAssertion::ToNode().
|
static |
Definition at line 5507 of file jsregexp.cc.
References ASSERT, List< T, ZoneAllocationPolicy >::at(), CharacterRange::from(), CharacterRange::IsCanonical(), and CharacterRange::to().
Referenced by TextNode::FilterASCII(), and TextNode::GetSuccessorOfOmnivorousTextNode().
|
inline |
Definition at line 278 of file jsregexp.h.
Referenced by TEST().
|
inlinestatic |
Definition at line 275 of file jsregexp.h.
References CharacterRange::CharacterRange().
Referenced by CharacterRange::AddClassEscape(), RegExpParser::ParseCharacterClass(), and TEST().
|
inline |
Definition at line 279 of file jsregexp.h.
Referenced by CharacterRange::AddCaseEquivalents(), DispatchTableConstructor::AddInverse(), DispatchTable::AddRange(), CharacterRange::Canonicalize(), TextNode::FillInBMInfo(), TextNode::GetQuickCheckDetails(), CharacterRange::IsCanonical(), CharacterRange::Negate(), RegExpParser::ParseCharacterClass(), TEST(), and RegExpUnparser::VisitCharacterRange().
|
static |
Definition at line 5279 of file jsregexp.cc.
Referenced by TEST().
|
inline |
Definition at line 283 of file jsregexp.h.
Referenced by DispatchTable::AddRange().
|
static |
Definition at line 5399 of file jsregexp.cc.
References ASSERT_NOT_NULL, List< T, ZoneAllocationPolicy >::at(), CharacterRange::from(), and CharacterRange::to().
Referenced by CharacterRange::Canonicalize(), TextNode::FilterASCII(), TextNode::GetSuccessorOfOmnivorousTextNode(), CharacterRange::Negate(), and TEST().
|
inline |
Definition at line 284 of file jsregexp.h.
|
inline |
Definition at line 285 of file jsregexp.h.
Referenced by RegExpUnparser::VisitCharacterRange().
|
static |
Definition at line 5544 of file jsregexp.cc.
References List< T, ZoneAllocationPolicy >::Add(), ASSERT, ASSERT_EQ, List< T, ZoneAllocationPolicy >::at(), CharacterRange::CharacterRange(), CharacterRange::from(), CharacterRange::IsCanonical(), String::kMaxUtf16CodeUnit, and CharacterRange::to().
|
inlinestatic |
Definition at line 271 of file jsregexp.h.
References ASSERT, and CharacterRange::CharacterRange().
Referenced by RegExpParser::ParseCharacterClass(), and TEST().
|
inline |
Definition at line 280 of file jsregexp.h.
Referenced by DispatchTable::AddRange().
|
inline |
Definition at line 282 of file jsregexp.h.
|
inlinestatic |
Definition at line 268 of file jsregexp.h.
References CharacterRange::CharacterRange().
Referenced by CharacterRange::AddCaseEquivalents(), RegExpParser::ParseCharacterClass(), RegExpParser::ParseClassAtom(), and TEST().
|
static |
Definition at line 5314 of file jsregexp.cc.
References DispatchTable::AddRange(), ASSERT_EQ, List< T, ZoneAllocationPolicy >::at(), CharacterRange::CharacterRange(), DispatchTable::ForEach(), CharacterRangeSplitter::kInBase, CharacterRangeSplitter::kInOverlay, Vector< T >::length(), and v8::internal::NULL.
Referenced by TEST().
|
inline |
Definition at line 281 of file jsregexp.h.
Referenced by CharacterRange::AddCaseEquivalents(), DispatchTableConstructor::AddInverse(), DispatchTable::AddRange(), CharacterRange::Canonicalize(), TextNode::FillInBMInfo(), TextNode::GetQuickCheckDetails(), CharacterRange::IsCanonical(), CharacterRange::Negate(), RegExpParser::ParseCharacterClass(), TEST(), and RegExpUnparser::VisitCharacterRange().
|
static |
Definition at line 306 of file jsregexp.h.
|
static |
Definition at line 305 of file jsregexp.h.