| 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.io; | |
| 6 | |
| 7 /** | 5 /** |
| 8 * A Path, which is a String interpreted as a sequence of path segments, | 6 * A Path, which is a String interpreted as a sequence of path segments, |
| 9 * which are strings, separated by forward slashes. | 7 * which are strings, separated by forward slashes. |
| 10 * Paths are immutable wrappers of a String, that offer member functions for | 8 * Paths are immutable wrappers of a String, that offer member functions for |
| 11 * useful path manipulations and queries. Joining of paths and normalization | 9 * useful path manipulations and queries. Joining of paths and normalization |
| 12 * interpret '.' and '..' in the usual way. | 10 * interpret '.' and '..' in the usual way. |
| 13 */ | 11 */ |
| 14 abstract class Path { | 12 abstract class Path { |
| 15 /** | 13 /** |
| 16 * Creates a Path from the String [source]. [source] is used as-is, so if | 14 * Creates a Path from the String [source]. [source] is used as-is, so if |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 | 186 |
| 189 /** | 187 /** |
| 190 * The part of [filename] after the last '.', or '' if [filename] | 188 * The part of [filename] after the last '.', or '' if [filename] |
| 191 * contains no '.'. If [filename] is '.' or '..', returns ''. | 189 * contains no '.'. If [filename] is '.' or '..', returns ''. |
| 192 * | 190 * |
| 193 * new Path('tiger.svg').extension == 'svg' | 191 * new Path('tiger.svg').extension == 'svg' |
| 194 * new Path('/src/dart/dart_secrets').extension == '' | 192 * new Path('/src/dart/dart_secrets').extension == '' |
| 195 */ | 193 */ |
| 196 String get extension; | 194 String get extension; |
| 197 } | 195 } |
| OLD | NEW |