OLD | NEW |
1 part of utilslib; | |
2 | |
3 // 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 |
4 // 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 |
5 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
6 | 4 |
7 /** | 5 /** |
8 * A parsed URI, inspired by: | 6 * A parsed URI, inspired by: |
9 * http://closure-library.googlecode.com/svn/docs/class_goog_Uri.html | 7 * http://closure-library.googlecode.com/svn/docs/class_goog_Uri.html |
10 */ | 8 */ |
11 class Uri extends uri.Uri { | 9 class Uri extends uri.Uri { |
12 /** | 10 /** |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 return component.replaceAll('%3A', ':') | 68 return component.replaceAll('%3A', ':') |
71 .replaceAll('%2F', '/') | 69 .replaceAll('%2F', '/') |
72 .replaceAll('%3F', '?') | 70 .replaceAll('%3F', '?') |
73 .replaceAll('%3D', '=') | 71 .replaceAll('%3D', '=') |
74 .replaceAll('%26', '&') | 72 .replaceAll('%26', '&') |
75 .replaceAll('%20', ' '); | 73 .replaceAll('%20', ' '); |
76 } | 74 } |
77 | 75 |
78 Uri.fromString(String uriString) : super.fromString(uriString); | 76 Uri.fromString(String uriString) : super.fromString(uriString); |
79 } | 77 } |
OLD | NEW |