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