mirror of
https://github.com/dart-lang/sdk
synced 2024-09-05 00:13:50 +00:00
![Ryan Macnak](/assets/img/avatar_default.png)
TEST=manually adjusting ulimit Change-Id: I1c1a9ba583275017cfbd92cd850a8bc33920aac9 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/211461 Reviewed-by: Alexander Aprelev <aam@google.com> Commit-Queue: Ryan Macnak <rmacnak@google.com>
30 lines
937 B
C++
30 lines
937 B
C++
// Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
|
|
// for details. All rights reserved. Use of this source code is governed by a
|
|
// BSD-style license that can be found in the LICENSE file.
|
|
|
|
// A simple interpreter for the Irregexp byte code.
|
|
|
|
#ifndef RUNTIME_VM_REGEXP_INTERPRETER_H_
|
|
#define RUNTIME_VM_REGEXP_INTERPRETER_H_
|
|
|
|
#include "vm/allocation.h"
|
|
#include "vm/object.h"
|
|
#include "vm/zone.h"
|
|
|
|
namespace dart {
|
|
|
|
class IrregexpInterpreter : public AllStatic {
|
|
public:
|
|
// Returns True in case of a success, False in case of a failure,
|
|
// Null in case of internal exception,
|
|
// Error in case VM error has to propagated up to the caller.
|
|
static ObjectPtr Match(const TypedData& bytecode,
|
|
const String& subject,
|
|
int32_t* captures,
|
|
intptr_t start_position);
|
|
};
|
|
|
|
} // namespace dart
|
|
|
|
#endif // RUNTIME_VM_REGEXP_INTERPRETER_H_
|