/external/compiler-rt/test/dfsan/ |
D | custom.cc | 75 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/ |
D | pcre2_string_utils.c | 102 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/ |
D | bytestring.h | 60 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 …]
|
D | widestring.h | 58 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/ |
D | strncmp-1.ll | 21 %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 …]
|
D | strcmp-1.ll | 21 %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/ |
D | test_utilities.c | 278 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/ |
D | strncmp-1.ll | 21 %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 …]
|
D | strcmp-1.ll | 21 %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/ |
D | xmlstring.c | 132 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/ |
D | subsep-overflow.awk | 10 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/ |
D | collision.c | 39 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()
|
D | replacement.c | 39 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()
|
D | remove_key.c | 36 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/ |
D | strcmp.ll | 21 %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/ |
D | switch-crit-edge-constant.ll | 4 ; CHECK: {{mov.*str1}} 5 ; CHECK-NOT: {{mov.*str1}} 9 @str1 = internal constant [5 x i8] c"bonk\00" ; <[5 x i8]*> [#uses=1] 37 …str1, i32 0, i64 0), %entry ], [ getelementptr ([5 x i8], [5 x i8]* @str1, i32 0, i64 0), %entry ]…
|
/external/llvm/test/CodeGen/X86/ |
D | switch-crit-edge-constant.ll | 4 ; CHECK: {{mov.*str1}} 5 ; CHECK-NOT: {{mov.*str1}} 9 @str1 = internal constant [5 x i8] c"bonk\00" ; <[5 x i8]*> [#uses=1] 37 …str1, i32 0, i64 0), %entry ], [ getelementptr ([5 x i8], [5 x i8]* @str1, i32 0, i64 0), %entry ]…
|
/external/llvm/test/MC/ELF/ |
D | basic-elf-32.s | 10 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
|
D | basic-elf-64.s | 10 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
|
D | entsize.s | 6 .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/ |
D | basic-elf-32.s | 10 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
|
D | basic-elf-64.s | 10 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/ |
D | elf-relsym.s | 51 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/ |
D | elf-relsym.s | 51 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/ |
D | mem03.c | 75 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()
|