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
TextElement Class Reference

#include <jsregexp.h>

Collaboration diagram for TextElement:

Public Types

enum  Type { UNINITIALIZED, ATOM, CHAR_CLASS }
 

Public Member Functions

 TextElement ()
 
 TextElement (Type t)
 
int length ()
 

Static Public Member Functions

static TextElement Atom (RegExpAtom *atom)
 
static TextElement CharClass (RegExpCharacterClass *char_class)
 

Data Fields

Type type
 
union {
   RegExpAtom *   u_atom
 
   RegExpCharacterClass *   u_char_class
 
data
 
int cp_offset
 

Detailed Description

Definition at line 430 of file jsregexp.h.

Member Enumeration Documentation

enum Type
Enumerator
UNINITIALIZED 
ATOM 
CHAR_CLASS 

Definition at line 432 of file jsregexp.h.

Constructor & Destructor Documentation

TextElement ( )
inline

Definition at line 433 of file jsregexp.h.

TextElement ( Type  t)
inlineexplicit

Definition at line 434 of file jsregexp.h.

Member Function Documentation

TextElement Atom ( RegExpAtom atom)
static

Definition at line 996 of file jsregexp.cc.

References TextElement::data, and TextElement::u_atom.

Referenced by RegExpAtom::AppendToText(), and RegExpAtom::ToNode().

TextElement CharClass ( RegExpCharacterClass char_class)
static
int length ( )

Definition at line 1011 of file jsregexp.cc.

References ASSERT.

Referenced by RegExpText::AddElement().

Field Documentation

int cp_offset

Definition at line 443 of file jsregexp.h.

Referenced by TextNode::CalculateOffsets(), and TextNode::GreedyLoopTextLength().


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