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

Unified Diff: lib/core/num.dart

Issue 10937011: Bug cleanup: unify on allowing radices from 2 to 36 in (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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 | « no previous file | runtime/lib/integers.dart » ('j') | tests/corelib/integer_to_radix_string_test.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/core/num.dart
diff --git a/lib/core/num.dart b/lib/core/num.dart
index 2b3e263a8be8d79aef642efba47b5cc5cfd215ba..455661c365c2da84c4d7c300cdd6dd2ece768d29 100644
--- a/lib/core/num.dart
+++ b/lib/core/num.dart
@@ -1,4 +1,4 @@
-// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// 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.
@@ -40,5 +40,11 @@ abstract class num implements Comparable, Hashable {
abstract String toStringAsFixed(int fractionDigits);
abstract String toStringAsExponential(int fractionDigits);
abstract String toStringAsPrecision(int precision);
+
+ /**
+ * Converts the [num] to an [int] using [toInt] and then converts to
Lasse Reichstein Nielsen 2012/09/19 11:43:54 Could we make this comment start with a single-lin
Mads Ager (google) 2012/09/19 14:16:13 Yes, changed to have a one-liner followed by a lon
+ * a string representation with the given [radix]. Radix 2 to 36 are
+ * supported.
Lasse Reichstein Nielsen 2012/09/19 11:43:54 Either say that the radix must be in the supported
Mads Ager (google) 2012/09/19 14:16:13 Done.
+ */
Lasse Reichstein Nielsen 2012/09/19 11:43:54 Ok for now. I'm considering whether it really belo
Mads Ager (google) 2012/09/19 14:16:13 Yes, I agree. I think we should use it to int in a
abstract String toRadixString(int radix);
}
« no previous file with comments | « no previous file | runtime/lib/integers.dart » ('j') | tests/corelib/integer_to_radix_string_test.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698