v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8::internal::CharacterRange Class Reference

#include <regexp-ast.h>

Collaboration diagram for v8::internal::CharacterRange:

Public Member Functions

 CharacterRange ()=default
 
 CharacterRange (void *null)
 
bool Contains (base::uc32 i) const
 
base::uc32 from () const
 
base::uc32 to () const
 
bool IsEverything (base::uc32 max) const
 
bool IsSingleton () const
 

Static Public Member Functions

static CharacterRange Singleton (base::uc32 value)
 
static CharacterRange Range (base::uc32 from, base::uc32 to)
 
static CharacterRange Everything ()
 
static ZoneList< CharacterRange > * List (Zone *zone, CharacterRange range)
 
static V8_EXPORT_PRIVATE void AddClassEscape (StandardCharacterSet standard_character_set, ZoneList< CharacterRange > *ranges, bool add_unicode_case_equivalents, Zone *zone)
 
static V8_EXPORT_PRIVATE void AddCaseEquivalents (Isolate *isolate, Zone *zone, ZoneList< CharacterRange > *ranges, bool is_one_byte)
 
static void AddUnicodeCaseEquivalents (ZoneList< CharacterRange > *ranges, Zone *zone)
 
static V8_EXPORT_PRIVATE bool IsCanonical (const ZoneList< CharacterRange > *ranges)
 
static void Canonicalize (ZoneList< CharacterRange > *ranges)
 
static void Negate (const ZoneList< CharacterRange > *src, ZoneList< CharacterRange > *dst, Zone *zone)
 
static void Intersect (const ZoneList< CharacterRange > *lhs, const ZoneList< CharacterRange > *rhs, ZoneList< CharacterRange > *dst, Zone *zone)
 
static void Subtract (const ZoneList< CharacterRange > *src, const ZoneList< CharacterRange > *to_remove, ZoneList< CharacterRange > *dst, Zone *zone)
 
static void ClampToOneByte (ZoneList< CharacterRange > *ranges)
 
static bool Equals (const ZoneList< CharacterRange > *lhs, const ZoneList< CharacterRange > *rhs)
 

Private Member Functions

 CharacterRange (base::uc32 from, base::uc32 to)
 

Private Attributes

base::uc32 from_ = 0
 
base::uc32 to_ = 0
 

Static Private Attributes

static constexpr int kMaxCodePoint = 0x10ffff
 

Detailed Description

Definition at line 96 of file regexp-ast.h.

Constructor & Destructor Documentation

◆ CharacterRange() [1/3]

v8::internal::CharacterRange::CharacterRange ( )
default
Here is the caller graph for this function:

◆ CharacterRange() [2/3]

v8::internal::CharacterRange::CharacterRange ( void * null)
inline

Definition at line 100 of file regexp-ast.h.

◆ CharacterRange() [3/3]

v8::internal::CharacterRange::CharacterRange ( base::uc32 from,
base::uc32 to )
inlineprivate

Definition at line 172 of file regexp-ast.h.

Member Function Documentation

◆ AddCaseEquivalents()

void v8::internal::CharacterRange::AddCaseEquivalents ( Isolate * isolate,
Zone * zone,
ZoneList< CharacterRange > * ranges,
bool is_one_byte )
static

Definition at line 1518 of file regexp-compiler-tonode.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ AddClassEscape()

void v8::internal::CharacterRange::AddClassEscape ( StandardCharacterSet standard_character_set,
ZoneList< CharacterRange > * ranges,
bool add_unicode_case_equivalents,
Zone * zone )
static

Definition at line 1455 of file regexp-compiler-tonode.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ AddUnicodeCaseEquivalents()

void v8::internal::CharacterRange::AddUnicodeCaseEquivalents ( ZoneList< CharacterRange > * ranges,
Zone * zone )
static

Definition at line 427 of file regexp-compiler-tonode.cc.

Here is the call graph for this function:

◆ Canonicalize()

void v8::internal::CharacterRange::Canonicalize ( ZoneList< CharacterRange > * ranges)
static

Definition at line 1741 of file regexp-compiler-tonode.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ClampToOneByte()

void v8::internal::CharacterRange::ClampToOneByte ( ZoneList< CharacterRange > * ranges)
static

Definition at line 1926 of file regexp-compiler-tonode.cc.

◆ Contains()

bool v8::internal::CharacterRange::Contains ( base::uc32 i) const
inline

Definition at line 139 of file regexp-ast.h.

◆ Equals()

bool v8::internal::CharacterRange::Equals ( const ZoneList< CharacterRange > * lhs,
const ZoneList< CharacterRange > * rhs )
static

Definition at line 1947 of file regexp-compiler-tonode.cc.

Here is the call graph for this function:

◆ Everything()

static CharacterRange v8::internal::CharacterRange::Everything ( )
inlinestatic

Definition at line 110 of file regexp-ast.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ from()

base::uc32 v8::internal::CharacterRange::from ( ) const
inline

Definition at line 140 of file regexp-ast.h.

Here is the caller graph for this function:

◆ Intersect()

void v8::internal::CharacterRange::Intersect ( const ZoneList< CharacterRange > * lhs,
const ZoneList< CharacterRange > * rhs,
ZoneList< CharacterRange > * dst,
Zone * zone )
static

Definition at line 1801 of file regexp-compiler-tonode.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ IsCanonical()

bool v8::internal::CharacterRange::IsCanonical ( const ZoneList< CharacterRange > * ranges)
static

Definition at line 1636 of file regexp-compiler-tonode.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ IsEverything()

bool v8::internal::CharacterRange::IsEverything ( base::uc32 max) const
inline

Definition at line 142 of file regexp-ast.h.

◆ IsSingleton()

bool v8::internal::CharacterRange::IsSingleton ( ) const
inline

Definition at line 143 of file regexp-ast.h.

◆ List()

static ZoneList< CharacterRange > * v8::internal::CharacterRange::List ( Zone * zone,
CharacterRange range )
inlinestatic

Definition at line 114 of file regexp-ast.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Negate()

void v8::internal::CharacterRange::Negate ( const ZoneList< CharacterRange > * src,
ZoneList< CharacterRange > * dst,
Zone * zone )
static

Definition at line 1777 of file regexp-compiler-tonode.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Range()

static CharacterRange v8::internal::CharacterRange::Range ( base::uc32 from,
base::uc32 to )
inlinestatic

Definition at line 105 of file regexp-ast.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Singleton()

static CharacterRange v8::internal::CharacterRange::Singleton ( base::uc32 value)
inlinestatic

Definition at line 102 of file regexp-ast.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Subtract()

void v8::internal::CharacterRange::Subtract ( const ZoneList< CharacterRange > * src,
const ZoneList< CharacterRange > * to_remove,
ZoneList< CharacterRange > * dst,
Zone * zone )
static

Definition at line 1854 of file regexp-compiler-tonode.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ to()

base::uc32 v8::internal::CharacterRange::to ( ) const
inline

Definition at line 141 of file regexp-ast.h.

Here is the caller graph for this function:

Member Data Documentation

◆ from_

base::uc32 v8::internal::CharacterRange::from_ = 0
private

Definition at line 176 of file regexp-ast.h.

◆ kMaxCodePoint

int v8::internal::CharacterRange::kMaxCodePoint = 0x10ffff
staticconstexprprivate

Definition at line 174 of file regexp-ast.h.

◆ to_

base::uc32 v8::internal::CharacterRange::to_ = 0
private

Definition at line 177 of file regexp-ast.h.


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