Flutter Engine
The Flutter Engine
regexp_interpreter.h
Go to the documentation of this file.
1// Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
2// for details. All rights reserved. Use of this source code is governed by a
3// BSD-style license that can be found in the LICENSE file.
4
5// A simple interpreter for the Irregexp byte code.
6
7#ifndef RUNTIME_VM_REGEXP_INTERPRETER_H_
8#define RUNTIME_VM_REGEXP_INTERPRETER_H_
9
10#include "vm/allocation.h"
11#include "vm/object.h"
12#include "vm/zone.h"
13
14namespace dart {
15
17 public:
18 // Returns True in case of a success, False in case of a failure,
19 // Null in case of internal exception,
20 // Error in case VM error has to propagated up to the caller.
21 static ObjectPtr Match(const TypedData& bytecode,
22 const String& subject,
23 int32_t* captures,
24 int32_t start_position);
25};
26
27} // namespace dart
28
29#endif // RUNTIME_VM_REGEXP_INTERPRETER_H_
static ObjectPtr Match(const TypedData &bytecode, const String &subject, int32_t *captures, int32_t start_position)
Definition: dart_vm.cc:33