Home
last modified time | relevance | path

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

12345678910>>...17

/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.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/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/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 …]
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/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/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/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()
Dremove_key.c36 const char *str1 = "test1"; in main() local
45 _mesa_hash_table_insert(ht, str1, NULL); in main()
51 entry = _mesa_hash_table_search(ht, str1); in main()
52 assert(strcmp(entry->key, str1) == 0); in main()
54 _mesa_hash_table_remove_key(ht, str1); in main()
56 entry = _mesa_hash_table_search(ht, 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/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/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/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
Dentsize.s6 .section .rodata.str1.1,"aMS",@progbits,1
8 .type .L.str1,@object # @.str1
9 .L.str1:
11 .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/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/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>>...17