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

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

Issue 2754013002: Format all dart: library files (Closed)
Patch Set: Format all dart: library files Created 3 years, 9 months 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 | « sdk/lib/core/pattern.dart ('k') | sdk/lib/core/stacktrace.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 part of dart.core; 5 part of dart.core;
6 6
7 /** 7 /**
8 * A regular expression pattern. 8 * A regular expression pattern.
9 * 9 *
10 * Regular expressions are [Pattern]s, and can as such be used to match strings 10 * Regular expressions are [Pattern]s, and can as such be used to match strings
(...skipping 22 matching lines...) Expand all
33 * in the example above. Use a raw string to treat each character in a string 33 * in the example above. Use a raw string to treat each character in a string
34 * as a literal character. 34 * as a literal character.
35 */ 35 */
36 abstract class RegExp implements Pattern { 36 abstract class RegExp implements Pattern {
37 /** 37 /**
38 * Constructs a regular expression. 38 * Constructs a regular expression.
39 * 39 *
40 * Throws a [FormatException] if [source] is not valid regular 40 * Throws a [FormatException] if [source] is not valid regular
41 * expression syntax. 41 * expression syntax.
42 */ 42 */
43 external factory RegExp(String source, {bool multiLine: false, 43 external factory RegExp(String source,
44 bool caseSensitive: true}); 44 {bool multiLine: false, bool caseSensitive: true});
45 45
46 /** 46 /**
47 * Searches for the first match of the regular expression 47 * Searches for the first match of the regular expression
48 * in the string [input]. Returns `null` if there is no match. 48 * in the string [input]. Returns `null` if there is no match.
49 */ 49 */
50 Match firstMatch(String input); 50 Match firstMatch(String input);
51 51
52 /** 52 /**
53 * Returns an iterable of the matches of the regular expression on [input]. 53 * Returns an iterable of the matches of the regular expression on [input].
54 * 54 *
(...skipping 27 matching lines...) Expand all
82 82
83 /** 83 /**
84 * Whether this regular expression is case sensitive. 84 * Whether this regular expression is case sensitive.
85 * 85 *
86 * If the regular expression is not case sensitive, it will match an input 86 * If the regular expression is not case sensitive, it will match an input
87 * letter with a pattern letter even if the two letters are different case 87 * letter with a pattern letter even if the two letters are different case
88 * versions of the same letter. 88 * versions of the same letter.
89 */ 89 */
90 bool get isCaseSensitive; 90 bool get isCaseSensitive;
91 } 91 }
OLDNEW
« no previous file with comments | « sdk/lib/core/pattern.dart ('k') | sdk/lib/core/stacktrace.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698