OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 library path.style; | |
6 | |
7 import 'context.dart'; | 5 import 'context.dart'; |
8 import 'style/posix.dart'; | 6 import 'style/posix.dart'; |
9 import 'style/url.dart'; | 7 import 'style/url.dart'; |
10 import 'style/windows.dart'; | 8 import 'style/windows.dart'; |
11 | 9 |
12 /// An enum type describing a "flavor" of path. | 10 /// An enum type describing a "flavor" of path. |
13 abstract class Style { | 11 abstract class Style { |
14 /// POSIX-style paths use "/" (forward slash) as separators. Absolute paths | 12 /// POSIX-style paths use "/" (forward slash) as separators. Absolute paths |
15 /// start with "/". Used by UNIX, Linux, Mac OS X, and others. | 13 /// start with "/". Used by UNIX, Linux, Mac OS X, and others. |
16 static final Style posix = new PosixStyle(); | 14 static final Style posix = new PosixStyle(); |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 String pathFromUri(Uri uri); | 77 String pathFromUri(Uri uri); |
80 | 78 |
81 @Deprecated("Most style members will be removed in path 2.0.") | 79 @Deprecated("Most style members will be removed in path 2.0.") |
82 Uri relativePathToUri(String path); | 80 Uri relativePathToUri(String path); |
83 | 81 |
84 @Deprecated("Most style members will be removed in path 2.0.") | 82 @Deprecated("Most style members will be removed in path 2.0.") |
85 Uri absolutePathToUri(String path); | 83 Uri absolutePathToUri(String path); |
86 | 84 |
87 String toString() => name; | 85 String toString() => name; |
88 } | 86 } |
OLD | NEW |