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

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

Issue 24096011: Fix comment for Uri encodeComponent. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix status file too. 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
« no previous file with comments | « no previous file | tests/co19/co19-co19.status » ('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 parsed URI, as specified by RFC-3986, http://tools.ietf.org/html/rfc3986. 8 * A parsed URI, as specified by RFC-3986, http://tools.ietf.org/html/rfc3986.
9 */ 9 */
10 class Uri { 10 class Uri {
(...skipping 1038 matching lines...) Expand 10 before | Expand all | Expand 10 after
1049 sb.write(first); 1049 sb.write(first);
1050 sb.write(second); 1050 sb.write(second);
1051 } 1051 }
1052 } 1052 }
1053 1053
1054 /** 1054 /**
1055 * Encode the string [component] using percent-encoding to make it 1055 * Encode the string [component] using percent-encoding to make it
1056 * safe for literal use as a URI component. 1056 * safe for literal use as a URI component.
1057 * 1057 *
1058 * All characters except uppercase and lowercase letters, digits and 1058 * All characters except uppercase and lowercase letters, digits and
1059 * the characters `!$&'()*+,;=:@` are percent-encoded. This is the 1059 * the characters `-_.!~*'()` are percent-encoded. This is the
1060 * set of characters specified in RFC 2396 and the which is 1060 * set of characters specified in RFC 2396 and the which is
1061 * specified for the encodeUriComponent in ECMA-262 version 5.1. 1061 * specified for the encodeUriComponent in ECMA-262 version 5.1.
1062 * 1062 *
1063 * When manually encoding path segments or query components remember 1063 * When manually encoding path segments or query components remember
1064 * to encode each part separately before building the path or query 1064 * to encode each part separately before building the path or query
1065 * string. 1065 * string.
1066 * 1066 *
1067 * For encoding the query part consider using 1067 * For encoding the query part consider using
1068 * [encodeQueryComponent]. 1068 * [encodeQueryComponent].
1069 * 1069 *
(...skipping 565 matching lines...) Expand 10 before | Expand all | Expand 10 after
1635 void clear() { 1635 void clear() {
1636 throw new UnsupportedError("Cannot modify an unmodifiable map"); 1636 throw new UnsupportedError("Cannot modify an unmodifiable map");
1637 } 1637 }
1638 void forEach(void f(K key, V value)) => _map.forEach(f); 1638 void forEach(void f(K key, V value)) => _map.forEach(f);
1639 Iterable<K> get keys => _map.keys; 1639 Iterable<K> get keys => _map.keys;
1640 Iterable<V> get values => _map.values; 1640 Iterable<V> get values => _map.values;
1641 int get length => _map.length; 1641 int get length => _map.length;
1642 bool get isEmpty => _map.isEmpty; 1642 bool get isEmpty => _map.isEmpty;
1643 bool get isNotEmpty => _map.isNotEmpty; 1643 bool get isNotEmpty => _map.isNotEmpty;
1644 } 1644 }
OLDNEW
« no previous file with comments | « no previous file | tests/co19/co19-co19.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698