Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(96)

Side by Side Diff: tool/input_sdk/lib/core/uri.dart

Issue 1112403004: SDK fixes (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Formatting fix Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 926 matching lines...) Expand 10 before | Expand all | Expand 10 after
937 * The returned list is unmodifiable and will throw [UnsupportedError] on any 937 * The returned list is unmodifiable and will throw [UnsupportedError] on any
938 * calls that would mutate it. 938 * calls that would mutate it.
939 */ 939 */
940 List<String> get pathSegments { 940 List<String> get pathSegments {
941 if (_pathSegments == null) { 941 if (_pathSegments == null) {
942 var pathToSplit = !path.isEmpty && path.codeUnitAt(0) == _SLASH 942 var pathToSplit = !path.isEmpty && path.codeUnitAt(0) == _SLASH
943 ? path.substring(1) 943 ? path.substring(1)
944 : path; 944 : path;
945 _pathSegments = new UnmodifiableListView( 945 _pathSegments = new UnmodifiableListView(
946 pathToSplit == "" ? const<String>[] 946 pathToSplit == "" ? const<String>[]
947 : pathToSplit.split("/") 947 : new List<String>.from(
948 .map(Uri.decodeComponent) 948 pathToSplit.split("/")
949 .toList(growable: false)); 949 .map(Uri.decodeComponent),
950 growable: false));
950 } 951 }
951 return _pathSegments; 952 return _pathSegments;
952 } 953 }
953 954
954 /** 955 /**
955 * Returns the URI query split into a map according to the rules 956 * Returns the URI query split into a map according to the rules
956 * specified for FORM post in the [HTML 4.01 specification section 17.13.4] 957 * specified for FORM post in the [HTML 4.01 specification section 17.13.4]
957 * (http://www.w3.org/TR/REC-html40/interact/forms.html#h-17.13.4 958 * (http://www.w3.org/TR/REC-html40/interact/forms.html#h-17.13.4
958 * "HTML 4.01 section 17.13.4"). Each key and value in the returned map 959 * "HTML 4.01 section 17.13.4"). Each key and value in the returned map
959 * has been decoded. If there is no query the empty map is returned. 960 * 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
2398 0xafff, // 0x30 - 0x3f 1111111111110101 2399 0xafff, // 0x30 - 0x3f 1111111111110101
2399 // @ABCDEFGHIJKLMNO 2400 // @ABCDEFGHIJKLMNO
2400 0xffff, // 0x40 - 0x4f 1111111111111111 2401 0xffff, // 0x40 - 0x4f 1111111111111111
2401 // PQRSTUVWXYZ _ 2402 // PQRSTUVWXYZ _
2402 0x87ff, // 0x50 - 0x5f 1111111111100001 2403 0x87ff, // 0x50 - 0x5f 1111111111100001
2403 // abcdefghijklmno 2404 // abcdefghijklmno
2404 0xfffe, // 0x60 - 0x6f 0111111111111111 2405 0xfffe, // 0x60 - 0x6f 0111111111111111
2405 // pqrstuvwxyz ~ 2406 // pqrstuvwxyz ~
2406 0x47ff]; // 0x70 - 0x7f 1111111111100010 2407 0x47ff]; // 0x70 - 0x7f 1111111111100010
2407 } 2408 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698