| 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 #library('uri'); | 5 #library('dart:uri'); |
| 6 | 6 |
| 7 #import('dart:utf'); | 7 #import('dart:utf'); |
| 8 | 8 |
| 9 #source('encode_decode.dart'); | 9 #source('encode_decode.dart'); |
| 10 #source('helpers.dart'); | 10 #source('helpers.dart'); |
| 11 | 11 |
| 12 /** | 12 /** |
| 13 * 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][]. |
| 14 * [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 |
| 15 * [RFC-3986]: http://tools.ietf.org/html/rfc3986#section-4.3) | 15 * [RFC-3986]: http://tools.ietf.org/html/rfc3986#section-4.3) |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 } | 186 } |
| 187 | 187 |
| 188 static void _addIfNonEmpty(StringBuffer sb, String test, | 188 static void _addIfNonEmpty(StringBuffer sb, String test, |
| 189 String first, String second) { | 189 String first, String second) { |
| 190 if ("" != test) { | 190 if ("" != test) { |
| 191 sb.add(first === null ? "null" : first); | 191 sb.add(first === null ? "null" : first); |
| 192 sb.add(second === null ? "null" : second); | 192 sb.add(second === null ? "null" : second); |
| 193 } | 193 } |
| 194 } | 194 } |
| 195 } | 195 } |
| OLD | NEW |