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 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 Loading... |
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 } |
OLD | NEW |