Index: sdk/lib/core/string.dart |
=================================================================== |
--- sdk/lib/core/string.dart (revision 27984) |
+++ sdk/lib/core/string.dart (working copy) |
@@ -125,6 +125,12 @@ |
} |
/** |
+ * Returns the string for the given environment variable [name] or |
Ivan Posva
2013/09/27 07:21:01
Maybe it should say "for the given configuration v
kasperl
2013/09/27 07:32:43
Nit: I don't think we should limit ourselves to en
Ivan Posva
2013/09/27 21:05:06
That is why had the remark about changing the comm
|
+ * [defaultValue] if [name] is not present. |
+ */ |
+ external const String.env(String name, String defaultValue); |
bakster
2013/09/27 07:44:39
How about adding a default value to defaultValue?
Ivan Posva
2013/09/27 21:05:06
I was thinking the same thing, but instead I would
|
+ |
+ /** |
* Gets the character (as a single-code-unit [String]) at the given [index]. |
* |
* The returned string represents exactly one UTF-16 code unit, which may be |