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

Unified Diff: packages/path/lib/src/style/posix.dart

Issue 2989763002: Update charted to 0.4.8 and roll (Closed)
Patch Set: Removed Cutch from list of reviewers Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « packages/path/lib/src/style.dart ('k') | packages/path/lib/src/style/url.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: packages/path/lib/src/style/posix.dart
diff --git a/packages/path/lib/src/style/posix.dart b/packages/path/lib/src/style/posix.dart
index 74aeb4c5381e2af897257934802caf34047ca499..5044d43706f2be3fc1c4a91b769969997126a223 100644
--- a/packages/path/lib/src/style/posix.dart
+++ b/packages/path/lib/src/style/posix.dart
@@ -2,8 +2,6 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-library path.style.posix;
-
import '../characters.dart' as chars;
import '../parsed_path.dart';
import '../internal_style.dart';
@@ -30,7 +28,7 @@ class PosixStyle extends InternalStyle {
bool needsSeparator(String path) =>
path.isNotEmpty && !isSeparator(path.codeUnitAt(path.length - 1));
- int rootLength(String path) {
+ int rootLength(String path, {bool withDrive: false}) {
if (path.isNotEmpty && isSeparator(path.codeUnitAt(0))) return 1;
return 0;
}
« no previous file with comments | « packages/path/lib/src/style.dart ('k') | packages/path/lib/src/style/url.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698