/external/libcxx/test/std/strings/string.view/string.view.template/ |
D | starts_with.ptr.pass.cpp | 34 LIBCPP_ASSERT_NOEXCEPT(sv0.starts_with("")); in main() 36 assert ( sv0.starts_with("")); in main() 37 assert (!sv0.starts_with("a")); in main() 39 assert ( sv1.starts_with("")); in main() 40 assert ( sv1.starts_with("a")); in main() 41 assert (!sv1.starts_with("ab")); in main() 42 assert (!sv1.starts_with("abc")); in main() 43 assert (!sv1.starts_with("abcd")); in main() 44 assert (!sv1.starts_with("abcde")); in main() 45 assert (!sv1.starts_with("def")); in main() [all …]
|
D | starts_with.string_view.pass.cpp | 34 ASSERT_NOEXCEPT(sv0.starts_with(sv0)); in main() 36 assert ( sv0.starts_with(sv0)); in main() 37 assert (!sv0.starts_with(sv1)); in main() 39 assert ( sv1.starts_with(sv0)); in main() 40 assert ( sv1.starts_with(sv1)); in main() 41 assert (!sv1.starts_with(sv2)); in main() 42 assert (!sv1.starts_with(sv3)); in main() 43 assert (!sv1.starts_with(sv4)); in main() 44 assert (!sv1.starts_with(sv5)); in main() 45 assert (!sv1.starts_with(svNot)); in main() [all …]
|
D | starts_with.char.pass.cpp | 28 ASSERT_NOEXCEPT(sv1.starts_with('e')); in main() 30 assert (!sv1.starts_with('a')); in main() 31 assert (!sv1.starts_with('x')); in main() 32 assert ( sv2.starts_with('a')); in main() 33 assert (!sv2.starts_with('x')); in main() 41 static_assert (!sv1.starts_with('a'), "" ); in main() 42 static_assert (!sv1.starts_with('x'), "" ); in main() 43 static_assert ( sv2.starts_with('a'), "" ); in main() 44 static_assert (!sv2.starts_with('x'), "" ); in main()
|
/external/llvm-project/libcxx/test/std/strings/string.view/string.view.template/ |
D | starts_with.ptr.pass.cpp | 33 LIBCPP_ASSERT_NOEXCEPT(sv0.starts_with("")); in main() 35 assert ( sv0.starts_with("")); in main() 36 assert (!sv0.starts_with("a")); in main() 38 assert ( sv1.starts_with("")); in main() 39 assert ( sv1.starts_with("a")); in main() 40 assert (!sv1.starts_with("ab")); in main() 41 assert (!sv1.starts_with("abc")); in main() 42 assert (!sv1.starts_with("abcd")); in main() 43 assert (!sv1.starts_with("abcde")); in main() 44 assert (!sv1.starts_with("def")); in main() [all …]
|
D | starts_with.string_view.pass.cpp | 33 ASSERT_NOEXCEPT(sv0.starts_with(sv0)); in main() 35 assert ( sv0.starts_with(sv0)); in main() 36 assert (!sv0.starts_with(sv1)); in main() 38 assert ( sv1.starts_with(sv0)); in main() 39 assert ( sv1.starts_with(sv1)); in main() 40 assert (!sv1.starts_with(sv2)); in main() 41 assert (!sv1.starts_with(sv3)); in main() 42 assert (!sv1.starts_with(sv4)); in main() 43 assert (!sv1.starts_with(sv5)); in main() 44 assert (!sv1.starts_with(svNot)); in main() [all …]
|
D | starts_with.char.pass.cpp | 27 ASSERT_NOEXCEPT(sv1.starts_with('e')); in main() 29 assert (!sv1.starts_with('a')); in main() 30 assert (!sv1.starts_with('x')); in main() 31 assert ( sv2.starts_with('a')); in main() 32 assert (!sv2.starts_with('x')); in main() 40 static_assert (!sv1.starts_with('a'), "" ); in main() 41 static_assert (!sv1.starts_with('x'), "" ); in main() 42 static_assert ( sv2.starts_with('a'), "" ); in main() 43 static_assert (!sv2.starts_with('x'), "" ); in main()
|
/external/llvm-project/libcxx/test/std/strings/basic.string/string.starts_with/ |
D | starts_with.ptr.pass.cpp | 32 LIBCPP_ASSERT_NOEXCEPT(s0.starts_with("")); in main() 34 assert ( s0.starts_with("")); in main() 35 assert (!s0.starts_with("a")); in main() 37 assert ( s1.starts_with("")); in main() 38 assert ( s1.starts_with("a")); in main() 39 assert (!s1.starts_with("ab")); in main() 40 assert (!s1.starts_with("abc")); in main() 41 assert (!s1.starts_with("abcd")); in main() 42 assert (!s1.starts_with("abcde")); in main() 43 assert (!s1.starts_with("def")); in main() [all …]
|
D | starts_with.string_view.pass.cpp | 42 ASSERT_NOEXCEPT(s0.starts_with(sv0)); in main() 44 assert ( s0.starts_with(sv0)); in main() 45 assert (!s0.starts_with(sv1)); in main() 47 assert ( s1.starts_with(sv0)); in main() 48 assert ( s1.starts_with(sv1)); in main() 49 assert (!s1.starts_with(sv2)); in main() 50 assert (!s1.starts_with(sv3)); in main() 51 assert (!s1.starts_with(sv4)); in main() 52 assert (!s1.starts_with(sv5)); in main() 53 assert (!s1.starts_with(svNot)); in main() [all …]
|
D | starts_with.char.pass.cpp | 26 ASSERT_NOEXCEPT(s1.starts_with('e')); in main() 28 assert (!s1.starts_with('a')); in main() 29 assert (!s1.starts_with('x')); in main() 30 assert ( s2.starts_with('a')); in main() 31 assert (!s2.starts_with('x')); in main()
|
/external/libcxx/test/std/strings/basic.string/string.starts_with/ |
D | starts_with.ptr.pass.cpp | 33 LIBCPP_ASSERT_NOEXCEPT(s0.starts_with("")); in main() 35 assert ( s0.starts_with("")); in main() 36 assert (!s0.starts_with("a")); in main() 38 assert ( s1.starts_with("")); in main() 39 assert ( s1.starts_with("a")); in main() 40 assert (!s1.starts_with("ab")); in main() 41 assert (!s1.starts_with("abc")); in main() 42 assert (!s1.starts_with("abcd")); in main() 43 assert (!s1.starts_with("abcde")); in main() 44 assert (!s1.starts_with("def")); in main() [all …]
|
D | starts_with.string_view.pass.cpp | 43 ASSERT_NOEXCEPT(s0.starts_with(sv0)); in main() 45 assert ( s0.starts_with(sv0)); in main() 46 assert (!s0.starts_with(sv1)); in main() 48 assert ( s1.starts_with(sv0)); in main() 49 assert ( s1.starts_with(sv1)); in main() 50 assert (!s1.starts_with(sv2)); in main() 51 assert (!s1.starts_with(sv3)); in main() 52 assert (!s1.starts_with(sv4)); in main() 53 assert (!s1.starts_with(sv5)); in main() 54 assert (!s1.starts_with(svNot)); in main() [all …]
|
D | starts_with.char.pass.cpp | 27 ASSERT_NOEXCEPT(s1.starts_with('e')); in main() 29 assert (!s1.starts_with('a')); in main() 30 assert (!s1.starts_with('x')); in main() 31 assert ( s2.starts_with('a')); in main() 32 assert (!s2.starts_with('x')); in main()
|
/external/rust/crates/syn/src/ |
D | whitespace.rs | 5 if s.starts_with("//") in skip() 6 && (!s.starts_with("///") || s.starts_with("////")) in skip() 7 && !s.starts_with("//!") in skip() 15 } else if s.starts_with("/**/") { in skip() 18 } else if s.starts_with("/*") in skip() 19 && (!s.starts_with("/**") || s.starts_with("/***")) in skip() 20 && !s.starts_with("/*!") in skip()
|
/external/rust/crates/serde/ |
D | build.rs | 91 let has_atomic64 = target.starts_with("x86_64") in main() 92 || target.starts_with("i686") in main() 93 || target.starts_with("aarch64") in main() 94 || target.starts_with("powerpc64") in main() 95 || target.starts_with("sparc64") in main() 96 || target.starts_with("mips64el"); in main()
|
/external/rust/crates/proc-macro2/src/ |
D | parse.rs | 25 fn starts_with(&self, s: &str) -> bool { in starts_with() method 26 self.rest.starts_with(s) in starts_with() 54 if self.starts_with(tag) { in parse() 71 if s.starts_with("//") in skip_whitespace() 72 && (!s.starts_with("///") || s.starts_with("////")) in skip_whitespace() 73 && !s.starts_with("//!") in skip_whitespace() 78 } else if s.starts_with("/**/") { in skip_whitespace() 81 } else if s.starts_with("/*") in skip_whitespace() 82 && (!s.starts_with("/**") || s.starts_with("/***")) in skip_whitespace() 83 && !s.starts_with("/*!") in skip_whitespace() [all …]
|
/external/rust/crates/libc/ |
D | build.rs | 123 .map(|raw| raw.starts_with("dev") || raw.starts_with("nightly")) in rustc_minor_nightly() 147 s if s.starts_with("10") => Some(10), in which_freebsd() 148 s if s.starts_with("11") => Some(11), in which_freebsd() 149 s if s.starts_with("12") => Some(12), in which_freebsd() 150 s if s.starts_with("13") => Some(13), in which_freebsd()
|
/external/rust/crates/thiserror-impl/src/ |
D | fmt.rs | 34 if read.starts_with('{') { in expand_shorthand() 68 if formatvar.to_string().starts_with("r#") { in expand_shorthand() 71 if formatvar.to_string().starts_with('_') { in expand_shorthand() 85 if read.starts_with('}') && fields.contains(&member) { in expand_shorthand() 132 let raw = read.starts_with("r#"); in take_ident()
|
/external/rust/crates/idna/tests/ |
D | uts46.rs | 17 if line.is_empty() || line.starts_with('#') { in collect_tests() 94 |e| e.starts_with('C') || e == "V2" || e == "X4_2", in collect_tests() 102 |e| e.starts_with('C') || e == "V2", in collect_tests() 110 |e| e.starts_with('C') || e == "V2", in collect_tests() 184 assert!(result[0].starts_with('[')); in status()
|
/external/rust/cxx/gen/src/ |
D | ifndef.rs | 23 if line != define && !line.trim_start().starts_with("//") { in write() 41 if rest.starts_with('\n') || rest.starts_with('\r') { in find_line()
|
/external/libchrome/base/strings/ |
D | string_piece_unittest.cc | 560 ASSERT_TRUE(a.starts_with(a)); in TEST() 561 ASSERT_TRUE(a.starts_with("foo")); in TEST() 562 ASSERT_TRUE(a.starts_with(e)); in TEST() 563 ASSERT_TRUE(b.starts_with(s1)); in TEST() 564 ASSERT_TRUE(b.starts_with(b)); in TEST() 565 ASSERT_TRUE(b.starts_with(e)); in TEST() 566 ASSERT_TRUE(e.starts_with("")); in TEST() 567 ASSERT_TRUE(!a.starts_with(b)); in TEST() 568 ASSERT_TRUE(!b.starts_with(a)); in TEST() 569 ASSERT_TRUE(!e.starts_with(a)); in TEST() [all …]
|
/external/rust/crates/protobuf-codegen/src/ |
D | protobuf_name.rs | 58 assert!(!path.starts_with(".")); in new() 248 assert!(path.is_empty() || path.starts_with("."), path); in new() 265 assert!(!path.starts_with(".")); in from_path_without_dot() 282 if path.starts_with(".") { in from_path_maybe_dot() 305 if self.path.starts_with(&prefix.path) { in remove_prefix() 310 if rem.starts_with('.') { in remove_prefix()
|
/external/rust/crates/syn/tests/repo/ |
D | mod.rs | 56 if path.starts_with("src/test/compile-fail") || path.starts_with("src/test/rustfix") { in base_dir_filter() 60 if path.starts_with("src/test/ui") { in base_dir_filter()
|
/external/rust/crates/bindgen/src/ir/ |
D | comment.rs | 27 if comment.starts_with("/*") { in kind() 29 } else if comment.starts_with("//") { in kind() 45 debug_assert!(comment.starts_with("//"), "comment is not single line"); in preprocess_single_lines()
|
/external/grpc-grpc/test/cpp/util/ |
D | string_ref_test.cc | 134 EXPECT_TRUE(s1.starts_with(s1)); in TEST_F() 135 EXPECT_FALSE(s1.starts_with(s2)); in TEST_F() 136 EXPECT_FALSE(s2.starts_with(s1)); in TEST_F() 137 EXPECT_FALSE(s1.starts_with(s3)); in TEST_F() 138 EXPECT_TRUE(s3.starts_with(s1)); in TEST_F()
|
/external/rust/crates/url/src/ |
D | host.rs | 78 if input.starts_with('[') { in parse() 123 if input.starts_with('[') { in parse_opaque() 253 if input.starts_with("0x") || input.starts_with("0X") { in parse_ipv4number() 256 } else if input.len() >= 2 && input.starts_with('0') { in parse_ipv4number() 281 if input.starts_with('+') { in parse_ipv4number()
|