| OLD | NEW |
| 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 /** | 5 /** |
| 6 * A parsed URI, inspired by: | 6 * A parsed URI, inspired by: |
| 7 * http://closure-library.googlecode.com/svn/docs/class_goog_Uri.html | 7 * http://closure-library.googlecode.com/svn/docs/class_goog_Uri.html |
| 8 */ | 8 */ |
| 9 class Uri extends uri.Uri { | 9 class Uri extends uri.Uri { |
| 10 /** | 10 /** |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 if (component == null) return component; | 66 if (component == null) return component; |
| 67 | 67 |
| 68 return component.replaceAll('%3A', ':') | 68 return component.replaceAll('%3A', ':') |
| 69 .replaceAll('%2F', '/') | 69 .replaceAll('%2F', '/') |
| 70 .replaceAll('%3F', '?') | 70 .replaceAll('%3F', '?') |
| 71 .replaceAll('%3D', '=') | 71 .replaceAll('%3D', '=') |
| 72 .replaceAll('%26', '&') | 72 .replaceAll('%26', '&') |
| 73 .replaceAll('%20', ' '); | 73 .replaceAll('%20', ' '); |
| 74 } | 74 } |
| 75 | 75 |
| 76 Uri.fromString(String uri) : super.fromString(uri); | 76 Uri.fromString(String uriString) : super.fromString(uriString); |
| 77 } | 77 } |
| OLD | NEW |