v8  3.25.30(node0.11.13)
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 258 of file jsregexp.h.

Constructor & Destructor Documentation

CharacterRange ( void *  null)
inline

Definition at line 262 of file jsregexp.h.

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

CharacterRange ( uc16  from,
uc16  to 
)
inline

Definition at line 263 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 277 of file jsregexp.h.

Referenced by TEST().

static CharacterRange Everything ( )
inlinestatic

Definition at line 274 of file jsregexp.h.

References CharacterRange::CharacterRange().

Referenced by CharacterRange::AddClassEscape(), and TEST().

Vector< const int > GetWordBounds ( )
static

Definition at line 5247 of file jsregexp.cc.

Referenced by TEST().

bool is_valid ( )
inline

Definition at line 282 of file jsregexp.h.

Referenced by DispatchTable::AddRange().

bool IsEverything ( uc16  max)
inline

Definition at line 283 of file jsregexp.h.

bool IsSingleton ( )
inline

Definition at line 284 of file jsregexp.h.

static CharacterRange Range ( uc16  from,
uc16  to 
)
inlinestatic

Definition at line 270 of file jsregexp.h.

References ASSERT, and CharacterRange::CharacterRange().

Referenced by TEST().

void set_from ( uc16  value)
inline

Definition at line 279 of file jsregexp.h.

Referenced by DispatchTable::AddRange().

void set_to ( uc16  value)
inline

Definition at line 281 of file jsregexp.h.

static CharacterRange Singleton ( uc16  value)
inlinestatic

Definition at line 267 of file jsregexp.h.

References CharacterRange::CharacterRange().

Referenced by CharacterRange::AddCaseEquivalents(), and TEST().

Field Documentation

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

Definition at line 305 of file jsregexp.h.

const int kStartMarker = (1 << 24)
static

Definition at line 304 of file jsregexp.h.


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