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

Side by Side Diff: utils/pub/utils.dart

Issue 9950005: First check in for pub package manager. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Respond to review. Created 8 years, 8 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
(Empty)
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
3 // BSD-style license that can be found in the LICENSE file.
4
5 /**
6 * Generic utility functions. Stuff that should possibly be in core.
7 */
8 #library('pub_utils');
9
10 // TODO(rnystrom): Move into String?
11 /** Pads [source] to [length] by adding spaces at the end. */
12 String padRight(String source, int length) {
13 final result = new StringBuffer();
14 result.add(source);
15
16 while (result.length < length) {
17 result.add(' ');
18 }
19
20 return result.toString();
21 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698