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

Side by Side Diff: sdk/lib/core/uri.dart

Issue 1083393004: Add uri getter on file system entity. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | sdk/lib/io/directory.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 686 matching lines...) Expand 10 before | Expand all | Expand 10 after
697 * // This throws an error. A path with a drive letter is not absolute. 697 * // This throws an error. A path with a drive letter is not absolute.
698 * new Uri.file(r"C:xxx\yyy", windows: true); 698 * new Uri.file(r"C:xxx\yyy", windows: true);
699 * 699 *
700 * // file://server/share/file 700 * // file://server/share/file
701 * new Uri.file(r"\\server\share\file", windows: true); 701 * new Uri.file(r"\\server\share\file", windows: true);
702 * ``` 702 * ```
703 * 703 *
704 * If the path passed is not a legal file path [ArgumentError] is thrown. 704 * If the path passed is not a legal file path [ArgumentError] is thrown.
705 */ 705 */
706 factory Uri.file(String path, {bool windows}) { 706 factory Uri.file(String path, {bool windows}) {
707 windows = windows == null ? Uri._isWindows : windows; 707 windows = (windows == null) ? Uri._isWindows : windows;
708 return windows ? _makeWindowsFileUrl(path) : _makeFileUri(path); 708 return windows ? _makeWindowsFileUrl(path) : _makeFileUri(path);
709 } 709 }
710 710
711 /** 711 /**
712 * Returns the natural base URI for the current platform. 712 * Returns the natural base URI for the current platform.
713 * 713 *
714 * When running in a browser this is the current URL (from 714 * When running in a browser this is the current URL (from
715 * `window.location.href`). 715 * `window.location.href`).
716 * 716 *
717 * When not running in a browser this is the file URI referencing 717 * When not running in a browser this is the file URI referencing
(...skipping 1709 matching lines...) Expand 10 before | Expand all | Expand 10 after
2427 0xafff, // 0x30 - 0x3f 1111111111110101 2427 0xafff, // 0x30 - 0x3f 1111111111110101
2428 // @ABCDEFGHIJKLMNO 2428 // @ABCDEFGHIJKLMNO
2429 0xffff, // 0x40 - 0x4f 1111111111111111 2429 0xffff, // 0x40 - 0x4f 1111111111111111
2430 // PQRSTUVWXYZ _ 2430 // PQRSTUVWXYZ _
2431 0x87ff, // 0x50 - 0x5f 1111111111100001 2431 0x87ff, // 0x50 - 0x5f 1111111111100001
2432 // abcdefghijklmno 2432 // abcdefghijklmno
2433 0xfffe, // 0x60 - 0x6f 0111111111111111 2433 0xfffe, // 0x60 - 0x6f 0111111111111111
2434 // pqrstuvwxyz ~ 2434 // pqrstuvwxyz ~
2435 0x47ff]; // 0x70 - 0x7f 1111111111100010 2435 0x47ff]; // 0x70 - 0x7f 1111111111100010
2436 } 2436 }
OLDNEW
« no previous file with comments | « no previous file | sdk/lib/io/directory.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698