Home
last modified time | relevance | path

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

12345678910>>...14

/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.c66 PRIV(strcmp)(PCRE2_SPTR str1, PCRE2_SPTR str2) in PRIV()
69 while (*str1 != '\0' || *str2 != '\0') in PRIV()
71 c1 = *str1++; in PRIV()
94 PRIV(strcmp_c8)(PCRE2_SPTR str1, const char *str2) in PRIV()
97 while (*str1 != '\0' || *str2 != '\0') in PRIV()
99 c1 = *str1++; in PRIV()
121 PRIV(strncmp)(PCRE2_SPTR str1, PCRE2_SPTR str2, size_t len) in PRIV()
126 c1 = *str1++; in PRIV()
150 PRIV(strncmp_c8)(PCRE2_SPTR str1, const char *str2, size_t len) in PRIV()
155 c1 = *str1++; in PRIV()
[all …]
/external/pdfium/core/fxcrt/
Dfx_string.h189 inline CFX_ByteString operator+(const CFX_ByteStringC& str1,
191 return CFX_ByteString(str1, str2);
193 inline CFX_ByteString operator+(const CFX_ByteStringC& str1,
195 return CFX_ByteString(str1, str2);
197 inline CFX_ByteString operator+(const FX_CHAR* str1,
199 return CFX_ByteString(str1, str2);
201 inline CFX_ByteString operator+(const CFX_ByteStringC& str1, FX_CHAR ch) {
202 return CFX_ByteString(str1, CFX_ByteStringC(ch));
207 inline CFX_ByteString operator+(const CFX_ByteString& str1,
209 return CFX_ByteString(str1.AsStringC(), str2.AsStringC());
[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/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/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()
Ddelete_and_lookup.c47 const char *str1 = "test1"; in main() local
56 _mesa_hash_table_insert(ht, str1, NULL); in main()
62 entry = _mesa_hash_table_search(ht, str1); in main()
63 assert(strcmp(entry->key, str1) == 0); in main()
67 entry = _mesa_hash_table_search(ht, str1); in main()
/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/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/valgrind/none/tests/s390x/
Dclst.stdout.exp2 str1 = 123
7 str1 = 234
12 str1 = equal
17 str1 =
22 str1 = long
27 str1 = lower1
Dclst.c8 const char *str1; member
24 return (clst_t) { .str1 = string1, .str2 = string2, .cc = get_cc() }; in do_clst()
28 clst(const char *str1, const char *str2, int sentinel) in clst() argument
32 printf("comparing: %s with %s sentinel = %d", str1, str2, sentinel); in clst()
36 res = do_clst(str1, str2, sentinel); in clst()
37 printf("str1 = %s\nstr2 = %s\ncc = %d\n", res.str1, res.str2, res.cc); in clst()
/external/swiftshader/third_party/LLVM/test/MC/ELF/
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
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
Dentsize.s6 .section .rodata.str1.1,"aMS",@progbits,1
8 .type .L.str1,@object # @.str1
9 .L.str1:
11 .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
Dentsize.s6 .section .rodata.str1.1,"aMS",@progbits,1
8 .type .L.str1,@object # @.str1
9 .L.str1:
11 .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/libmojo/mojo/public/cpp/bindings/tests/
Dstring_unittest.cc99 String str1(std::move(std_str)); in TEST() local
100 EXPECT_TRUE(kHelloWorld == str1); in TEST()
102 String str2(std::move(str1)); in TEST()
104 EXPECT_TRUE(str1.is_null()); in TEST()
110 String str1; in TEST() local
111 str1 = std::move(std_str); in TEST()
112 EXPECT_TRUE(kHelloWorld == str1); in TEST()
115 str2 = std::move(str1); in TEST()
117 EXPECT_TRUE(str1.is_null()); in TEST()
/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()
/external/libusb/libusb/os/
Dwindows_common.h56 #define safe_strcmp(str1, str2) strcmp(((str1==NULL)?"<NULL>":str1), ((str2==NULL)?"<NULL>":str2)) argument
57 #define safe_stricmp(str1, str2) _stricmp(((str1==NULL)?"<NULL>":str1), ((str2==NULL)?"<NULL>":str2… argument
58 #define safe_strncmp(str1, str2, count) strncmp(((str1==NULL)?"<NULL>":str1), ((str2==NULL)?"<NULL>… argument
/external/icu/icu4c/source/common/
Dcstring.c235 uprv_stricmp(const char *str1, const char *str2) { in uprv_stricmp() argument
236 if(str1==NULL) { in uprv_stricmp()
250 c1=(unsigned char)*str1; in uprv_stricmp()
267 ++str1; in uprv_stricmp()
274 uprv_strnicmp(const char *str1, const char *str2, uint32_t n) { in uprv_strnicmp() argument
275 if(str1==NULL) { in uprv_strnicmp()
289 c1=(unsigned char)*str1; in uprv_strnicmp()
306 ++str1; in uprv_strnicmp()

12345678910>>...14