Home
last modified time | relevance | path

Searched refs:str1 (Results 1 – 25 of 511) sorted by relevance

12345678910>>...21

/external/llvm-project/clang-tools-extra/test/clang-tidy/checkers/
Dreadability-string-compare.cpp32 std::string str1("a", 1); in Test() local
35 if (str1.compare(str2)) { in Test()
38 if (!str1.compare(str2)) { in Test()
41 if (str1.compare(str2) == 0) { in Test()
45 if (str1.compare(str2) != 0) { in Test()
49 if (str1.compare("foo") == 0) { in Test()
53 if (0 == str1.compare(str2)) { in Test()
57 if (0 != str1.compare(str2)) { in Test()
61 func(str1.compare(str2)); in Test()
63 if (str2.empty() || str1.compare(str2) != 0) { in Test()
[all …]
/external/libabigail/src/
Dabg-diff-utils.cc97 compute_middle_snake(const char* str1, const char* str2, in compute_middle_snake() argument
101 int str1_size = strlen(str1), str2_size = strlen(str2); in compute_middle_snake()
104 default_eq_functor>(str1, str1 + str1_size, in compute_middle_snake()
128 ses_len(const char* str1, in ses_len() argument
132 int str1_size = strlen(str1), str2_size = strlen(str2); in ses_len()
135 return ses_len(str1, str1 + str1_size, in ses_len()
157 compute_lcs(const char* str1, const char* str2, int &ses_len, string& lcs) in compute_lcs() argument
162 compute_diff(str1, str1 + strlen(str1), in compute_lcs()
171 ABG_ASSERT(str1[x] == str2[y]); in compute_lcs()
172 lcs.push_back(str1[x]); in compute_lcs()
[all …]
/external/compiler-rt/test/dfsan/
Dcustom.cc75 char str1[] = "str1", str2[] = "str2"; in test_memcmp() local
76 dfsan_set_label(i_label, &str1[3], 1); in test_memcmp()
79 int rv = memcmp(str1, str2, sizeof(str1)); in test_memcmp()
89 char str1[] = "str1"; in test_memcpy() local
90 char str2[sizeof(str1)]; in test_memcpy()
91 dfsan_set_label(i_label, &str1[3], 1); in test_memcpy()
93 ASSERT_ZERO_LABEL(memcpy(str2, str1, sizeof(str1))); in test_memcpy()
94 assert(0 == memcmp(str2, str1, sizeof(str1))); in test_memcpy()
112 char str1[] = "str1", str2[] = "str2"; in test_strcmp() local
113 dfsan_set_label(i_label, &str1[3], 1); in test_strcmp()
[all …]
/external/ms-tpm-20-ref/Samples/ARM32-FirmwareTPM/optee_ta/fTPM/reference/include/
DRuntimeSupport.h60 #define XSTRNCPY(str1,str2,n) strncpy((str1),(str2),(n)) argument
64 int strncasecmp(const char *str1, const char *str2, size_t n);
65 #define XSTRNCASECMP(str1,str2,n) strncasecmp((str1),(str2),(n)) argument
69 #define XSTRNCMP(str1,str2,n) strncmp((str1),(str2),(n)) argument
73 #define XMEMCMP(str1,str2,n) memcmp((str1),(str2),(n)) argument
78 #define XTOUPPER(str1) toupper((str1)) argument
83 #define XTOLOWER(str1) tolower((str1)) argument
/external/llvm-project/compiler-rt/test/dfsan/
Dcustom.cpp78 char str1[] = "str1", str2[] = "str2"; in test_memcmp() local
79 dfsan_set_label(i_label, &str1[3], 1); in test_memcmp()
82 int rv = memcmp(str1, str2, sizeof(str1)); in test_memcmp()
92 char str1[] = "str1", str2[] = "str2"; in test_bcmp() local
93 dfsan_set_label(i_label, &str1[3], 1); in test_bcmp()
96 int rv = bcmp(str1, str2, sizeof(str1)); in test_bcmp()
104 rv = bcmp(str1, str2, sizeof(str1) - 2); in test_bcmp()
110 char str1[] = "str1"; in test_memcpy() local
111 char str2[sizeof(str1)]; in test_memcpy()
112 dfsan_set_label(i_label, &str1[3], 1); in test_memcpy()
[all …]
/external/pcre/dist2/src/
Dpcre2_string_utils.c102 PRIV(strcmp)(PCRE2_SPTR str1, PCRE2_SPTR str2) in PRIV()
105 while (*str1 != '\0' || *str2 != '\0') in PRIV()
107 c1 = *str1++; in PRIV()
130 PRIV(strcmp_c8)(PCRE2_SPTR str1, const char *str2) in PRIV()
133 while (*str1 != '\0' || *str2 != '\0') in PRIV()
135 c1 = *str1++; in PRIV()
157 PRIV(strncmp)(PCRE2_SPTR str1, PCRE2_SPTR str2, size_t len) in PRIV()
162 c1 = *str1++; in PRIV()
186 PRIV(strncmp_c8)(PCRE2_SPTR str1, const char *str2, size_t len) in PRIV()
191 c1 = *str1++; in PRIV()
[all …]
/external/llvm-project/clang-tools-extra/docs/clang-tidy/checks/
Dreadability-string-compare.rst21 std::string str1{"a"};
24 // use str1 != str2 instead.
25 if (str1.compare(str2)) {
28 // use str1 == str2 instead.
29 if (!str1.compare(str2)) {
32 // use str1 == str2 instead.
33 if (str1.compare(str2) == 0) {
36 // use str1 != str2 instead.
37 if (str1.compare(str2) != 0) {
40 // use str1 == str2 instead.
[all …]
/external/dagger2/javatests/dagger/functional/assisted/
DAssistedFactoryWithQualifiedTypesTest.java48 private final String str1; field in AssistedFactoryWithQualifiedTypesTest.DupeType
52 DupeType(@Assisted("1") String str1, @Assisted("2") String str2) { in DupeType() argument
53 this.str1 = str1; in DupeType()
60 DupeType create(@Assisted("1") String str1, @Assisted("2") String str2); in create() argument
65 String str1 = "str1"; in testDupeTypeFactory() local
70 .create(str1, str2); in testDupeTypeFactory()
71 assertThat(dupeType.str1).isEqualTo(str1); in testDupeTypeFactory()
77 DupeType create(@Assisted("2") String str2, @Assisted("1") String str1); in create() argument
82 String str1 = "str1"; in testSwappedDupeTypeFactory() local
87 .create(str2, str1); in testSwappedDupeTypeFactory()
[all …]
/external/pdfium/core/fxcrt/
Dbytestring.h60 ByteString(ByteStringView str1, ByteStringView str2);
236 inline ByteString operator+(ByteStringView str1, ByteStringView str2) {
237 return ByteString(str1, str2);
239 inline ByteString operator+(ByteStringView str1, const char* str2) {
240 return ByteString(str1, str2);
242 inline ByteString operator+(const char* str1, ByteStringView str2) {
243 return ByteString(str1, str2);
245 inline ByteString operator+(ByteStringView str1, char ch) {
246 return ByteString(str1, ByteStringView(ch));
251 inline ByteString operator+(const ByteString& str1, const ByteString& str2) {
[all …]
Dwidestring.h58 WideString(WideStringView str1, WideStringView str2);
237 inline WideString operator+(WideStringView str1, WideStringView str2) {
238 return WideString(str1, str2);
240 inline WideString operator+(WideStringView str1, const wchar_t* str2) {
241 return WideString(str1, str2);
243 inline WideString operator+(const wchar_t* str1, WideStringView str2) {
244 return WideString(str1, str2);
246 inline WideString operator+(WideStringView str1, wchar_t ch) {
247 return WideString(str1, WideStringView(ch));
252 inline WideString operator+(const WideString& str1, const WideString& str2) {
[all …]
/external/libxml2/
Dxmlstring.c132 xmlStrcmp(const xmlChar *str1, const xmlChar *str2) { in xmlStrcmp() argument
133 if (str1 == str2) return(0); in xmlStrcmp()
134 if (str1 == NULL) return(-1); in xmlStrcmp()
137 return(strcmp((const char *)str1, (const char *)str2)); in xmlStrcmp()
140 int tmp = *str1++ - *str2; in xmlStrcmp()
159 xmlStrEqual(const xmlChar *str1, const xmlChar *str2) { in xmlStrEqual() argument
160 if (str1 == str2) return(1); in xmlStrEqual()
161 if (str1 == NULL) return(0); in xmlStrEqual()
164 return(strcmp((const char *)str1, (const char *)str2) == 0); in xmlStrEqual()
167 if (*str1++ != *str2) return(0); in xmlStrEqual()
[all …]
/external/llvm-project/llvm/test/Transforms/InstCombine/
Dstrncmp-1.ll23 %str1 = getelementptr inbounds [1 x i8], [1 x i8]* @null, i32 0, i32 0
24 %temp1 = call i32 @strncmp(i8* %str1, i8* %str2, i32 10)
29 define i32 @test2(i8* %str1) {
37 %temp1 = call i32 @strncmp(i8* %str1, i8* %str2, i32 10)
47 %str1 = getelementptr inbounds [5 x i8], [5 x i8]* @hell, i32 0, i32 0
49 %temp1 = call i32 @strncmp(i8* %str1, i8* %str2, i32 10)
58 %str1 = getelementptr inbounds [5 x i8], [5 x i8]* @hell, i32 0, i32 0
60 %temp1 = call i32 @strncmp(i8* %str1, i8* %str2, i32 10)
69 %str1 = getelementptr inbounds [5 x i8], [5 x i8]* @hell, i32 0, i32 0
71 %temp1 = call i32 @strncmp(i8* %str1, i8* %str2, i32 4)
[all …]
/external/selinux/libsemanage/tests/
Dtest_utilities.c278 char *str1, *str2; in test_semanage_str_replace() local
280 str1 = semanage_str_replace("%{USERNAME}", "root", test_str, 0); in test_semanage_str_replace()
281 CU_ASSERT_STRING_EQUAL(str1, "Hello, I am root and my id is %{USERID}"); in test_semanage_str_replace()
283 str2 = semanage_str_replace("%{USERID}", "0", str1, 1); in test_semanage_str_replace()
285 free(str1); in test_semanage_str_replace()
288 str1 = semanage_str_replace(":(", ";)", "Test :( :) ! :(:(:))(:(", 0); in test_semanage_str_replace()
289 CU_ASSERT_STRING_EQUAL(str1, "Test ;) :) ! ;);):))(;)"); in test_semanage_str_replace()
290 free(str1); in test_semanage_str_replace()
292 str1 = semanage_str_replace(":(", ";)", "Test :( :) ! :(:(:))(:(", 3); in test_semanage_str_replace()
293 CU_ASSERT_STRING_EQUAL(str1, "Test ;) :) ! ;);):))(:("); in test_semanage_str_replace()
[all …]
/external/llvm/test/Transforms/InstCombine/
Dstrncmp-1.ll21 %str1 = getelementptr inbounds [1 x i8], [1 x i8]* @null, i32 0, i32 0
22 %temp1 = call i32 @strncmp(i8* %str1, i8* %str2, i32 10)
27 define i32 @test2(i8* %str1) {
29 ; CHECK: %strcmpload = load i8, i8* %str1
34 %temp1 = call i32 @strncmp(i8* %str1, i8* %str2, i32 10)
43 %str1 = getelementptr inbounds [5 x i8], [5 x i8]* @hell, i32 0, i32 0
45 %temp1 = call i32 @strncmp(i8* %str1, i8* %str2, i32 10)
53 %str1 = getelementptr inbounds [5 x i8], [5 x i8]* @hell, i32 0, i32 0
55 %temp1 = call i32 @strncmp(i8* %str1, i8* %str2, i32 10)
63 %str1 = getelementptr inbounds [5 x i8], [5 x i8]* @hell, i32 0, i32 0
[all …]
/external/mesa3d/src/util/tests/hash_table/
Dcollision.c39 const char *str1 = "test1"; in main() local
54 _mesa_hash_table_insert_pre_hashed(ht, bad_hash, str1, NULL); in main()
58 entry1 = _mesa_hash_table_search_pre_hashed(ht, bad_hash, str1); in main()
59 assert(entry1->key == str1); in main()
65 entry1 = _mesa_hash_table_search_pre_hashed(ht, bad_hash, str1); in main()
66 assert(entry1->key == str1); in main()
83 _mesa_hash_table_insert_pre_hashed(ht, bad_hash, str1, NULL); in main()
89 entry1 = _mesa_hash_table_search_pre_hashed(ht, bad_hash, str1); in main()
90 assert(entry1->key == str1); in main()
Dreplacement.c39 char *str1 = strdup("test1"); in main() local
46 assert(str1 != str2); in main()
51 _mesa_hash_table_insert(ht, str1, str1); in main()
54 entry = _mesa_hash_table_search(ht, str1); in main()
60 entry = _mesa_hash_table_search(ht, str1); in main()
64 free(str1); in main()
/external/one-true-awk/bugs-fixed/
Dsubsep-overflow.awk10 str1 = foo("a", 4500);
13 a[(SUBSEP = str1), (SUBSEP = str2), "c"] = 1;
19 print (((SUBSEP = str1), (SUBSEP = str2), "c") in a);
20 print (((SUBSEP = str1) SUBSEP (SUBSEP = str2) SUBSEP "c") in a);
21 delete a[(SUBSEP = str1), (SUBSEP = str2), "c"];
22 print (((SUBSEP = str1), (SUBSEP = str2), "c") in a);
23 print (((SUBSEP = str1) SUBSEP (SUBSEP = str2) SUBSEP "c") in a);
/external/libabigail/tests/
Dtest-diff2.cc42 const char* str1; member
52 str1(0), in options()
82 if (!opts.str1) in parse_command_line()
83 opts.str1 = argv[i]; in parse_command_line()
121 int len = ses_len(opts.str1, opts.str2, opts.reverse); in main()
130 if (compute_middle_snake(opts.str1, opts.str2, in main()
133 print_snake(opts.str1, opts.str2, s, cout); in main()
143 compute_lcs(opts.str1, opts.str2, ses_len, lcs); in main()
152 compute_ses(opts.str1, opts.str2, ses); in main()
153 display_edit_script(ses, opts.str1, opts.str2, cout); in main()
/external/llvm-project/libcxx/test/std/re/re.const/re.matchflag/
Dmatch_prev_avail.pass.cpp21 char str1[] = "\na"; in main() local
22 auto str1_scnd = str1 + 1; in main()
24 assert(regex_match(str1 + 1, str1 + 2, regex("^a"), in main()
33 assert(regex_search(str1, regex("\\ba"))); in main()
34 assert(regex_match(str1 + 1, str1 + 2, regex("\\ba\\b"), in main()
42 assert(regex_match(str1 + 1, str1 + 2, regex("^a"), in main()
/external/llvm-project/llvm/test/CodeGen/X86/
Dswitch-crit-edge-constant.ll4 ; CHECK: {{mov.*str1}}
5 ; CHECK-NOT: {{mov.*str1}}
9 @str1 = internal constant [5 x i8] c"bonk\00" ; <[5 x i8]*> [#uses=1]
37str1, i32 0, i64 0), %entry ], [ getelementptr ([5 x i8], [5 x i8]* @str1, i32 0, i64 0), %entry ]…
/external/llvm/test/CodeGen/X86/
Dswitch-crit-edge-constant.ll4 ; CHECK: {{mov.*str1}}
5 ; CHECK-NOT: {{mov.*str1}}
9 @str1 = internal constant [5 x i8] c"bonk\00" ; <[5 x i8]*> [#uses=1]
37str1, i32 0, i64 0), %entry ], [ getelementptr ([5 x i8], [5 x i8]* @str1, i32 0, i64 0), %entry ]…
/external/llvm-project/llvm/test/Transforms/InstCombine/ARM/
Dstrcmp.ll23 %str1 = getelementptr inbounds [1 x i8], [1 x i8]* @null, i32 0, i32 0
24 %temp1 = call arm_apcscc i32 @strcmp(i8* %str1, i8* %str2)
30 define arm_aapcscc i32 @test2(i8* %str1) {
38 %temp1 = call arm_aapcscc i32 @strcmp(i8* %str1, i8* %str2)
48 %str1 = getelementptr inbounds [5 x i8], [5 x i8]* @hell, i32 0, i32 0
50 %temp1 = call arm_aapcscc i32 @strcmp(i8* %str1, i8* %str2)
59 %str1 = getelementptr inbounds [5 x i8], [5 x i8]* @hell, i32 0, i32 0
61 %temp1 = call arm_aapcscc i32 @strcmp(i8* %str1, i8* %str2)
74 %str1 = getelementptr inbounds [6 x i8], [6 x i8]* @hello, i32 0, i32 0
78 %temp3 = call arm_aapcscc i32 @strcmp(i8* %str1, i8* %str2)
[all …]
/external/llvm/test/MC/ELF/
Dbasic-elf-32.s10 movl $.L.str1, (%esp)
20 .type .L.str1,@object # @.str1
21 .section .rodata.str1.1,"aMS",@progbits,1
22 .L.str1:
24 .size .L.str1, 6
Dbasic-elf-64.s10 movl $.L.str1, %edi
20 .type .L.str1,@object # @.str1
21 .section .rodata.str1.1,"aMS",@progbits,1
22 .L.str1:
24 .size .L.str1, 6
/external/llvm-project/llvm/test/MC/ELF/
Dbasic-elf-32.s10 movl $.L.str1, (%esp)
20 .type .L.str1,@object # @.str1
21 .section .rodata.str1.1,"aMS",@progbits,1
22 .L.str1:
24 .size .L.str1, 6

12345678910>>...21