Home
last modified time | relevance | path

Searched refs:Url (Results 1 – 25 of 42) sorted by relevance

12

/external/rust/crates/url/tests/
Dunit.rs15 use url::{form_urlencoded, Host, Origin, Url};
20 assert_eq!(size_of::<Url>(), size_of::<Option<Url>>()); in size()
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()
51 let mut base: Url = "moz://foo@servo/baz".parse().unwrap(); in test_set_empty_hostname()
71 let url = Url::from_file_path(Path::new($path)).unwrap();
81 assert_eq!(Url::from_file_path(Path::new("relative")), Err(())); in new_file_paths()
82 assert_eq!(Url::from_file_path(Path::new("../relative")), Err(())); in new_file_paths()
85 assert_eq!(Url::from_file_path(Path::new("relative")), Err(())); in new_file_paths()
[all …]
Ddata.rs15 use url::{quirks, Url};
33 let base = match Url::parse(&base) { in urltestdata()
114 let mut url = Url::parse(&href).unwrap(); in setters_tests()
132 fn check_invariants(url: &Url, name: &str, comment: Option<&str>) -> bool { in check_invariants() argument
146 let new_url: Url = serde_json::from_slice(&bytes).unwrap(); in check_invariants()
177 fn get<'a>(url: &'a Url, attr: &str) -> &'a str { in get() argument
194 fn set<'a>(url: &'a mut Url, attr: &str, new: &str) { in set() argument
/external/openscreen/util/
Durl.cc16 Url::Url(const std::string& source) { in Url() function in openscreen::Url
77 Url::Url(const Url&) = default;
79 Url::Url(Url&& other) noexcept in Url() function in openscreen::Url
93 Url::~Url() = default;
95 Url& Url::operator=(const Url&) = default;
97 Url& Url::operator=(Url&& other) { in operator =()
Durl.h19 class Url {
21 explicit Url(const std::string& source);
22 Url(const Url&);
23 Url(Url&&) noexcept;
24 ~Url();
26 Url& operator=(const Url&);
27 Url& operator=(Url&&);
Durl_unittest.cc26 EXPECT_TRUE(Url(valid_cases[i]).is_valid()) << "Case: " << valid_cases[i]; in TEST()
37 EXPECT_FALSE(Url(invalid_cases[i]).is_valid()) in TEST()
43 Url url("http://user:pass@google.com:99/foo;bar?q=a#ref"); in TEST()
59 Url url1("http://user:pass@google.com:99/foo;bar?q=a#ref"); in TEST()
60 Url url2(url1); in TEST()
88 Url url1("http://user:pass@google.com:99/foo;bar?q=a#ref"); in TEST()
89 Url url2(std::move(url1)); in TEST()
107 Url url1("http://user:pass@google.com:99/foo;bar?q=a#ref"); in TEST()
108 Url url2("https://example.com"); in TEST()
109 Url url3("https://example.com"); in TEST()
[all …]
/external/rust/crates/url/src/
Dquirks.rs15 use crate::{Host, ParseError, Position, Url};
37 pub fn href(url: &Url) -> &str { in href()
42 pub fn set_href(url: &mut Url, value: &str) -> Result<(), ParseError> { in set_href() argument
43 *url = Url::parse(value)?; in set_href()
48 pub fn origin(url: &Url) -> String { in origin()
54 pub fn protocol(url: &Url) -> &str { in protocol()
60 pub fn set_protocol(url: &mut Url, mut new_protocol: &str) -> Result<(), ()> { in set_protocol() argument
71 pub fn username(url: &Url) -> &str { in username()
77 pub fn set_username(url: &mut Url, new_username: &str) -> Result<(), ()> { in set_username() argument
83 pub fn password(url: &Url) -> &str { in password()
[all …]
Dlib.rs166 pub struct Url { struct
193 base_url: Option<&'a Url>, argument
200 pub fn base_url(mut self, new: Option<&'a Url>) -> Self { in base_url()
240 pub fn parse(self, input: &str) -> Result<Url, crate::ParseError> { in parse() argument
252 impl Url { impl
275 pub fn parse(input: &str) -> Result<Url, crate::ParseError> { in parse() argument
276 Url::options().parse(input) in parse()
305 pub fn parse_with_params<I, K, V>(input: &str, iter: I) -> Result<Url, crate::ParseError> in parse_with_params() argument
312 let mut url = Url::options().parse(input); in parse_with_params()
356 pub fn join(&self, input: &str) -> Result<Url, crate::ParseError> { in join() argument
[all …]
Dslicing.rs9 use crate::Url;
12 impl Index<RangeFull> for Url { implementation
19 impl Index<RangeFrom<Position>> for Url { implementation
26 impl Index<RangeTo<Position>> for Url { implementation
33 impl Index<Range<Position>> for Url { implementation
100 impl Url { impl
Dparser.rs14 use crate::Url;
335 pub base_url: Option<&'a Url>,
374 pub fn parse_url(mut self, input: &str) -> ParseResult<Url> { in parse_url() argument
425 fn parse_with_scheme(mut self, input: Input<'_>) -> ParseResult<Url> { in parse_with_scheme() argument
476 ) -> ParseResult<Url> { in parse_non_special() argument
512 base_file_url: Option<&Url>, in parse_file() argument
513 ) -> ParseResult<Url> { in parse_file() argument
550 return Ok(Url { in parse_file()
601 return Ok(Url { in parse_file()
624 Ok(Url { in parse_file()
[all …]
Dorigin.rs11 use crate::Url;
15 pub fn url_origin(url: &Url) -> Origin { in url_origin()
19 let result = Url::parse(url.path()); in url_origin()
Dpath_segments.rs10 use crate::Url;
38 url: &'a mut Url,
45 pub fn new(url: &mut Url) -> PathSegmentsMut<'_> { in new()
/external/rust/crates/rusqlite/src/types/
Durl.rs4 use url::Url;
7 impl ToSql for Url { implementation
14 impl FromSql for Url { implementation
19 Url::parse(s).map_err(|e| FromSqlError::Other(Box::new(e))) in column_result()
29 use url::{ParseError, Url};
38 fn get_url(db: &Connection, id: i64) -> Result<Url> { in get_url() argument
46 let url0 = Url::parse("http://www.example1.com").unwrap(); in test_sql_url()
47 let url1 = Url::parse("http://www.example1.com/��").unwrap(); in test_sql_url()
64 let out_url2: Url = get_url(db, 2).unwrap(); in test_sql_url()
65 assert_eq!(out_url2, Url::parse(url2).unwrap()); in test_sql_url()
/external/autotest/server/site_tests/autoupdate_OmahaResponse/
Dcontrol.url_switch.full7 PURPOSE = "Test update continues on the second Url when it fails the first."
14 This tests that we move to the second Url when we fail with the first Url.
/external/llvm-project/llvm/tools/dsymutil/
DCFBundle.cpp89 CFBundle(CFURLRef Url) in CFBundle() argument
90 : CFReleaser<CFBundleRef>(Url ? ::CFBundleCreate(nullptr, Url) in CFBundle()
/external/python/cpython3/Lib/test/test_email/data/
Dmsg_06.txt16 X-Url: http://barry.wooz.org
31 X-Url: http://barry.wooz.org
/external/python/cpython2/Lib/email/test/data/
Dmsg_06.txt16 X-Url: http://barry.wooz.org
31 X-Url: http://barry.wooz.org
/external/google-fruit/extras/packaging/
Dlibfruit.spec11 Url: https://github.com/google/fruit
37 Url: https://github.com/google/fruit
/external/skia/infra/bots/task_drivers/canary/
Dcanary.go136 cl := roll.Url
147 rollStatus = fmt.Sprintf("Canary roll [ %s ] has status %s", roll.Url, roll.Status)
/external/one-true-awk/testdir/
Dfunstack.awk485 return ((HTML && (Url != "")) ? ("<A HREF=\"" Url "\">") : "")
570 return ((HTML && (Url != "")) ? "</A>" : "")
/external/pdfium/xfa/fxfa/parser/
Dcxfa_certificates.cpp22 {XFA_Attribute::Url, XFA_AttributeType::CData, nullptr},
/external/libexif/
Dlibexif.spec6 Url: http://sourceforge.net/projects/libexif/
Dlibexif.spec.in6 Url: http://sourceforge.net/projects/libexif/
/external/autotest/client/site_tests/policy_CookiesBlockedForUrls/
Dcontrol25 - Allows cookies on a test page with an Url that matches one or more of the
/external/libtextclassifier/native/annotator/
Dcollections.h137 static const std::string& Url() { in Url() function
/external/rust/crates/quiche/examples/
Dclient.rs52 let url = url::Url::parse(&args.next().unwrap()).unwrap(); in main()

12