| 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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 static final bool isAndroid = (_operatingSystem == "android"); | 116 static final bool isAndroid = (_operatingSystem == "android"); |
| 117 | 117 |
| 118 /** | 118 /** |
| 119 * Returns true if the operating system is iOS. | 119 * Returns true if the operating system is iOS. |
| 120 */ | 120 */ |
| 121 static final bool isIOS = (_operatingSystem == "ios"); | 121 static final bool isIOS = (_operatingSystem == "ios"); |
| 122 | 122 |
| 123 /** | 123 /** |
| 124 * Returns true if the operating system is Fuchsia | 124 * Returns true if the operating system is Fuchsia |
| 125 */ | 125 */ |
| 126 static final bool isFuchsia = (_operatingSystem == "fuchsia"); | 126 static final bool isFuchsia = (_operatingSystem == "fuchsia"); |
| 127 | 127 |
| 128 /** | 128 /** |
| 129 * When stdio is connected to a terminal, whether ANSI codes are supported. | 129 * When stdio is connected to a terminal, whether ANSI codes are supported. |
| 130 * | 130 * |
| 131 * This value is hard-coded to `true`, except on Windows where only more | 131 * This value is hard-coded to `true`, except on Windows where only more |
| 132 * recent versions of Windows 10 support the codes. | 132 * recent versions of Windows 10 support the codes. |
| 133 */ | 133 */ |
| 134 static final bool ansiSupported = _ansiSupported; | 134 static final bool ansiSupported = _ansiSupported; |
| 135 | 135 |
| 136 /** | 136 /** |
| 137 * Get the environment for this process. | 137 * Get the environment for this process. |
| 138 * | 138 * |
| 139 * The returned environment is an unmodifiable map which content is | 139 * The returned environment is an unmodifiable map which content is |
| 140 * retrieved from the operating system on its first use. | 140 * retrieved from the operating system on its first use. |
| 141 * | 141 * |
| 142 * Environment variables on Windows are case-insensitive. The map | 142 * Environment variables on Windows are case-insensitive. The map |
| 143 * returned on Windows is therefore case-insensitive and will convert | 143 * returned on Windows is therefore case-insensitive and will convert |
| 144 * all keys to upper case. On other platforms the returned map is | 144 * 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... |
| 215 /** | 215 /** |
| 216 * Returns the version of the current Dart runtime. | 216 * Returns the version of the current Dart runtime. |
| 217 * | 217 * |
| 218 * The returned `String` is formatted as the | 218 * The returned `String` is formatted as the |
| 219 * [semver](http://semver.org) version string of the current dart | 219 * [semver](http://semver.org) version string of the current dart |
| 220 * runtime, possibly followed by whitespace and other version and | 220 * runtime, possibly followed by whitespace and other version and |
| 221 * build details. | 221 * build details. |
| 222 */ | 222 */ |
| 223 static String get version => _version; | 223 static String get version => _version; |
| 224 } | 224 } |
| OLD | NEW |