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