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

Side by Side Diff: dart/sdk/lib/core/uri.dart

Issue 143153006: Version 1.1.3 (stable) (Closed) Base URL: http://dart.googlecode.com/svn/branches/1.1/
Patch Set: Created 6 years, 10 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 | « dart/runtime/vm/gc_marker.cc ('k') | dart/tools/VERSION » ('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.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
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
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 }
OLDNEW
« no previous file with comments | « dart/runtime/vm/gc_marker.cc ('k') | dart/tools/VERSION » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698