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.parsed_path; | 5 library path.parsed_path; |
6 | 6 |
7 import 'internal_style.dart'; | 7 import 'internal_style.dart'; |
8 import 'style.dart'; | 8 import 'style.dart'; |
9 | 9 |
10 class ParsedPath { | 10 class ParsedPath { |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 // If there is no dot, or it's the first character, like '.bashrc', it | 174 // If there is no dot, or it's the first character, like '.bashrc', it |
175 // doesn't count. | 175 // doesn't count. |
176 if (lastDot <= 0) return [file, '']; | 176 if (lastDot <= 0) return [file, '']; |
177 | 177 |
178 return [file.substring(0, lastDot), file.substring(lastDot)]; | 178 return [file.substring(0, lastDot), file.substring(lastDot)]; |
179 } | 179 } |
180 | 180 |
181 ParsedPath clone() => new ParsedPath._(style, root, isRootRelative, | 181 ParsedPath clone() => new ParsedPath._(style, root, isRootRelative, |
182 new List.from(parts), new List.from(separators)); | 182 new List.from(parts), new List.from(separators)); |
183 } | 183 } |
OLD | NEW |