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

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

Issue 11312144: Allow function as replacement argument to String.replaceAll. (Closed) Base URL: https://dart.googlecode.com/svn/experimental/lib_v2/dart
Patch Set: 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
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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 * Returns the number of groups in the regular expression. 53 * Returns the number of groups in the regular expression.
54 */ 54 */
55 int get 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 used to search in [str].
64 */ 64 */
65 Pattern get pattern; 65 Pattern get pattern;
66 } 66 }
67 67
68 68
69 /** 69 /**
70 * [RegExp] represents regular expressions. 70 * [RegExp] represents regular expressions.
71 * 71 *
72 * Dart regular expressions have the same syntax and semantics as 72 * Dart regular expressions have the same syntax and semantics as
73 * JavaScript regular expressions. See 73 * JavaScript regular expressions. See
(...skipping 53 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 | « sdk/lib/_internal/compiler/implementation/lib/string_helper.dart ('k') | sdk/lib/core/string.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698