/aosp_15_r20/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/ |
H A D | HttpUrlTest.java | 8 * http://www.apache.org/licenses/LICENSE-2.0 37 HttpUrl expected = HttpUrl.parse("http://host/"); in parseTrimsAsciiWhitespace() 38 assertEquals(expected, HttpUrl.parse("http://host/\f\n\t \r")); // Leading. in parseTrimsAsciiWhitespace() 39 assertEquals(expected, HttpUrl.parse("\r\n\f \thttp://host/")); // Trailing. in parseTrimsAsciiWhitespace() 40 assertEquals(expected, HttpUrl.parse(" http://host/ ")); // Both. in parseTrimsAsciiWhitespace() 41 assertEquals(expected, HttpUrl.parse(" http://host/ ")); // Both. in parseTrimsAsciiWhitespace() 42 assertEquals(expected, HttpUrl.parse("http://host/").resolve(" ")); in parseTrimsAsciiWhitespace() 43 assertEquals(expected, HttpUrl.parse("http://host/").resolve(" . ")); in parseTrimsAsciiWhitespace() 48 assertNull(HttpUrl.parse("http://" + host + "/")); in parseHostAsciiNonPrintable() 53 assertEquals("/%0B", HttpUrl.parse("http://h/\u000b").encodedPath()); // line tabulation in parseDoesNotTrimOtherWhitespaceCharacters() [all …]
|
/aosp_15_r20/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/utils/ |
H A D | SourceRoot.java | 14 import java.nio.file.Path; 36 * by one or all together. <b>Note that</b> the internal cache used is thread-safe. 38 …Parse..." will return their result inside a "ParseResult", which supports parse successes and fail… 39 …* <li>methods called "parse..." will return "CompilationUnit"s. If a file fails to parse, an excep… 51 * @param localPath the path to the file that was parsed, relative to the source root path. 52 * @param absolutePath the absolute path to the file that was parsed. 55 Result process(Path localPath, Path absolutePath, ParseResult<CompilationUnit> result); in process() 58 private final Path root; 59 private final Map<Path, ParseResult<CompilationUnit>> cache = new ConcurrentHashMap<>(); 66 * source files within, like "javaparser/javaparser-core/src/main/java" [all …]
|
/aosp_15_r20/external/cronet/third_party/rust/chromium_crates_io/vendor/syn-1.0.109/src/ |
H A D | path.rs | 5 /// A path at which a named item is exported (e.g. `std::collections::HashMap`). 10 pub struct Path { 16 impl<T> From<T> for Path implementation 20 fn from(segment: T) -> Self { in from() 21 let mut path = Path { in from() localVariable 25 path.segments.push_value(segment.into()); in from() 26 path in from() 31 /// A segment of a path together with any path arguments on that segment. 46 fn from(ident: T) -> Self { in from() 55 /// Angle bracketed or parenthesized arguments of a path segment. [all …]
|
H A D | attr.rs | 8 use crate::parse::{Parse, ParseBuffer, ParseStream, Parser, Result}; 24 /// - Outer attributes like `#[repr(transparent)]`. These appear outside or 26 /// - Inner attributes like `#![feature(proc_macro)]`. These appear inside 28 /// - Outer doc comments like `/// # Example`. 29 /// - Inner doc comments like `//! Please file an issue`. 30 /// - Outer block comments `/** # Example */`. 31 /// - Inner block comments `/*! Please file an issue */`. 38 /// The `path` field gives the possibly colon-delimited path against which 46 /// path tokens path tokens 53 /// This type does not implement the [`Parse`] trait and thus cannot be [all …]
|
H A D | ty.rs | 15 /// [syntax tree enum]: Expr#syntax-tree-enums 22 /// A bare function type: `fn(usize) -> bool`. 44 /// A path like `std::slice::Iter`, optionally qualified with a 45 /// self-type as in `<Vec<T> as SomeTrait>::Associated`. 46 Path(TypePath), 106 /// A bare function type: `fn(usize) -> bool`. 194 /// A path like `std::slice::Iter`, optionally qualified with a 195 /// self-type as in `<Vec<T> as SomeTrait>::Associated`. 202 pub path: Path, 284 /// An argument in a function type: the `usize` in `fn(usize) -> bool`. [all …]
|
H A D | pat.rs | 15 /// [syntax tree enum]: Expr#syntax-tree-enums 37 /// A path pattern like `Color::Red`, optionally qualified with a 38 /// self-type. 40 /// Unqualified path patterns can legally refer to variants, structs, 41 /// constants or associated constants. Qualified path patterns like 44 Path(PatPath), 167 /// A path pattern like `Color::Red`, optionally qualified with a 168 /// self-type. 170 /// Unqualified path patterns can legally refer to variants, structs, 171 /// constants or associated constants. Qualified path patterns like [all …]
|
/aosp_15_r20/external/rust/android-crates-io/crates/url/tests/ |
D | unit.rs | 1 // Copyright 2013-2014 The rust-url developers. 3 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or 4 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license 5 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your 14 use std::path::{Path, PathBuf}; 25 let base: Url = "sc://%C3%B1".parse().unwrap(); in test_relative() 32 let base: Url = "sc://%C3%B1".parse().unwrap(); in test_relative_empty() 39 let mut base: Url = "moz://foo:bar@servo/baz".parse().unwrap(); in test_set_empty_host() 47 let mut base: Url = "file://server/share/foo/bar".parse().unwrap(); in test_set_empty_host() 51 let mut base: Url = "file://server/share/foo/bar".parse().unwrap(); in test_set_empty_host() [all …]
|
/aosp_15_r20/frameworks/base/core/tests/coretests/src/android/net/ |
H A D | UriTest.java | 8 * http://www.apache.org/licenses/LICENSE-2.0 40 // Not a valid path, but this came from a user's test case. in testToStringWithPathOnly() 41 builder.path("//foo"); in testToStringWithPathOnly() 48 parcelAndUnparcel(Uri.parse("foo:bob%20lee")); in testParcelling() 54 .path("/rss/") in testParcelling() 80 Uri u = Uri.parse("bob:lee").buildUpon().scheme("robert").build(); in testBuildUponOpaqueStringUri() 95 .authority("google.com").path("one/way").build(); in testSchemeSanitization() 103 Uri.parse("foo:bob%20lee").getSchemeSpecificPart()); in testStringUri() 105 Uri.parse("foo:bob%20lee").getEncodedSchemeSpecificPart()); in testStringUri() 107 Uri.parse("foo:/bob%20lee").getEncodedPath()); in testStringUri() [all …]
|
/aosp_15_r20/external/rust/android-crates-io/crates/syn/src/ |
D | attr.rs | 10 use crate::parse::{Parse, ParseStream, Parser}; 11 use crate::path::Path; 28 /// - Outer attributes like `#[repr(transparent)]`. These appear outside or 31 /// - Inner attributes like `#![feature(proc_macro)]`. These appear inside 34 /// - Outer one-line doc comments like `/// Example`. 36 /// - Inner one-line doc comments like `//! Please file an issue`. 38 /// - Outer documentation blocks `/** Example */`. 40 /// - Inner documentation blocks `/*! Please file an issue */`. 45 /// Every attribute has a `path` that indicates the intended interpretation 46 /// of the rest of the attribute's contents. The path and the optional [all …]
|
D | path.rs | 12 /// A path at which a named item is exported (e.g. `std::collections::HashMap`). 14 pub struct Path { 20 impl<T> From<T> for Path implementation 24 fn from(segment: T) -> Self { in from() 25 let mut path = Path { in from() localVariable 29 path.segments.push_value(segment.into()); in from() 30 path in from() 34 impl Path { implementation 35 /// Determines whether this is a path of length 1 equal to the given 40 /// - the path has no leading colon, [all …]
|
D | ty.rs | 8 use crate::path::{Path, QSelf}; 20 /// [syntax tree enum]: crate::expr::Expr#syntax-tree-enums 27 /// A bare function type: `fn(usize) -> bool`. 49 /// A path like `std::slice::Iter`, optionally qualified with a 50 /// self-type as in `<Vec<T> as SomeTrait>::Associated`. 51 Path(TypePath), 104 /// A bare function type: `fn(usize) -> bool`. 171 /// A path like `std::slice::Iter`, optionally qualified with a 172 /// self-type as in `<Vec<T> as SomeTrait>::Associated`. 176 pub path: Path, [all …]
|
D | expr.rs | 12 use crate::path::{AngleBracketedGenericArguments, Path, QSelf}; 154 /// of expressions and is related to `None`-delimited spans in a 192 /// A path like `std::mem::replace` possibly containing generic 193 /// parameters and a qualified self-type. 195 /// A plain identifier like `x` is a path of length 1. 196 Path(ExprPath), 216 /// A try-expression: `expr?`. 426 /// of expressions and is related to `None`-delimited spans in a 550 /// A path like `std::mem::replace` possibly containing generic 551 /// parameters and a qualified self-type. [all …]
|
/aosp_15_r20/external/cronet/third_party/rust/chromium_crates_io/vendor/syn-2.0.55/src/ |
H A D | attr.rs | 10 use crate::parse::{Parse, ParseStream, Parser}; 11 use crate::path::Path; 28 /// - Outer attributes like `#[repr(transparent)]`. These appear outside or 31 /// - Inner attributes like `#![feature(proc_macro)]`. These appear inside 34 /// - Outer one-line doc comments like `/// Example`. 36 /// - Inner one-line doc comments like `//! Please file an issue`. 38 /// - Outer documentation blocks `/** Example */`. 40 /// - Inner documentation blocks `/*! Please file an issue */`. 45 /// Every attribute has a `path` that indicates the intended interpretation 46 /// of the rest of the attribute's contents. The path and the optional [all …]
|
H A D | path.rs | 12 /// A path at which a named item is exported (e.g. `std::collections::HashMap`). 14 pub struct Path { 20 impl<T> From<T> for Path implementation 24 fn from(segment: T) -> Self { in from() 25 let mut path = Path { in from() localVariable 29 path.segments.push_value(segment.into()); in from() 30 path in from() 34 impl Path { implementation 35 /// Determines whether this is a path of length 1 equal to the given 40 /// - the path has no leading colon, [all …]
|
H A D | ty.rs | 8 use crate::path::{Path, QSelf}; 20 /// [syntax tree enum]: crate::expr::Expr#syntax-tree-enums 27 /// A bare function type: `fn(usize) -> bool`. 49 /// A path like `std::slice::Iter`, optionally qualified with a 50 /// self-type as in `<Vec<T> as SomeTrait>::Associated`. 51 Path(TypePath), 104 /// A bare function type: `fn(usize) -> bool`. 171 /// A path like `std::slice::Iter`, optionally qualified with a 172 /// self-type as in `<Vec<T> as SomeTrait>::Associated`. 176 pub path: Path, [all …]
|
H A D | expr.rs | 12 use crate::path::{AngleBracketedGenericArguments, Path, QSelf}; 154 /// of expressions and is related to `None`-delimited spans in a 192 /// A path like `std::mem::replace` possibly containing generic 193 /// parameters and a qualified self-type. 195 /// A plain identifier like `x` is a path of length 1. 196 Path(ExprPath), 216 /// A try-expression: `expr?`. 426 /// of expressions and is related to `None`-delimited spans in a 550 /// A path like `std::mem::replace` possibly containing generic 551 /// parameters and a qualified self-type. [all …]
|
/aosp_15_r20/external/python/cpython3/Lib/test/ |
D | test_urlparse.py | 4 import urllib.parse 11 # Each parse_qsl testcase is a two-tuple that contains 41 # Each parse_qs testcase is a two-tuple that contains 74 result = urllib.parse.urlparse(url) 76 t = (result.scheme, result.netloc, result.path, 80 result2 = urllib.parse.urlunparse(result) 84 # the result of geturl() is a fixpoint; we can always parse it 86 result3 = urllib.parse.urlparse(result.geturl()) 91 self.assertEqual(result3.path, result.path) 101 result = urllib.parse.urlsplit(url) [all …]
|
/aosp_15_r20/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/ |
D | WebAddressesTest.java | 8 * http://www.apache.org/licenses/LICENSE-2.0 36 private static final String TOP_PRIVATE_DOMAIN = "private-domain"; 47 Uri.parse( 52 Uri.parse( 58 Uri.parse( 64 Uri.parse( 73 Uri.parse( 79 Uri.parse( 84 Uri.parse(String.format("%s://%s", HTTPS_SCHEME, LOCALHOST)); 87 Uri.parse(String.format("%s://%s", HTTPS_SCHEME, LOCALHOST_IP)); [all …]
|
/aosp_15_r20/external/rust/android-crates-io/crates/toml/src/ |
D | macros.rs | 15 /// travis-ci = { repository = "alexcrichton/toml-rs" } 20 /// [dev-dependencies] 40 // TT-muncher to parse TOML syntax into a toml::Value. 42 // @toplevel -- Parse tokens outside of an inline table or inline array. In 46 // @topleveldatetime -- Helper to parse a Datetime from string and insert it 49 // @path -- Turn a path segment into a string. Segments that look like idents 53 // @value -- Parse the value part of a `key = value` pair, which may be a 56 // @table -- Parse the contents of an inline table, returning them as a 59 // @tabledatetime -- Helper to parse a Datetime from string and insert it 62 // @array -- Parse the contents of an inline array, returning them as a [all …]
|
/aosp_15_r20/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ |
H A D | JavaParser.java | 2 * Copyright (C) 2007-2010 Júlio Vilmar Gesser. 3 * Copyright (C) 2011, 2013-2016 The JavaParser Team. 43 import java.nio.file.Path; 51 * Parse Java source code and creates Abstract Syntax Trees. 103 * @return the parse result, a collection of encountered problems, and some extra data. 105 public <N extends Node> ParseResult<N> parse(ParseStart<N> start, Provider provider) { in parse() method in JavaParser 115 N resultNode = start.parse(parser); in parse() 118 configuration.getPostProcessors().forEach(postProcessor -> in parse() 146 public ParseResult<CompilationUnit> parse(final InputStream in, Charset encoding) { in parse() method in JavaParser 147 return parse(COMPILATION_UNIT, provider(in, encoding)); in parse() [all …]
|
/aosp_15_r20/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/ |
H A D | AnalyseNewJavaParserTest.java | 8 * http://www.apache.org/licenses/LICENSE-2.0 31 import java.nio.file.Path; 41 private static final Path root = adaptPath("src/test/test_sourcecode/javaparser_new_src"); 42 …private static final Path src = adaptPath("src/test/test_sourcecode/javaparser_new_src/javaparser-… 48 …new JavaParserTypeSolver(root.resolve("javaparser-generated-sources"), new LeanParserConfiguration… in getSourceFileInfoExtractor() 57 static String readFile(Path file) in readFile() 65 private void parse(String fileName) throws IOException { in parse() method in AnalyseNewJavaParserTest 66 Path sourceFile = src.resolve(fileName + ".java"); in parse() 75 Path expectedOutput = root.resolve("expected_output"); in parse() 76 Path path = expectedOutput.resolve(fileName.replaceAll("/", "_") + ".txt"); in parse() local [all …]
|
/aosp_15_r20/external/rust/android-crates-io/crates/url/src/ |
D | lib.rs | 1 // Copyright 2013-2015 The rust-url developers. 3 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or 4 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license 5 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your 11 rust-url is an implementation of the [URL Standard](http://url.spec.whatwg.org/) 12 for the [Rust](http://rust-lang.org/) programming language. 22 assert!(Url::parse("http://[:::1]") == Err(ParseError::InvalidIpv6Address)) 25 Let’s parse a valid URL and look at its components. 30 # fn run() -> Result<(), ParseError> { 31 let issue_list_url = Url::parse( [all …]
|
/aosp_15_r20/external/crosvm/src/crosvm/sys/linux/ |
H A D | config.rs | 2 // Use of this source code is governed by a BSD-style license that can be 5 use std::path::PathBuf; 24 #[serde(deny_unknown_fields, rename_all = "kebab-case")] 41 pub fn check_serial_params(_serial_params: &SerialParameters) -> Result<(), String> { in check_serial_params() 45 pub fn validate_config(_cfg: &mut Config) -> std::result::Result<(), String> { in validate_config() 51 #[serde(deny_unknown_fields, rename_all = "kebab-case")] 53 /// Path to the VFIO device. 54 pub path: PathBuf, field 79 fn from_str(s: &str) -> Result<Self, Self::Err> { in from_str() 103 fn default() -> SharedDir { in default() [all …]
|
/aosp_15_r20/development/vndk/tools/sourcedr/ninja/ |
H A D | ninja.py | 28 pass # In Python 2, intern() is a built-in function. 31 # Wrap built-in open() function to ignore encoding in Python 2. 33 def open(path, mode, encoding=None): argument 34 return _builtin_open(path, mode) 36 # Replace built-in zip() function with itertools.izip 95 'circular evaluation: ' + ' -> '.join(expanded_vars)) 179 return [intern(os.path.normpath(eval_string(s, env))) for s in strs] 189 if descs and descs[-1] == 't': 190 self._segs[-1] += text 243 # Non-trivial tokens [all …]
|
/aosp_15_r20/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/ |
D | UriTest.java | 8 * http://www.apache.org/licenses/LICENSE-2.0 32 parcelAndUnparcel(Uri.parse("foo:bob%20lee")); in testParcelling() 37 .path("/rss/") in testParcelling() 57 Uri u = Uri.parse("bob:lee").buildUpon().scheme("robert").build(); in testBuildUpon() 90 Uri.parse("foo:bob%20lee").getSchemeSpecificPart()); in testStringUri() 92 Uri.parse("foo:bob%20lee").getEncodedSchemeSpecificPart()); in testStringUri() 95 Uri.parse("foo:/bob%20lee").getEncodedPath()); in testStringUri() 96 assertNull(Uri.parse("foo:bob%20lee").getPath()); in testStringUri() 99 Uri.parse("foo:?bob%20lee").getEncodedQuery()); in testStringUri() 100 assertNull(Uri.parse("foo:bob%20lee").getEncodedQuery()); in testStringUri() [all …]
|