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 dart.core; | 5 part of dart.core; |
6 | 6 |
7 /** | 7 /** |
8 * A parsed URI, such as a URL. | 8 * A parsed URI, such as a URL. |
9 * | 9 * |
10 * **See also:** | 10 * **See also:** |
(...skipping 3180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3191 if (isBase64) { | 3191 if (isBase64) { |
3192 var converter = BASE64.decoder.fuse(encoding.decoder); | 3192 var converter = BASE64.decoder.fuse(encoding.decoder); |
3193 return converter.convert(text.substring(start)); | 3193 return converter.convert(text.substring(start)); |
3194 } | 3194 } |
3195 return Uri._uriDecode(text, start, text.length, encoding, false); | 3195 return Uri._uriDecode(text, start, text.length, encoding, false); |
3196 } | 3196 } |
3197 | 3197 |
3198 /** | 3198 /** |
3199 * A map representing the parameters of the media type. | 3199 * A map representing the parameters of the media type. |
3200 * | 3200 * |
3201 * A data URI may contain parameters between the the MIME type and the | 3201 * A data URI may contain parameters between the MIME type and the |
3202 * data. This converts these parameters to a map from parameter name | 3202 * data. This converts these parameters to a map from parameter name |
3203 * to parameter value. | 3203 * to parameter value. |
3204 * The map only contains parameters that actually occur in the URI. | 3204 * The map only contains parameters that actually occur in the URI. |
3205 * The `charset` parameter has a default value even if it doesn't occur | 3205 * The `charset` parameter has a default value even if it doesn't occur |
3206 * in the URI, which is reflected by the [charset] getter. This means that | 3206 * in the URI, which is reflected by the [charset] getter. This means that |
3207 * [charset] may return a value even if `parameters["charset"]` is `null`. | 3207 * [charset] may return a value even if `parameters["charset"]` is `null`. |
3208 * | 3208 * |
3209 * If the values contain non-ASCII values or percent escapes, they default | 3209 * If the values contain non-ASCII values or percent escapes, they default |
3210 * to being decoded as UTF-8. | 3210 * to being decoded as UTF-8. |
3211 */ | 3211 */ |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3345 // All non-escape RFC-2396 uric characters. | 3345 // All non-escape RFC-2396 uric characters. |
3346 // | 3346 // |
3347 // uric = reserved | unreserved | escaped | 3347 // uric = reserved | unreserved | escaped |
3348 // reserved = ";" | "/" | "?" | ":" | "@" | "&" | "=" | "+" | "$" | "," | 3348 // reserved = ";" | "/" | "?" | ":" | "@" | "&" | "=" | "+" | "$" | "," |
3349 // unreserved = alphanum | mark | 3349 // unreserved = alphanum | mark |
3350 // mark = "-" | "_" | "." | "!" | "~" | "*" | "'" | "(" | ")" | 3350 // mark = "-" | "_" | "." | "!" | "~" | "*" | "'" | "(" | ")" |
3351 // | 3351 // |
3352 // This is the same characters as in a URI query (which is URI pchar plus '?') | 3352 // This is the same characters as in a URI query (which is URI pchar plus '?') |
3353 static const _uricTable = Uri._queryCharTable; | 3353 static const _uricTable = Uri._queryCharTable; |
3354 } | 3354 } |
OLD | NEW |