v8
3.25.30(node0.11.13)
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 258 of file jsregexp.h.
|
inline |
Definition at line 260 of file jsregexp.h.
Referenced by CharacterRange::AddCaseEquivalents(), CharacterRange::Everything(), CharacterRange::Negate(), CharacterRange::Range(), CharacterRange::Singleton(), and CharacterRange::Split().
|
inline |
Definition at line 262 of file jsregexp.h.
References ASSERT_EQ, and v8::internal::NULL.
|
inline |
Definition at line 263 of file jsregexp.h.
void AddCaseEquivalents | ( | ZoneList< CharacterRange > * | ranges, |
bool | is_ascii, | ||
Zone * | zone | ||
) |
Definition at line 5301 of file jsregexp.cc.
References List< T, ZoneAllocationPolicy >::Add(), ASSERT_EQ, bottom, CharacterRange::CharacterRange(), CharacterRange::from(), Mapping< T, size >::get(), Zone::isolate(), Isolate::jsregexp_canonrange(), Isolate::jsregexp_uncanonicalize(), String::kMaxOneByteCharCode, Ecma262UnCanonicalize::kMaxWidth, CharacterRange::Singleton(), and CharacterRange::to().
|
static |
Definition at line 5199 of file jsregexp.cc.
References List< T, ZoneAllocationPolicy >::Add(), CharacterRange::Everything(), and UNREACHABLE.
|
static |
Definition at line 5475 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 277 of file jsregexp.h.
Referenced by TEST().
|
inlinestatic |
Definition at line 274 of file jsregexp.h.
References CharacterRange::CharacterRange().
Referenced by CharacterRange::AddClassEscape(), and TEST().
|
inline |
Definition at line 278 of file jsregexp.h.
Referenced by CharacterRange::AddCaseEquivalents(), DispatchTableConstructor::AddInverse(), DispatchTable::AddRange(), CharacterRange::Canonicalize(), TextNode::FillInBMInfo(), TextNode::GetQuickCheckDetails(), CharacterRange::IsCanonical(), CharacterRange::Negate(), and TEST().
|
static |
Definition at line 5247 of file jsregexp.cc.
Referenced by TEST().
|
inline |
Definition at line 282 of file jsregexp.h.
Referenced by DispatchTable::AddRange().
|
static |
Definition at line 5367 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 283 of file jsregexp.h.
|
inline |
Definition at line 284 of file jsregexp.h.
|
static |
Definition at line 5512 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 270 of file jsregexp.h.
References ASSERT, and CharacterRange::CharacterRange().
Referenced by TEST().
|
inline |
Definition at line 279 of file jsregexp.h.
Referenced by DispatchTable::AddRange().
|
inline |
Definition at line 281 of file jsregexp.h.
|
inlinestatic |
Definition at line 267 of file jsregexp.h.
References CharacterRange::CharacterRange().
Referenced by CharacterRange::AddCaseEquivalents(), and TEST().
|
static |
Definition at line 5282 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 280 of file jsregexp.h.
Referenced by CharacterRange::AddCaseEquivalents(), DispatchTableConstructor::AddInverse(), DispatchTable::AddRange(), CharacterRange::Canonicalize(), TextNode::FillInBMInfo(), TextNode::GetQuickCheckDetails(), CharacterRange::IsCanonical(), CharacterRange::Negate(), and TEST().
|
static |
Definition at line 305 of file jsregexp.h.
|
static |
Definition at line 304 of file jsregexp.h.