v8  3.11.10(node0.8.26)
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 413 of file jsregexp.h.

Member Enumeration Documentation

enum Type
Enumerator
UNINITIALIZED 
ATOM 
CHAR_CLASS 

Definition at line 415 of file jsregexp.h.

Constructor & Destructor Documentation

TextElement ( )
inline

Definition at line 416 of file jsregexp.h.

Referenced by TextElement::Atom(), and TextElement::CharClass().

TextElement ( Type  t)
inlineexplicit

Definition at line 417 of file jsregexp.h.

Member Function Documentation

int length ( )

Definition at line 859 of file jsregexp.cc.

References ASSERT, TextElement::ATOM, TextElement::CHAR_CLASS, and TextElement::type.

Referenced by RegExpText::AddElement().

Field Documentation

int cp_offset

Definition at line 426 of file jsregexp.h.

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


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