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

Side by Side Diff: lib/core/regexp.dart

Issue 11266050: Rename regexp methods to getters. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebase and update status files with co19 issue number. Created 8 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 | Annotate | Revision Log
« no previous file with comments | « lib/compiler/implementation/lib/string_helper.dart ('k') | pkg/dartdoc/lib/mirrors.dart » ('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) 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 /** 5 /**
6 * [Match] contains methods to manipulate a regular expression match. 6 * [Match] contains methods to manipulate a regular expression match.
7 * 7 *
8 * Iterables of [Match] objects are returned from [RegExp] matching methods. 8 * Iterables of [Match] objects are returned from [RegExp] matching methods.
9 * 9 *
10 * The following example finds all matches of a [RegExp] in a [String] 10 * The following example finds all matches of a [RegExp] in a [String]
(...skipping 10 matching lines...) Expand all
21 * The output of the example is: 21 * The output of the example is:
22 * 22 *
23 * Parse 23 * Parse
24 * my 24 * my
25 * string 25 * string
26 */ 26 */
27 abstract class Match { 27 abstract class Match {
28 /** 28 /**
29 * Returns the index in the string where the match starts. 29 * Returns the index in the string where the match starts.
30 */ 30 */
31 int start(); 31 int get start;
32 32
33 /** 33 /**
34 * Returns the index in the string after the last character of the 34 * Returns the index in the string after the last character of the
35 * match. 35 * match.
36 */ 36 */
37 int end(); 37 int get end;
38 38
39 /** 39 /**
40 * Returns the string matched by the given [group]. If [group] is 0, 40 * Returns the string matched by the given [group]. If [group] is 0,
41 * returns the match of the regular expression. 41 * returns the match of the regular expression.
42 */ 42 */
43 String group(int group); 43 String group(int group);
44 String operator [](int group); 44 String operator [](int group);
45 45
46 /** 46 /**
47 * Returns the strings matched by [groups]. The order in the 47 * Returns the strings matched by [groups]. The order in the
48 * returned string follows the order in [groups]. 48 * returned string follows the order in [groups].
49 */ 49 */
50 List<String> groups(List<int> groups); 50 List<String> groups(List<int> groups);
51 51
52 /** 52 /**
53 * Returns the number of groups in the regular expression. 53 * Returns the number of groups in the regular expression.
54 */ 54 */
55 int groupCount(); 55 int get groupCount;
56 56
57 /** 57 /**
58 * The string on which this matcher was computed. 58 * The string on which this matcher was computed.
59 */ 59 */
60 String get str; 60 String get str;
61 61
62 /** 62 /**
63 * The pattern to search for in [str]. 63 * The pattern to search for in [str].
64 */ 64 */
65 Pattern get pattern; 65 Pattern get pattern;
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 /** 127 /**
128 * Whether this regular expression matches multiple lines. 128 * Whether this regular expression matches multiple lines.
129 */ 129 */
130 bool get multiLine; 130 bool get multiLine;
131 131
132 /** 132 /**
133 * Whether this regular expression is case insensitive. 133 * Whether this regular expression is case insensitive.
134 */ 134 */
135 bool get ignoreCase; 135 bool get ignoreCase;
136 } 136 }
OLDNEW
« no previous file with comments | « lib/compiler/implementation/lib/string_helper.dart ('k') | pkg/dartdoc/lib/mirrors.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698