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

Side by Side Diff: runtime/lib/uri_patch.dart

Issue 2451893004: Revert "Reland "Merge more Kernel infrastructure from kernel_sdk SDK fork."" (Closed)
Patch Set: Created 4 years, 1 month 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
« no previous file with comments | « runtime/lib/typed_data.dart ('k') | runtime/tools/concatenate_patches.py » ('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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 import "dart:convert" show ASCII;
6
5 // VM implementation of Uri. 7 // VM implementation of Uri.
6 typedef Uri _UriBaseClosure(); 8 typedef Uri _UriBaseClosure();
7 9
8 Uri _unsupportedUriBase() { 10 Uri _unsupportedUriBase() {
9 throw new UnsupportedError("'Uri.base' is not supported"); 11 throw new UnsupportedError("'Uri.base' is not supported");
10 } 12 }
11 13
12 // _uriBaseClosure can be overwritten by the embedder to supply a different 14 // _uriBaseClosure can be overwritten by the embedder to supply a different
13 // value for Uri.base. 15 // value for Uri.base.
14 _UriBaseClosure _uriBaseClosure = _unsupportedUriBase; 16 _UriBaseClosure _uriBaseClosure = _unsupportedUriBase;
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 } else { 66 } else {
65 const String hexDigits = '0123456789ABCDEF'; 67 const String hexDigits = '0123456789ABCDEF';
66 result..writeCharCode(_PERCENT) 68 result..writeCharCode(_PERCENT)
67 ..writeCharCode(hexDigits.codeUnitAt(byte >> 4)) 69 ..writeCharCode(hexDigits.codeUnitAt(byte >> 4))
68 ..writeCharCode(hexDigits.codeUnitAt(byte & 0x0f)); 70 ..writeCharCode(hexDigits.codeUnitAt(byte & 0x0f));
69 } 71 }
70 } 72 }
71 return result.toString(); 73 return result.toString();
72 } 74 }
73 } 75 }
OLDNEW
« no previous file with comments | « runtime/lib/typed_data.dart ('k') | runtime/tools/concatenate_patches.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698