| 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 929 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 940 * | 940 * |
| 941 * The returned list is unmodifiable and will throw [UnsupportedError] on any | 941 * The returned list is unmodifiable and will throw [UnsupportedError] on any |
| 942 * calls that would mutate it. | 942 * calls that would mutate it. |
| 943 */ | 943 */ |
| 944 List<String> get pathSegments { | 944 List<String> get pathSegments { |
| 945 if (_pathSegments == null) { | 945 if (_pathSegments == null) { |
| 946 var pathToSplit = !path.isEmpty && path.codeUnitAt(0) == _SLASH | 946 var pathToSplit = !path.isEmpty && path.codeUnitAt(0) == _SLASH |
| 947 ? path.substring(1) | 947 ? path.substring(1) |
| 948 : path; | 948 : path; |
| 949 _pathSegments = new UnmodifiableListView( | 949 _pathSegments = new UnmodifiableListView( |
| 950 pathToSplit == "" ? const<String>[] | 950 pathToSplit == "" ? const<String>[] |
| 951 : pathToSplit.split("/") | 951 : new List<String>.from(pathToSplit.split("/") |
| 952 .map(Uri.decodeComponent) | 952 .map(Uri.decodeComponent), |
| 953 .toList(growable: false)); | 953 growable: false)); |
| 954 } | 954 } |
| 955 return _pathSegments; | 955 return _pathSegments; |
| 956 } | 956 } |
| 957 | 957 |
| 958 /** | 958 /** |
| 959 * Returns the URI query split into a map according to the rules | 959 * Returns the URI query split into a map according to the rules |
| 960 * specified for FORM post in the [HTML 4.01 specification section 17.13.4] | 960 * specified for FORM post in the [HTML 4.01 specification section 17.13.4] |
| 961 * (http://www.w3.org/TR/REC-html40/interact/forms.html#h-17.13.4 | 961 * (http://www.w3.org/TR/REC-html40/interact/forms.html#h-17.13.4 |
| 962 * "HTML 4.01 section 17.13.4"). Each key and value in the returned map | 962 * "HTML 4.01 section 17.13.4"). Each key and value in the returned map |
| 963 * has been decoded. If there is no query the empty map is returned. | 963 * has been decoded. If there is no query the empty map is returned. |
| (...skipping 1438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2402 0xafff, // 0x30 - 0x3f 1111111111110101 | 2402 0xafff, // 0x30 - 0x3f 1111111111110101 |
| 2403 // @ABCDEFGHIJKLMNO | 2403 // @ABCDEFGHIJKLMNO |
| 2404 0xffff, // 0x40 - 0x4f 1111111111111111 | 2404 0xffff, // 0x40 - 0x4f 1111111111111111 |
| 2405 // PQRSTUVWXYZ _ | 2405 // PQRSTUVWXYZ _ |
| 2406 0x87ff, // 0x50 - 0x5f 1111111111100001 | 2406 0x87ff, // 0x50 - 0x5f 1111111111100001 |
| 2407 // abcdefghijklmno | 2407 // abcdefghijklmno |
| 2408 0xfffe, // 0x60 - 0x6f 0111111111111111 | 2408 0xfffe, // 0x60 - 0x6f 0111111111111111 |
| 2409 // pqrstuvwxyz ~ | 2409 // pqrstuvwxyz ~ |
| 2410 0x47ff]; // 0x70 - 0x7f 1111111111100010 | 2410 0x47ff]; // 0x70 - 0x7f 1111111111100010 |
| 2411 } | 2411 } |
| OLD | NEW |