Flutter Engine
The Flutter Engine
Static Public Member Functions | List of all members
dart::IrregexpInterpreter Class Reference

#include <regexp_interpreter.h>

Inheritance diagram for dart::IrregexpInterpreter:
dart::AllStatic

Static Public Member Functions

static ObjectPtr Match (const TypedData &bytecode, const String &subject, int32_t *captures, int32_t start_position)
 

Detailed Description

Definition at line 16 of file regexp_interpreter.h.

Member Function Documentation

◆ Match()

ObjectPtr dart::IrregexpInterpreter::Match ( const TypedData bytecode,
const String subject,
int32_t *  captures,
int32_t  start_position 
)
static

Definition at line 692 of file regexp_interpreter.cc.

695 {
696 uint16_t previous_char = '\n';
697 if (start_position != 0) {
698 previous_char = subject.CharAt(start_position - 1);
699 }
700
701 if (subject.IsOneByteString()) {
702 return RawMatch<uint8_t>(bytecode, subject, registers, start_position,
703 previous_char);
704 } else if (subject.IsTwoByteString()) {
705 return RawMatch<uint16_t>(bytecode, subject, registers, start_position,
706 previous_char);
707 } else {
708 UNREACHABLE();
709 return Bool::False().ptr();
710 }
711}
#define UNREACHABLE()
Definition: assert.h:248
static const Bool & False()
Definition: object.h:10799
ObjectPtr ptr() const
Definition: object.h:332

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