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.core; | 5 part of dart.core; |
6 | 6 |
7 /** | 7 /** |
8 * A parsed URI, such as a URL. | 8 * A parsed URI, such as a URL. |
9 * | 9 * |
10 * **See also:** | 10 * **See also:** |
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
383 } | 383 } |
384 }); | 384 }); |
385 } | 385 } |
386 | 386 |
387 static _checkWindowsPathReservedCharacters(List<String> segments, | 387 static _checkWindowsPathReservedCharacters(List<String> segments, |
388 bool argumentError, | 388 bool argumentError, |
389 [int firstSegment = 0]) { | 389 [int firstSegment = 0]) { |
390 segments.skip(firstSegment).forEach((segment) { | 390 segments.skip(firstSegment).forEach((segment) { |
391 if (segment.contains(new RegExp(r'["*/:<>?\\|]'))) { | 391 if (segment.contains(new RegExp(r'["*/:<>?\\|]'))) { |
392 if (argumentError) { | 392 if (argumentError) { |
393 throw new ArgumentError("Illegal character in path}"); | 393 throw new ArgumentError("Illegal character in path"); |
394 } else { | 394 } else { |
395 throw new UnsupportedError("Illegal character in path}"); | 395 throw new UnsupportedError("Illegal character in path"); |
396 } | 396 } |
397 } | 397 } |
398 }); | 398 }); |
399 } | 399 } |
400 | 400 |
401 static _checkWindowsDriveLetter(int charCode, bool argumentError) { | 401 static _checkWindowsDriveLetter(int charCode, bool argumentError) { |
402 if ((_UPPER_CASE_A <= charCode && charCode <= _UPPER_CASE_Z) || | 402 if ((_UPPER_CASE_A <= charCode && charCode <= _UPPER_CASE_Z) || |
403 (_LOWER_CASE_A <= charCode && charCode <= _LOWER_CASE_Z)) { | 403 (_LOWER_CASE_A <= charCode && charCode <= _LOWER_CASE_Z)) { |
404 return; | 404 return; |
405 } | 405 } |
(...skipping 1284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1690 void clear() { | 1690 void clear() { |
1691 throw new UnsupportedError("Cannot modify an unmodifiable map"); | 1691 throw new UnsupportedError("Cannot modify an unmodifiable map"); |
1692 } | 1692 } |
1693 void forEach(void f(K key, V value)) => _map.forEach(f); | 1693 void forEach(void f(K key, V value)) => _map.forEach(f); |
1694 Iterable<K> get keys => _map.keys; | 1694 Iterable<K> get keys => _map.keys; |
1695 Iterable<V> get values => _map.values; | 1695 Iterable<V> get values => _map.values; |
1696 int get length => _map.length; | 1696 int get length => _map.length; |
1697 bool get isEmpty => _map.isEmpty; | 1697 bool get isEmpty => _map.isEmpty; |
1698 bool get isNotEmpty => _map.isNotEmpty; | 1698 bool get isNotEmpty => _map.isNotEmpty; |
1699 } | 1699 } |
OLD | NEW |