Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(222)

Side by Side Diff: sdk/lib/io/platform_impl.dart

Issue 15263004: Adding isNotEmpty property to collection and string. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix template generation Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « sdk/lib/io/http_session.dart ('k') | sdk/lib/typed_data/dart2js/typed_data_dart2js.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 class _Platform { 7 class _Platform {
8 external static int _numberOfProcessors(); 8 external static int _numberOfProcessors();
9 external static String _pathSeparator(); 9 external static String _pathSeparator();
10 external static String _operatingSystem(); 10 external static String _operatingSystem();
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 V putIfAbsent(String key, V ifAbsent()) { 80 V putIfAbsent(String key, V ifAbsent()) {
81 _map.putIfAbsent(key.toUpperCase(), ifAbsent); 81 _map.putIfAbsent(key.toUpperCase(), ifAbsent);
82 } 82 }
83 V remove(String key) => _map.remove(key.toUpperCase()); 83 V remove(String key) => _map.remove(key.toUpperCase());
84 void clear() => _map.clear(); 84 void clear() => _map.clear();
85 void forEach(void f(String key, V value)) => _map.forEach(f); 85 void forEach(void f(String key, V value)) => _map.forEach(f);
86 Iterable<String> get keys => _map.keys; 86 Iterable<String> get keys => _map.keys;
87 Iterable<V> get values => _map.values; 87 Iterable<V> get values => _map.values;
88 int get length => _map.length; 88 int get length => _map.length;
89 bool get isEmpty => _map.isEmpty; 89 bool get isEmpty => _map.isEmpty;
90 bool get isNotEmpty => _map.isNotEmpty;
90 91
91 Map<String, V> _map; 92 Map<String, V> _map;
92 } 93 }
OLDNEW
« no previous file with comments | « sdk/lib/io/http_session.dart ('k') | sdk/lib/typed_data/dart2js/typed_data_dart2js.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698