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

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

Issue 23522037: one-liners for the remaining top-50 dart:core classes (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: incorporate memfeedback Created 7 years, 3 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 | Annotate | Revision Log
« sdk/lib/core/set.dart ('K') | « sdk/lib/core/set.dart ('k') | no next file » | 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 parsed URI, as specified by RFC-3986, http://tools.ietf.org/html/rfc3986. 8 * A parsed URI, such as a URL.
9 *
10 * **See also:**
11 *
12 * * [URIs][uris] in the [library tour][libtour]
13 * * [RFC-3986](http://tools.ietf.org/html/rfc3986)
14 *
15 * [uris]: http://www.dartlang.org/docs/dart-up-and-running/contents/ch03.html#c h03-uri
16 * [libtour]: http://www.dartlang.org/docs/dart-up-and-running/contents/ch03.htm l
9 */ 17 */
10 class Uri { 18 class Uri {
11 final String _host; 19 final String _host;
12 int _port; 20 int _port;
13 String _path; 21 String _path;
14 22
15 /** 23 /**
16 * Returns the scheme component. 24 * Returns the scheme component.
17 * 25 *
18 * Returns the empty string if there is no scheme component. 26 * Returns the empty string if there is no scheme component.
(...skipping 1636 matching lines...) Expand 10 before | Expand all | Expand 10 after
1655 void clear() { 1663 void clear() {
1656 throw new UnsupportedError("Cannot modify an unmodifiable map"); 1664 throw new UnsupportedError("Cannot modify an unmodifiable map");
1657 } 1665 }
1658 void forEach(void f(K key, V value)) => _map.forEach(f); 1666 void forEach(void f(K key, V value)) => _map.forEach(f);
1659 Iterable<K> get keys => _map.keys; 1667 Iterable<K> get keys => _map.keys;
1660 Iterable<V> get values => _map.values; 1668 Iterable<V> get values => _map.values;
1661 int get length => _map.length; 1669 int get length => _map.length;
1662 bool get isEmpty => _map.isEmpty; 1670 bool get isEmpty => _map.isEmpty;
1663 bool get isNotEmpty => _map.isNotEmpty; 1671 bool get isNotEmpty => _map.isNotEmpty;
1664 } 1672 }
OLDNEW
« sdk/lib/core/set.dart ('K') | « sdk/lib/core/set.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698