| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 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 | 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. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 part of dart.io; | 5 part of dart.io; |
| 6 | 6 |
| 7 /** | 7 /** |
| 8 * Information about the environment in which the current program is running. | 8 * Information about the environment in which the current program is running. |
| 9 * | 9 * |
| 10 * Platform provides information such as the operating system, | 10 * Platform provides information such as the operating system, |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 static final bool isWindows = (_operatingSystem == "windows"); | 110 static final bool isWindows = (_operatingSystem == "windows"); |
| 111 | 111 |
| 112 /** | 112 /** |
| 113 * Returns true if the operating system is Android. | 113 * Returns true if the operating system is Android. |
| 114 */ | 114 */ |
| 115 static final bool isAndroid = (_operatingSystem == "android"); | 115 static final bool isAndroid = (_operatingSystem == "android"); |
| 116 | 116 |
| 117 /** | 117 /** |
| 118 * Returns true if the operating system is iOS. | 118 * Returns true if the operating system is iOS. |
| 119 */ | 119 */ |
| 120 static final bool isiOS = (_operatingSystem == "ios"); | 120 static final bool isIOS = (_operatingSystem == "ios"); |
| 121 | 121 |
| 122 /** | 122 /** |
| 123 * Get the environment for this process. | 123 * Get the environment for this process. |
| 124 * | 124 * |
| 125 * The returned environment is an unmodifiable map which content is | 125 * The returned environment is an unmodifiable map which content is |
| 126 * retrieved from the operating system on its first use. | 126 * retrieved from the operating system on its first use. |
| 127 * | 127 * |
| 128 * Environment variables on Windows are case-insensitive. The map | 128 * Environment variables on Windows are case-insensitive. The map |
| 129 * returned on Windows is therefore case-insensitive and will convert | 129 * returned on Windows is therefore case-insensitive and will convert |
| 130 * all keys to upper case. On other platforms the returned map is | 130 * all keys to upper case. On other platforms the returned map is |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 /** | 201 /** |
| 202 * Returns the version of the current Dart runtime. | 202 * Returns the version of the current Dart runtime. |
| 203 * | 203 * |
| 204 * The returned `String` is formatted as the | 204 * The returned `String` is formatted as the |
| 205 * [semver](http://semver.org) version string of the current dart | 205 * [semver](http://semver.org) version string of the current dart |
| 206 * runtime, possibly followed by whitespace and other version and | 206 * runtime, possibly followed by whitespace and other version and |
| 207 * build details. | 207 * build details. |
| 208 */ | 208 */ |
| 209 static String get version => _version; | 209 static String get version => _version; |
| 210 } | 210 } |
| OLD | NEW |