Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(328)

Side by Side Diff: runtime/vm/regexp_interpreter.h

Issue 2450713004: Make header include guards great again (Closed)
Patch Set: Fix header include guards Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « runtime/vm/regexp_bytecodes.h ('k') | runtime/vm/regexp_parser.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS 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 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. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 // A simple interpreter for the Irregexp byte code. 5 // A simple interpreter for the Irregexp byte code.
6 6
7 #ifndef VM_REGEXP_INTERPRETER_H_ 7 #ifndef RUNTIME_VM_REGEXP_INTERPRETER_H_
8 #define VM_REGEXP_INTERPRETER_H_ 8 #define RUNTIME_VM_REGEXP_INTERPRETER_H_
9 9
10 #include "vm/allocation.h" 10 #include "vm/allocation.h"
11 #include "vm/object.h" 11 #include "vm/object.h"
12 #include "vm/zone.h" 12 #include "vm/zone.h"
13 13
14 namespace dart { 14 namespace dart {
15 15
16 class IrregexpInterpreter : public AllStatic { 16 class IrregexpInterpreter : public AllStatic {
17 public: 17 public:
18 enum IrregexpResult { 18 enum IrregexpResult {
19 RE_FAILURE = 0, 19 RE_FAILURE = 0,
20 RE_SUCCESS = 1, 20 RE_SUCCESS = 1,
21 RE_EXCEPTION = -1 21 RE_EXCEPTION = -1
22 }; 22 };
23 23
24 static IrregexpResult Match(const TypedData& bytecode, 24 static IrregexpResult Match(const TypedData& bytecode,
25 const String& subject, 25 const String& subject,
26 int32_t* captures, 26 int32_t* captures,
27 intptr_t start_position, 27 intptr_t start_position,
28 Zone* zone); 28 Zone* zone);
29 }; 29 };
30 30
31 } // namespace dart 31 } // namespace dart
32 32
33 #endif // VM_REGEXP_INTERPRETER_H_ 33 #endif // RUNTIME_VM_REGEXP_INTERPRETER_H_
OLDNEW
« no previous file with comments | « runtime/vm/regexp_bytecodes.h ('k') | runtime/vm/regexp_parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698