v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
regexp-flags.h File Reference
#include <optional>
#include <ostream>
#include "src/base/flags.h"
Include dependency graph for regexp-flags.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  v8
 
namespace  v8::internal
 

Macros

#define REGEXP_FLAG_LIST(V)
 
#define V(Lower, Camel, LowerCamel, Char, Bit)
 
#define V(...)
 
#define V(Lower, Camel, LowerCamel, Char, Bit)
 
#define V(Lower, Camel, LowerCamel, Char, Bit)
 
#define V(Lower, Camel, ...)
 
#define V(Lower, Camel, LowerCamel, Char, Bit)
 

Typedefs

using v8::internal::RegExpFlags = base::Flags<RegExpFlag>
 

Enumerations

enum class  v8::internal::RegExpFlag { v8::internal::REGEXP_FLAG_LIST =(V) }
 

Functions

constexpr bool v8::internal::IsEitherUnicode (RegExpFlags f)
 
constexpr bool v8::internal::ShouldOptionallyStepBackToLeadSurrogate (RegExpFlags f)
 
constexpr std::optional< RegExpFlagv8::internal::TryRegExpFlagFromChar (char c)
 
std::ostream & v8::internal::operator<< (std::ostream &os, RegExpFlags flags)
 

Variables

constexpr int v8::internal::kRegExpFlagCount = REGEXP_FLAG_LIST(V)
 

Macro Definition Documentation

◆ REGEXP_FLAG_LIST

#define REGEXP_FLAG_LIST ( V)
Value:
V(has_indices, HasIndices, hasIndices, 'd', 7) \
V(global, Global, global, 'g', 0) \
V(ignore_case, IgnoreCase, ignoreCase, 'i', 1) \
V(linear, Linear, linear, 'l', 6) \
V(multiline, Multiline, multiline, 'm', 2) \
V(dot_all, DotAll, dotAll, 's', 5) \
V(unicode, Unicode, unicode, 'u', 4) \
V(unicode_sets, UnicodeSets, unicodeSets, 'v', 8) \
V(sticky, Sticky, sticky, 'y', 3)
#define V(Lower, Camel, LowerCamel, Char, Bit)

Definition at line 21 of file regexp-flags.h.

◆ V [1/6]

#define V ( ...)
Value:
+1

Definition at line 32 of file regexp-flags.h.

◆ V [2/6]

#define V ( Lower,
Camel,
LowerCamel,
Char,
Bit )
Value:
k##Camel = 1 << Bit,

Definition at line 32 of file regexp-flags.h.

◆ V [3/6]

#define V ( Lower,
Camel,
LowerCamel,
Char,
Bit )
Value:
< Char) && (Char

Definition at line 32 of file regexp-flags.h.

◆ V [4/6]

#define V ( Lower,
Camel,
LowerCamel,
Char,
Bit )
Value:
| (1 << Bit)

Definition at line 32 of file regexp-flags.h.

◆ V [5/6]

#define V ( Lower,
Camel,
LowerCamel,
Char,
Bit )
Value:
c == Char ? RegExpFlag::k##Camel :

Definition at line 32 of file regexp-flags.h.

◆ V [6/6]

#define V ( Lower,
Camel,
... )
Value:
constexpr bool Is##Camel(RegExpFlags f) { \
return (f & RegExpFlag::k##Camel) != 0; \
}

Definition at line 32 of file regexp-flags.h.