OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 class JSSyntaxRegExp implements RegExp { | 5 class JSSyntaxRegExp implements RegExp { |
6 external JSSyntaxRegExp(String pattern, | 6 external const JSSyntaxRegExp(String pattern, |
7 {bool multiLine: false, | 7 {bool multiLine: false, |
8 bool ignoreCase: false}); | 8 bool ignoreCase: false}); |
9 external Match firstMatch(String str); | 9 external Match firstMatch(String str); |
10 external Iterable<Match> allMatches(String str); | 10 external Iterable<Match> allMatches(String str); |
11 external bool hasMatch(String str); | 11 external bool hasMatch(String str); |
12 external String stringMatch(String str); | 12 external String stringMatch(String str); |
13 external String get pattern; | 13 external String get pattern; |
14 external bool get multiLine; | 14 external bool get multiLine; |
15 external bool get ignoreCase; | 15 external bool get ignoreCase; |
16 } | 16 } |
OLD | NEW |