| 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 651 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 662 * Creates a new file URI from an absolute or relative file path. | 662 * Creates a new file URI from an absolute or relative file path. |
| 663 * | 663 * |
| 664 * The file path is passed in [path]. | 664 * The file path is passed in [path]. |
| 665 * | 665 * |
| 666 * This path is interpreted using either Windows or non-Windows | 666 * This path is interpreted using either Windows or non-Windows |
| 667 * semantics. | 667 * semantics. |
| 668 * | 668 * |
| 669 * With non-Windows semantics the slash ("/") is used to separate | 669 * With non-Windows semantics the slash ("/") is used to separate |
| 670 * path segments. | 670 * path segments. |
| 671 * | 671 * |
| 672 * With Windows semantics, backslash ("\") and forward-slash ("/") | 672 * With Windows semantics, backslash ("\\") and forward-slash ("/") |
| 673 * are used to separate path segments, except if the path starts | 673 * are used to separate path segments, except if the path starts |
| 674 * with "\\?\" in which case, only backslash ("\") separates path | 674 * with "\\\\?\\" in which case, only backslash ("\\") separates path |
| 675 * segments. | 675 * segments. |
| 676 * | 676 * |
| 677 * If the path starts with a path separator an absolute URI is | 677 * If the path starts with a path separator an absolute URI is |
| 678 * created. Otherwise a relative URI is created. One exception from | 678 * created. Otherwise a relative URI is created. One exception from |
| 679 * this rule is that when Windows semantics is used and the path | 679 * this rule is that when Windows semantics is used and the path |
| 680 * starts with a drive letter followed by a colon (":") and a | 680 * starts with a drive letter followed by a colon (":") and a |
| 681 * path separator then an absolute URI is created. | 681 * path separator then an absolute URI is created. |
| 682 * | 682 * |
| 683 * The default for whether to use Windows or non-Windows semantics | 683 * The default for whether to use Windows or non-Windows semantics |
| 684 * determined from the platform Dart is running on. When running in | 684 * determined from the platform Dart is running on. When running in |
| (...skipping 1186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1871 | 1871 |
| 1872 /** | 1872 /** |
| 1873 * Returns the file path from a file URI. | 1873 * Returns the file path from a file URI. |
| 1874 * | 1874 * |
| 1875 * The returned path has either Windows or non-Windows | 1875 * The returned path has either Windows or non-Windows |
| 1876 * semantics. | 1876 * semantics. |
| 1877 * | 1877 * |
| 1878 * For non-Windows semantics the slash ("/") is used to separate | 1878 * For non-Windows semantics the slash ("/") is used to separate |
| 1879 * path segments. | 1879 * path segments. |
| 1880 * | 1880 * |
| 1881 * For Windows semantics the backslash ("\") separator is used to | 1881 * For Windows semantics the backslash ("\\") separator is used to |
| 1882 * separate path segments. | 1882 * separate path segments. |
| 1883 * | 1883 * |
| 1884 * If the URI is absolute the path starts with a path separator | 1884 * If the URI is absolute the path starts with a path separator |
| 1885 * unless Windows semantics is used and the first path segment is a | 1885 * unless Windows semantics is used and the first path segment is a |
| 1886 * drive letter. When Windows semantics is used a host component in | 1886 * drive letter. When Windows semantics is used a host component in |
| 1887 * the uri in interpreted as a file server and a UNC path is | 1887 * the uri in interpreted as a file server and a UNC path is |
| 1888 * returned. | 1888 * returned. |
| 1889 * | 1889 * |
| 1890 * The default for whether to use Windows or non-Windows semantics | 1890 * The default for whether to use Windows or non-Windows semantics |
| 1891 * determined from the platform Dart is running on. When running in | 1891 * determined from the platform Dart is running on. When running in |
| (...skipping 1460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3352 // All non-escape RFC-2396 uric characters. | 3352 // All non-escape RFC-2396 uric characters. |
| 3353 // | 3353 // |
| 3354 // uric = reserved | unreserved | escaped | 3354 // uric = reserved | unreserved | escaped |
| 3355 // reserved = ";" | "/" | "?" | ":" | "@" | "&" | "=" | "+" | "$" | "," | 3355 // reserved = ";" | "/" | "?" | ":" | "@" | "&" | "=" | "+" | "$" | "," |
| 3356 // unreserved = alphanum | mark | 3356 // unreserved = alphanum | mark |
| 3357 // mark = "-" | "_" | "." | "!" | "~" | "*" | "'" | "(" | ")" | 3357 // mark = "-" | "_" | "." | "!" | "~" | "*" | "'" | "(" | ")" |
| 3358 // | 3358 // |
| 3359 // This is the same characters as in a URI query (which is URI pchar plus '?') | 3359 // This is the same characters as in a URI query (which is URI pchar plus '?') |
| 3360 static const _uricTable = Uri._queryCharTable; | 3360 static const _uricTable = Uri._queryCharTable; |
| 3361 } | 3361 } |
| OLD | NEW |