| 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; |
| 6 |
| 5 class _Platform { | 7 class _Platform { |
| 6 external static int _numberOfProcessors(); | 8 external static int _numberOfProcessors(); |
| 7 external static String _pathSeparator(); | 9 external static String _pathSeparator(); |
| 8 external static String _operatingSystem(); | 10 external static String _operatingSystem(); |
| 9 external static _localHostname(); | 11 external static _localHostname(); |
| 10 external static _environment(); | 12 external static _environment(); |
| 11 | 13 |
| 12 static int get numberOfProcessors { | 14 static int get numberOfProcessors { |
| 13 return _numberOfProcessors(); | 15 return _numberOfProcessors(); |
| 14 } | 16 } |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 if (equalsIndex == 0) { | 50 if (equalsIndex == 0) { |
| 49 equalsIndex = str.indexOf('=', 1); | 51 equalsIndex = str.indexOf('=', 1); |
| 50 } | 52 } |
| 51 assert(equalsIndex != -1); | 53 assert(equalsIndex != -1); |
| 52 result[str.substring(0, equalsIndex)] = str.substring(equalsIndex + 1); | 54 result[str.substring(0, equalsIndex)] = str.substring(equalsIndex + 1); |
| 53 } | 55 } |
| 54 return result; | 56 return result; |
| 55 } | 57 } |
| 56 } | 58 } |
| 57 } | 59 } |
| OLD | NEW |