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

Side by Side Diff: pkg/path/lib/path.dart

Issue 18356011: Rename "pathos" package to "path". (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 5 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
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 /// A comprehensive, cross-platform path manipulation library. 5 /// A comprehensive, cross-platform path manipulation library.
6 /// 6 ///
7 /// ## Installing ## 7 /// ## Installing ##
8 /// 8 ///
9 /// Use [pub][] to install this package. Add the following to your 9 /// Use [pub][] to install this package. Add the following to your
10 /// `pubspec.yaml` file. 10 /// `pubspec.yaml` file.
11 /// 11 ///
12 /// dependencies: 12 /// dependencies:
13 /// pathos: any 13 /// path: any
14 /// 14 ///
15 /// Then run `pub install`. 15 /// Then run `pub install`.
16 /// 16 ///
17 /// For more information, see the 17 /// For more information, see the [path package on pub.dartlang.org][pkg].
18 /// [pathos package on pub.dartlang.org][pkg].
19 /// 18 ///
20 /// [pub]: http://pub.dartlang.org 19 /// [pub]: http://pub.dartlang.org
21 /// [pkg]: http://pub.dartlang.org/packages/pathos 20 /// [pkg]: http://pub.dartlang.org/packages/path
22 library path; 21 library path;
23 22
24 import 'dart:mirrors'; 23 import 'dart:mirrors';
25 24
26 /// An internal builder for the current OS so we can provide a straight 25 /// An internal builder for the current OS so we can provide a straight
27 /// functional interface and not require users to create one. 26 /// functional interface and not require users to create one.
28 final _builder = new Builder(); 27 final _builder = new Builder();
29 28
30 /** 29 /**
31 * Inserts [length] elements in front of the [list] and fills them with the 30 * Inserts [length] elements in front of the [list] and fills them with the
(...skipping 1100 matching lines...) Expand 10 before | Expand all | Expand 10 after
1132 // doesn't count. 1131 // doesn't count.
1133 if (lastDot <= 0) return [file, '']; 1132 if (lastDot <= 0) return [file, ''];
1134 1133
1135 return [file.substring(0, lastDot), file.substring(lastDot)]; 1134 return [file.substring(0, lastDot), file.substring(lastDot)];
1136 } 1135 }
1137 1136
1138 _ParsedPath clone() => new _ParsedPath( 1137 _ParsedPath clone() => new _ParsedPath(
1139 style, root, isRootRelative, 1138 style, root, isRootRelative,
1140 new List.from(parts), new List.from(separators)); 1139 new List.from(parts), new List.from(separators));
1141 } 1140 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698