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 868 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
879 } | 879 } |
880 bool isFile = (scheme == "file"); | 880 bool isFile = (scheme == "file"); |
881 if (userInfo != null) { | 881 if (userInfo != null) { |
882 userInfo = _makeUserInfo(userInfo, 0, userInfo.length); | 882 userInfo = _makeUserInfo(userInfo, 0, userInfo.length); |
883 } else { | 883 } else { |
884 userInfo = this.userInfo; | 884 userInfo = this.userInfo; |
885 } | 885 } |
886 if (port != null) { | 886 if (port != null) { |
887 port = _makePort(port, scheme); | 887 port = _makePort(port, scheme); |
888 } else { | 888 } else { |
889 port = this.port; | 889 port = this._port; |
890 if (schemeChanged) { | 890 if (schemeChanged) { |
891 // The default port might have changed. | 891 // The default port might have changed. |
892 port = _makePort(port, scheme); | 892 port = _makePort(port, scheme); |
893 } | 893 } |
894 } | 894 } |
895 if (host != null) { | 895 if (host != null) { |
896 host = _makeHost(host, 0, host.length, false); | 896 host = _makeHost(host, 0, host.length, false); |
897 } else if (this.hasAuthority) { | 897 } else if (this.hasAuthority) { |
898 host = this.host; | 898 host = this.host; |
899 } else if (userInfo.isNotEmpty || port != null || isFile) { | 899 } else if (userInfo.isNotEmpty || port != null || isFile) { |
(...skipping 1468 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2368 0xafff, // 0x30 - 0x3f 1111111111110101 | 2368 0xafff, // 0x30 - 0x3f 1111111111110101 |
2369 // @ABCDEFGHIJKLMNO | 2369 // @ABCDEFGHIJKLMNO |
2370 0xffff, // 0x40 - 0x4f 1111111111111111 | 2370 0xffff, // 0x40 - 0x4f 1111111111111111 |
2371 // PQRSTUVWXYZ _ | 2371 // PQRSTUVWXYZ _ |
2372 0x87ff, // 0x50 - 0x5f 1111111111100001 | 2372 0x87ff, // 0x50 - 0x5f 1111111111100001 |
2373 // abcdefghijklmno | 2373 // abcdefghijklmno |
2374 0xfffe, // 0x60 - 0x6f 0111111111111111 | 2374 0xfffe, // 0x60 - 0x6f 0111111111111111 |
2375 // pqrstuvwxyz ~ | 2375 // pqrstuvwxyz ~ |
2376 0x47ff]; // 0x70 - 0x7f 1111111111100010 | 2376 0x47ff]; // 0x70 - 0x7f 1111111111100010 |
2377 } | 2377 } |
OLD | NEW |