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

Side by Side Diff: samples/swarm/swarm_ui_lib/util/Uri.dart

Issue 14753005: Enable parsing of IPv6 form addresse (see rfc2373 and rfc2732). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix tets. Created 7 years, 7 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 | « pkg/stack_trace/test/trace_test.dart ('k') | sdk/lib/io/http.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 utilslib; 5 part of utilslib;
6 6
7 /** 7 /**
8 * A parsed URI, inspired by: 8 * A parsed URI, inspired by:
9 * http://closure-library.googlecode.com/svn/docs/class_goog_Uri.html 9 * http://closure-library.googlecode.com/svn/docs/class_goog_Uri.html
10 */ 10 */
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 static String decodeComponent(String component) { 67 static String decodeComponent(String component) {
68 if (component == null) return component; 68 if (component == null) return component;
69 69
70 return component.replaceAll('%3A', ':') 70 return component.replaceAll('%3A', ':')
71 .replaceAll('%2F', '/') 71 .replaceAll('%2F', '/')
72 .replaceAll('%3F', '?') 72 .replaceAll('%3F', '?')
73 .replaceAll('%3D', '=') 73 .replaceAll('%3D', '=')
74 .replaceAll('%26', '&') 74 .replaceAll('%26', '&')
75 .replaceAll('%20', ' '); 75 .replaceAll('%20', ' ');
76 } 76 }
77
78 Uri.fromString(String uriString) : super.fromString(uriString);
79 } 77 }
OLDNEW
« no previous file with comments | « pkg/stack_trace/test/trace_test.dart ('k') | sdk/lib/io/http.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698