OLD | NEW |
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 part of "dart:core"; | 5 part of dart.core; |
6 | 6 |
7 /** | 7 /** |
8 * An interface for basic searches within strings. | 8 * An interface for basic searches within strings. |
9 */ | 9 */ |
10 abstract class Pattern { | 10 abstract class Pattern { |
11 // NOTE: When using "start" index from the language library, call | 11 // NOTE: When using "start" index from the language library, call |
12 // without an argument if start is zero. This allows backwards compatibility | 12 // without an argument if start is zero. This allows backwards compatibility |
13 // with implementations of the older interface that didn't have the start | 13 // with implementations of the older interface that didn't have the start |
14 // index argument. | 14 // index argument. |
15 /** | 15 /** |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 /** | 122 /** |
123 * The string on which this match was computed. | 123 * The string on which this match was computed. |
124 */ | 124 */ |
125 String get input; | 125 String get input; |
126 | 126 |
127 /** | 127 /** |
128 * The pattern used to search in [input]. | 128 * The pattern used to search in [input]. |
129 */ | 129 */ |
130 Pattern get pattern; | 130 Pattern get pattern; |
131 } | 131 } |
OLD | NEW |