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

Unified Diff: sdk/lib/core/int.dart

Issue 50983002: Implement fromEnvironment on bool, int and String (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed comments Created 7 years, 2 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
Index: sdk/lib/core/int.dart
diff --git a/sdk/lib/core/int.dart b/sdk/lib/core/int.dart
index a5235bbd66b878001f36a7bf52fcdd6e277e4194..1c17a317b39002935fe4c7d65be09445ce2309d4 100644
--- a/sdk/lib/core/int.dart
+++ b/sdk/lib/core/int.dart
@@ -252,4 +252,12 @@ abstract class int extends num {
external static int parse(String source,
{ int radix,
int onError(String source) });
+
+ /**
Lasse Reichstein Nielsen 2013/10/31 06:55:38 Comments need reformatting. I'll look at it today.
+ * Returns the integer value for the given environment variable
+ * [name] or [defaultValue] if [name] is not present. If the value
+ * of the environment variable is not a valid integer literal a
+ * [FormatException] is thrown.
+ */
+ external const factory int.fromEnvironment(String name, {int defaultValue});
}
« sdk/lib/core/bool.dart ('K') | « sdk/lib/core/bool.dart ('k') | sdk/lib/core/string.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698