Home
last modified time | relevance | path

Searched refs:str1 (Results 1 – 25 of 34) sorted by path

12

/freebsd/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/safety/
H A Dtst.shortstr.d65 this->str1 = ".........................................";
66 printf("%d\n", index(this->str, this->str1));
71 printf("%d\n", rindex(this->str, this->str1));
/freebsd/contrib/ee/
H A Dee.c2301 unsigned char *str1; in get_line() local
2324 str1 = str2; in get_line()
2354 *point = *str1; in get_line()
2356 str1++; in get_line()
4129 unsigned char *str1; in ee_init() local
4184 str1 = next_word(str1); in ee_init()
4185 if (*str1 != '\0') in ee_init()
4186 echo_string(str1); in ee_init()
4190 str1 = next_word(str1); in ee_init()
4196 str1 = next_word(str1); in ee_init()
[all …]
/freebsd/contrib/elftoolchain/libdwarf/
H A Ddwarf_pro_macinfo.c33 Dwarf_Signed fileindex, char *str1, char *str2, Dwarf_Error *error) in _dwarf_add_macro() argument
54 if (str1 == NULL) in _dwarf_add_macro()
57 if ((md->dmd_macro = strdup(str1)) == NULL) { in _dwarf_add_macro()
64 len = strlen(str1) + strlen(str2) + 2; in _dwarf_add_macro()
70 snprintf(md->dmd_macro, len, "%s %s", str1, str2); in _dwarf_add_macro()
/freebsd/contrib/googletest/docs/
H A Dgmock_cook_book.md4262 MOCK_METHOD(string, DoThat, (int x, const char* str1, const char* str2),
/freebsd/contrib/googletest/docs/reference/
H A Dassertions.md233 `EXPECT_STREQ(`*`str1`*`,`*`str2`*`)` \
234 `ASSERT_STREQ(`*`str1`*`,`*`str2`*`)`
236 Verifies that the two C strings *`str1`* and *`str2`* have the same contents.
240 `EXPECT_STRNE(`*`str1`*`,`*`str2`*`)` \
241 `ASSERT_STRNE(`*`str1`*`,`*`str2`*`)`
243 Verifies that the two C strings *`str1`* and *`str2`* have different contents.
247 `EXPECT_STRCASEEQ(`*`str1`*`,`*`str2`*`)` \
248 `ASSERT_STRCASEEQ(`*`str1`*`,`*`str2`*`)`
250 Verifies that the two C strings *`str1`* and *`str2`* have the same contents,
255 `EXPECT_STRCASENE(`*`str1`*`,`*`str2`*`)` \
[all …]
/freebsd/contrib/googletest/googlemock/test/
H A Dgmock-matchers-comparisons_test.cc1252 std::string str1("oabocdooeoo"); in TEST() local
1254 Matcher<const std::string&> m0 = StrCaseEq(str1); in TEST()
1257 str1[3] = str2[3] = '\0'; in TEST()
1258 Matcher<const std::string&> m1 = StrCaseEq(str1); in TEST()
1261 str1[0] = str1[6] = str1[7] = str1[10] = '\0'; in TEST()
1263 Matcher<const std::string&> m2 = StrCaseEq(str1); in TEST()
1264 str1[9] = str2[9] = '\0'; in TEST()
1981 ::std::wstring str1(L"oabocdooeoo"); in TEST()
1986 str1[3] = str2[3] = L'\0'; in TEST()
1990 str1[0] = str1[6] = str1[7] = str1[10] = L'\0'; in TEST()
[all …]
/freebsd/contrib/googletest/googletest/test/
H A Dgtest_unittest.cc4792 static const ::std::string str1("A * in the middle"); in TEST() local
4793 static const ::std::string str2(str1); in TEST()
4794 EXPECT_EQ(str1, str2); in TEST()
4806 static ::std::string str3(str1); in TEST()
4808 EXPECT_FATAL_FAILURE(ASSERT_EQ(str1, str3), in TEST()
/freebsd/contrib/ldns/
H A Dradix.c63 static int ldns_radix_str_is_prefix(uint8_t* str1, radix_strlen_t len1,
65 static radix_strlen_t ldns_radix_str_common(uint8_t* str1, radix_strlen_t len1,
1192 ldns_radix_str_is_prefix(uint8_t* str1, radix_strlen_t len1, in ldns_radix_str_is_prefix() argument
1201 return (memcmp(str1, str2, len1) == 0); in ldns_radix_str_is_prefix()
1215 ldns_radix_str_common(uint8_t* str1, radix_strlen_t len1, in ldns_radix_str_common() argument
1220 if (str1[i] != str2[i]) { in ldns_radix_str_common()
/freebsd/contrib/libdiff/diff/
H A Ddiff.c190 char *str1, *str2; in diffreg() local
219 f1 = openfile(file1, &str1, &st1); in diffreg()
229 rc = diff_atomize_file(&left, cfg, f1, str1, st1.st_size, diff_flags); in diffreg()
251 if (str1) in diffreg()
252 munmap(str1, st1.st_size); in diffreg()
/freebsd/contrib/libevent/include/event2/
H A Dutil.h662 int evutil_ascii_strcasecmp(const char *str1, const char *str2);
667 int evutil_ascii_strncasecmp(const char *str1, const char *str2, size_t n);
/freebsd/contrib/libpcap/
H A Dpcap-sita.c505 char str1[MAX_LINE_SIZE], str2[MAX_LINE_SIZE]; in if_sort() local
523 …strncpy(str1, s1, (s1_p1_len > sizeof(str1)) ? s1_p1_len : sizeof(str1)); *(str1 + s1_p1_len) = … in if_sort()
525 retval = strcmp(str1, str2); in if_sort()
/freebsd/contrib/netbsd-tests/lib/libpthread/
H A Dh_cancel.c42 char str1[] = "You should see this.\n"; in main() local
53 write(STDOUT_FILENO, str1, sizeof(str1)-1); in main()
/freebsd/contrib/ntp/sntp/libevent/include/event2/
H A Dutil.h662 int evutil_ascii_strcasecmp(const char *str1, const char *str2);
667 int evutil_ascii_strncasecmp(const char *str1, const char *str2, size_t n);
/freebsd/contrib/one-true-awk/bugs-fixed/
H A 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);
/freebsd/contrib/tcpdump/
H A Dprint-zephyr.c142 #define ZEPHYR_PRINT(str1,str2) \ argument
143 { ND_PRINT("%s", (str1)); fn_print_str(ndo, (const u_char *)(str2)); }
/freebsd/contrib/tcsh/
H A Dsh.func.c2220 limtail2(Char *cp, const char *str1, const char *str2) in limtail2() argument
2222 if (strtail(cp, str1) && strtail(cp, str2)) in limtail2()
2223 stderror(ERR_BADSCALE, str1); in limtail2()
H A Dtc.str.c358 for (; *str1 && *str1 == *str2; str1++, str2++)
372 return (*str1 - *str2);
381 if (*str1 != *str2) {
387 if (*str1 == '\0')
392 return (*str1 - *str2);
396 str1++, str2++;
407 for (; *str1; str1++, str2++)
408 if (*str1 == *str2)
414 for (; *str1; str1++, str2++)
415 if (*str1 == *str2)
[all …]
H A Dtw.parse.c2238 StrQcmp(const Char *str1, const Char *str2) in StrQcmp() argument
2240 for (; *str1 && samecase(*str1 & TRIM) == samecase(*str2 & TRIM); in StrQcmp()
2241 str1++, str2++) in StrQcmp()
2248 if (*str1 == '\0' && *str2 == '\0') in StrQcmp()
2250 else if (*str1 == '\0') in StrQcmp()
2255 return ((*str1 & TRIM) - (*str2 & TRIM)); in StrQcmp()
/freebsd/crypto/openssl/test/
H A Ddsatest.c80 static const unsigned char str1[] = "12345678901234567890"; in dsa_test() local
114 if (!TEST_true(DSA_sign(0, str1, 20, sig, &siglen, dsa))) in dsa_test()
116 if (TEST_int_gt(DSA_verify(0, str1, 20, sig, siglen, dsa), 0)) in dsa_test()
H A Dlocaletest.c95 char str1[] = "SubjectPublicKeyInfo", str2[] = "subjectpublickeyinfo"; in setup_tests() local
104 res = strcasecmp(str1, str2); in setup_tests()
107 if (!TEST_false(OPENSSL_strcasecmp(str1, str2))) in setup_tests()
/freebsd/crypto/openssl/util/perl/OpenSSL/
H A DOID.pm222 my $str1 = join(',', @nums);
226 unless $str1 eq $str2;
/freebsd/lib/libc/iconv/
H A Dcitrus_bcs.c42 _citrus_bcs_strcasecmp(const char * __restrict str1, in _citrus_bcs_strcasecmp() argument
50 c1 = _bcs_toupper(*str1++); in _citrus_bcs_strcasecmp()
61 _citrus_bcs_strncasecmp(const char * __restrict str1, in _citrus_bcs_strncasecmp() argument
69 c1 = _bcs_toupper(*str1++); in _citrus_bcs_strncasecmp()
/freebsd/lib/libutil/
H A Dlogin_ok.c68 login_str2inlist(const char **ttlst, const char *str1, const char *str2, int flags) in login_str2inlist() argument
72 if (login_strinlist(ttlst, str1, flags)) in login_str2inlist()
/freebsd/sbin/ipf/ipfstat/
H A Dipfstat.c1495 snprintf(str1, sizeof(str1), "%s - %s - state top", hostnm, IPL_VERSION); in topipstates()
1498 printw("%s", str1); in topipstates()
1505 printw("%s\n", str1); in topipstates()
1513 snprintf(str1, sizeof(str1), "%s,%d", getip(ver, &saddr), sport); in topipstates()
1515 snprintf(str1, sizeof(str1), "%s", getip(ver, &saddr)); in topipstates()
1603 snprintf(str1, sizeof(str1), "%s,%hu", in topipstates()
1610 snprintf(str1, sizeof(str1), "%s", getip(tp->st_v, in topipstates()
1620 snprintf(str1, sizeof(str1), "%X/%X", tp->st_state[0], in topipstates()
1622 printw(" %3s", str1); in topipstates()
1628 str1[4] = '\0'; in topipstates()
[all …]
/freebsd/sbin/ipfw/
H A Dipfw2.c875 _substrcmp(const char *str1, const char* str2) in _substrcmp() argument
878 if (strncmp(str1, str2, strlen(str1)) != 0) in _substrcmp()
881 if (strlen(str1) != strlen(str2)) in _substrcmp()
883 str1, str2); in _substrcmp()
903 _substrcmp2(const char *str1, const char* str2, const char* str3) in _substrcmp2() argument
906 if (strncmp(str1, str2, strlen(str2)) != 0) in _substrcmp2()
909 if (strcmp(str1, str3) != 0) in _substrcmp2()
911 str1, str3); in _substrcmp2()

12