21 bool caseSensitive,
bool multiline)
27 DCHECK(isolate->IsExecutionTerminating());
52 int* matchLength)
const {
53 if (matchLength) *matchLength = 0;
58 if (
string.
length() > INT_MAX)
return -1;
64 DCHECK(isolate->IsExecutionTerminating());
84 .ToLocal(&returnValue))
95 if (!returnValue->IsArray())
return -1;
100 .ToLocal(&matchOffset))
104 if (!
result->Get(context, 0).ToLocal(&
match))
return -1;
108 return matchOffset.
As<
v8::Int32>()->Value() + startFrom;
V8_WARN_UNUSED_RESULT MaybeLocal< Value > Call(v8::Isolate *isolate, Local< Context > context, Local< Value > recv, int argc, Local< Value > argv[])
V8_INLINE Local< S > As() const
V8_INLINE Local< T > Get(Isolate *isolate) const
static V8_WARN_UNUSED_RESULT MaybeLocal< RegExp > New(Local< Context > context, Local< String > pattern, Flags flags)
Local< v8::Message > Message() const
V8_INLINE bool IsEmpty() const
v8::Isolate * isolate() const
v8::MaybeLocal< v8::Context > regexContext()
V8Regex(V8InspectorImpl *, const String16 &, bool caseSensitive, bool multiline=false)
v8::Global< v8::RegExp > m_regex
int match(const String16 &, int startFrom=0, int *matchLength=nullptr) const
V8InspectorImpl * m_inspector
ZoneVector< RpoNumber > & result
String16 toProtocolString(v8::Isolate *isolate, v8::Local< v8::String > value)
v8::Local< v8::String > toV8String(v8::Isolate *isolate, const String16 &string)
v8::Local< v8::String > toV8StringInternalized(v8::Isolate *isolate, const String16 &string)
#define DCHECK(condition)
V8InspectorImpl * m_inspector