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

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

Issue 10399077: URI encoder/decoder - copied from other repo. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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 | « lib/uri/encode_decode.dart ('k') | runtime/bin/uri_sources.gypi » ('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 #library('uri'); 5 #library('uri');
6 6
7 #import('dart:utf');
8
9 #source('encode_decode.dart');
7 #source('helpers.dart'); 10 #source('helpers.dart');
8 11
9 /** 12 /**
10 * A parsed URI, inspired by Closure's [URI][] class. Implements [RFC-3986][]. 13 * A parsed URI, inspired by Closure's [URI][] class. Implements [RFC-3986][].
11 * [uri]: http://closure-library.googlecode.com/svn/docs/class_goog_Uri.html 14 * [uri]: http://closure-library.googlecode.com/svn/docs/class_goog_Uri.html
12 * [RFC-3986]: http://tools.ietf.org/html/rfc3986#section-4.3) 15 * [RFC-3986]: http://tools.ietf.org/html/rfc3986#section-4.3)
13 */ 16 */
14 class Uri { 17 class Uri {
15 final String scheme; 18 final String scheme;
16 final String userInfo; 19 final String userInfo;
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 } 186 }
184 187
185 static void _addIfNonEmpty(StringBuffer sb, String test, 188 static void _addIfNonEmpty(StringBuffer sb, String test,
186 String first, String second) { 189 String first, String second) {
187 if ("" != test) { 190 if ("" != test) {
188 sb.add(first === null ? "null" : first); 191 sb.add(first === null ? "null" : first);
189 sb.add(second === null ? "null" : second); 192 sb.add(second === null ? "null" : second);
190 } 193 }
191 } 194 }
192 } 195 }
OLDNEW
« no previous file with comments | « lib/uri/encode_decode.dart ('k') | runtime/bin/uri_sources.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698