v8  3.14.5(node0.10.28)
V8 is Google's open source JavaScript engine
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
CharacterRange Class Reference

#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
 

Detailed Description

Definition at line 259 of file jsregexp.h.

Constructor & Destructor Documentation

CharacterRange ( void *  null)
inline

Definition at line 263 of file jsregexp.h.

References ASSERT_EQ, and v8::internal::NULL.

CharacterRange ( uc16  from,
uc16  to 
)
inline

Definition at line 264 of file jsregexp.h.

Member Function Documentation

void AddClassEscape ( uc16  type,
ZoneList< CharacterRange > *  ranges,
Zone zone 
)
static
bool Contains ( uc16  i)
inline

Definition at line 278 of file jsregexp.h.

Referenced by TEST().

static CharacterRange Everything ( )
inlinestatic
Vector< const int > GetWordBounds ( )
static

Definition at line 5279 of file jsregexp.cc.

Referenced by TEST().

bool is_valid ( )
inline

Definition at line 283 of file jsregexp.h.

Referenced by DispatchTable::AddRange().

bool IsEverything ( uc16  max)
inline

Definition at line 284 of file jsregexp.h.

bool IsSingleton ( )
inline

Definition at line 285 of file jsregexp.h.

Referenced by RegExpUnparser::VisitCharacterRange().

static CharacterRange Range ( uc16  from,
uc16  to 
)
inlinestatic

Definition at line 271 of file jsregexp.h.

References ASSERT, and CharacterRange::CharacterRange().

Referenced by RegExpParser::ParseCharacterClass(), and TEST().

void set_from ( uc16  value)
inline

Definition at line 280 of file jsregexp.h.

Referenced by DispatchTable::AddRange().

void set_to ( uc16  value)
inline

Definition at line 282 of file jsregexp.h.

Field Documentation

const int kPayloadMask = (1 << 24) - 1
static

Definition at line 306 of file jsregexp.h.

const int kStartMarker = (1 << 24)
static

Definition at line 305 of file jsregexp.h.


The documentation for this class was generated from the following files: