Home
last modified time | relevance | path

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

12345678910>>...19

/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/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/pdfium/core/fxcrt/
Dbytestring.h221 inline ByteString operator+(const ByteStringView& str1,
223 return ByteString(str1, str2);
225 inline ByteString operator+(const ByteStringView& str1, const char* str2) {
226 return ByteString(str1, str2);
228 inline ByteString operator+(const char* str1, const ByteStringView& str2) {
229 return ByteString(str1, str2);
231 inline ByteString operator+(const ByteStringView& str1, char ch) {
232 return ByteString(str1, ByteStringView(ch));
237 inline ByteString operator+(const ByteString& str1, const ByteString& str2) {
238 return ByteString(str1.AsStringView(), str2.AsStringView());
[all …]
Dwidestring.h57 WideString(const WideStringView& str1, const WideStringView& str2);
208 inline WideString operator+(const WideStringView& str1,
210 return WideString(str1, str2);
212 inline WideString operator+(const WideStringView& str1, const wchar_t* str2) {
213 return WideString(str1, str2);
215 inline WideString operator+(const wchar_t* str1, const WideStringView& str2) {
216 return WideString(str1, str2);
218 inline WideString operator+(const WideStringView& str1, wchar_t ch) {
219 return WideString(str1, WideStringView(ch));
224 inline WideString operator+(const WideString& str1, const WideString& str2) {
[all …]
/external/selinux/libsemanage/tests/
Dtest_utilities.c268 char *str1, *str2; in test_semanage_str_replace() local
270 str1 = semanage_str_replace("%{USERNAME}", "root", test_str, 0); in test_semanage_str_replace()
271 CU_ASSERT_STRING_EQUAL(str1, "Hello, I am root and my id is %{USERID}"); in test_semanage_str_replace()
273 str2 = semanage_str_replace("%{USERID}", "0", str1, 1); in test_semanage_str_replace()
275 free(str1); in test_semanage_str_replace()
278 str1 = semanage_str_replace(":(", ";)", "Test :( :) ! :(:(:))(:(", 0); in test_semanage_str_replace()
279 CU_ASSERT_STRING_EQUAL(str1, "Test ;) :) ! ;);):))(;)"); in test_semanage_str_replace()
280 free(str1); in test_semanage_str_replace()
282 str1 = semanage_str_replace(":(", ";)", "Test :( :) ! :(:(:))(:(", 3); in test_semanage_str_replace()
283 CU_ASSERT_STRING_EQUAL(str1, "Test ;) :) ! ;);):))(:("); in test_semanage_str_replace()
[all …]
/external/libxml2/
Dxmlstring.c132 xmlStrcmp(const xmlChar *str1, const xmlChar *str2) { in xmlStrcmp() argument
135 if (str1 == str2) return(0); in xmlStrcmp()
136 if (str1 == NULL) return(-1); in xmlStrcmp()
139 tmp = *str1++ - *str2; in xmlStrcmp()
157 xmlStrEqual(const xmlChar *str1, const xmlChar *str2) { in xmlStrEqual() argument
158 if (str1 == str2) return(1); in xmlStrEqual()
159 if (str1 == NULL) return(0); in xmlStrEqual()
162 if (*str1++ != *str2) return(0); in xmlStrEqual()
206 xmlStrncmp(const xmlChar *str1, const xmlChar *str2, int len) { in xmlStrncmp() argument
210 if (str1 == str2) return(0); in xmlStrncmp()
[all …]
/external/swiftshader/third_party/llvm-7.0/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 …]
Dstrcmp-1.ll21 %str1 = getelementptr inbounds [1 x i8], [1 x i8]* @null, i32 0, i32 0
22 %temp1 = call i32 @strcmp(i8* %str1, i8* %str2)
28 define i32 @test2(i8* %str1) {
35 %temp1 = call i32 @strcmp(i8* %str1, i8* %str2)
44 %str1 = getelementptr inbounds [5 x i8], [5 x i8]* @hell, i32 0, i32 0
46 %temp1 = call i32 @strcmp(i8* %str1, i8* %str2)
54 %str1 = getelementptr inbounds [5 x i8], [5 x i8]* @hell, i32 0, i32 0
56 %temp1 = call i32 @strcmp(i8* %str1, i8* %str2)
67 %str1 = getelementptr inbounds [6 x i8], [6 x i8]* @hello, i32 0, i32 0
71 %temp3 = call i32 @strcmp(i8* %str1, i8* %str2)
/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.c37 const char *str1 = "test1"; in main() local
52 _mesa_hash_table_insert_pre_hashed(ht, bad_hash, str1, NULL); in main()
56 entry1 = _mesa_hash_table_search_pre_hashed(ht, bad_hash, str1); in main()
57 assert(entry1->key == str1); in main()
63 entry1 = _mesa_hash_table_search_pre_hashed(ht, bad_hash, str1); in main()
64 assert(entry1->key == str1); in main()
81 _mesa_hash_table_insert_pre_hashed(ht, bad_hash, str1, NULL); in main()
87 entry1 = _mesa_hash_table_search_pre_hashed(ht, bad_hash, str1); in main()
88 assert(entry1->key == str1); in main()
Dreplacement.c37 char *str1 = strdup("test1"); in main() local
44 assert(str1 != str2); in main()
49 _mesa_hash_table_insert(ht, str1, str1); in main()
52 entry = _mesa_hash_table_search(ht, str1); in main()
58 entry = _mesa_hash_table_search(ht, str1); in main()
62 free(str1); in main()
/external/swiftshader/third_party/llvm-7.0/llvm/test/Transforms/InstCombine/ARM/
Dstrcmp.ll21 %str1 = getelementptr inbounds [1 x i8], [1 x i8]* @null, i32 0, i32 0
22 %temp1 = call arm_apcscc i32 @strcmp(i8* %str1, i8* %str2)
28 define arm_aapcscc i32 @test2(i8* %str1) {
35 %temp1 = call arm_aapcscc i32 @strcmp(i8* %str1, i8* %str2)
44 %str1 = getelementptr inbounds [5 x i8], [5 x i8]* @hell, i32 0, i32 0
46 %temp1 = call arm_aapcscc i32 @strcmp(i8* %str1, i8* %str2)
54 %str1 = getelementptr inbounds [5 x i8], [5 x i8]* @hell, i32 0, i32 0
56 %temp1 = call arm_aapcscc i32 @strcmp(i8* %str1, i8* %str2)
67 %str1 = getelementptr inbounds [6 x i8], [6 x i8]* @hello, i32 0, i32 0
71 %temp3 = call arm_aapcscc i32 @strcmp(i8* %str1, i8* %str2)
[all …]
/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/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/swiftshader/third_party/llvm-7.0/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/swiftshader/third_party/LLVM/test/CodeGen/X86/
Dswitch-crit-edge-constant.ll3 ; RUN: grep mov.*str1 | count 1
7 @str1 = internal constant [5 x i8] c"bonk\00" ; <[5 x i8]*> [#uses=1]
35str1, i32 0, i64 0), %entry ], [ getelementptr ([5 x i8]* @str1, i32 0, i64 0), %entry ], [ getele…
/external/swiftshader/third_party/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/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/swiftshader/third_party/llvm-7.0/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
21 .type .L.str1,@object # @.str1
22 .section .rodata.str1.1,"aMS",@progbits,1
23 .L.str1:
25 .size .L.str1, 6
/external/llvm/test/MC/Mips/
Delf-relsym.s51 lw $2, %got($.str1)($1)
52 addiu $2, $2, %lo($.str1)
76 .section .rodata.str1.1,"aMS",@progbits,1
81 .type $.str1,@object # @.str1
82 $.str1:
84 .size $.str1, 5
/external/swiftshader/third_party/llvm-7.0/llvm/test/MC/Mips/
Delf-relsym.s51 lw $2, %got($.str1)($1)
52 addiu $2, $2, %lo($.str1)
76 .section .rodata.str1.1,"aMS",@progbits,1
81 .type $.str1,@object # @.str1
82 $.str1:
84 .size $.str1, 5
/external/ltp/testcases/kernel/syscalls/memmap/
Dmem03.c75 char str1[] = "testing 123"; in main() local
86 write(f1, str1, strlen(str1)); in main()
101 if (strncmp(str1, mm1, strlen(str1))) in main()
126 if (strncmp(str1, mm1, strlen(str1))) in main()

12345678910>>...19