Searched refs:s1 (Results 1 - 25 of 913) sorted by relevance

1234567891011>>

/macosx-10.10/xnu-2782.1.97/libsyscall/wrappers/string/
H A Dstrcmp.c40 strcmp(const char *s1, const char *s2) argument
42 while (*s1 == *s2++)
43 if (*s1++ == '\0')
45 return (*(const unsigned char *)s1 - *(const unsigned char *)(s2 - 1));
/macosx-10.10/Heimdal-398.1.2/lib/roken/
H A Dstrtok_r.c43 strtok_r(char *s1, const char *s2, char **lasts) argument
47 if (s1 == NULL)
48 s1 = *lasts;
49 while(*s1 && strchr(s2, *s1))
50 ++s1;
51 if(*s1 == '\0')
53 ret = s1;
54 while(*s1 && !strchr(s2, *s1))
[all...]
H A Dstrcasecmp.c44 strcasecmp(const char *s1, const char *s2) argument
46 while(toupper((unsigned char)*s1) == toupper((unsigned char)*s2)) {
47 if(*s1 == '\0')
49 s1++;
52 return toupper((unsigned char)*s1) - toupper((unsigned char)*s2);
H A Dstrncasecmp.c43 strncasecmp(const char *s1, const char *s2, size_t n) argument
46 && toupper((unsigned char)*s1) == toupper((unsigned char)*s2))
48 if(*s1 == '\0')
50 s1++;
56 return toupper((unsigned char)*s1) - toupper((unsigned char)*s2);
/macosx-10.10/BerkeleyDB-21/db/clib/
H A Dstrncmp.c46 strncmp(s1, s2, n)
47 const char *s1, *s2;
54 if (*s1 != *s2++)
55 return (*(const unsigned char *)s1 -
57 if (*s1++ == 0)
H A Dmemcmp.c49 memcmp(s1, s2, n)
50 const void *s1, *s2;
54 unsigned char *p1 = (unsigned char *)s1,
H A Dstrcasecmp.c49 strcasecmp(s1, s2)
50 const char *s1, *s2;
55 s1ch = *s1++;
78 strncasecmp(s1, s2, n)
79 const char *s1, *s2;
85 s1ch = *s1++;
/macosx-10.10/curl-83.1.2/curl/src/
H A Dtool_bname.c32 char *s1; local
35 s1 = strrchr(path, '/');
38 if(s1 && s2) {
39 path = (s1 > s2) ? s1 + 1 : s2 + 1;
41 else if(s1)
42 path = s1 + 1;
/macosx-10.10/Libc-1044.1.2/string/FreeBSD/
H A Dwcscmp.c48 wcscmp(const wchar_t *s1, const wchar_t *s2) argument
51 while (*s1 == *s2++)
52 if (*s1++ == '\0')
55 return (*(const unsigned int *)s1 - *(const unsigned int *)--s2);
H A Dwcsncmp.c42 wcsncmp(const wchar_t *s1, const wchar_t *s2, size_t n) argument
48 if (*s1 != *s2++) {
50 return (*(const unsigned int *)s1 -
53 if (*s1++ == 0)
H A Dwmemcmp.c40 wmemcmp(const wchar_t *s1, const wchar_t *s2, size_t n) argument
45 if (*s1 != *s2) {
47 return *s1 > *s2 ? 1 : -1;
49 s1++;
H A Dwcscasecmp.c36 wcscasecmp_l(const wchar_t *s1, const wchar_t *s2, locale_t loc) argument
40 for (; *s1; s1++, s2++) {
41 c1 = towlower_l(*s1, loc);
50 wcscasecmp(const wchar_t *s1, const wchar_t *s2) { argument
51 return wcscasecmp_l(s1, s2, __current_locale());
H A Dwcsncasecmp.c36 wcsncasecmp_l(const wchar_t *s1, const wchar_t *s2, size_t n, locale_t loc) argument
42 for (; *s1; s1++, s2++) {
43 c1 = towlower_l(*s1, loc);
54 wcsncasecmp(const wchar_t *s1, const wchar_t *s2, size_t n) { argument
55 return wcsncasecmp_l(s1, s2, n, __current_locale());
/macosx-10.10/OpenLDAP-499.27/OpenLDAP/libraries/liblutil/
H A Dmemcmp.c27 const unsigned char *s1=v1, *s2=v2; local
29 if (*s1++ != *s2++) return *--s1 - *--s2;
/macosx-10.10/cxxfilt-11/cxxfilt/libiberty/
H A Dmemcmp.c24 register const unsigned char *s1 = (const unsigned char*)str1; local
29 if (*s1++ != *s2++)
30 return s1[-1] < s2[-1] ? -1 : 1;
H A Dmemmove.c21 memmove (PTR s1, const PTR s2, size_t n) argument
23 bcopy (s2, s1, n);
24 return s1;
H A Dbcmp.c23 bcmp (const void *s1, const void *s2, size_t count) argument
25 return memcmp (s1, s2, count);
/macosx-10.10/libiconv-42/libiconv/srclib/
H A Dstreq.h28 streq9 (const char *s1, const char *s2) argument
30 return strcmp (s1 + 9, s2 + 9) == 0;
34 streq8 (const char *s1, const char *s2, char s28) argument
36 if (s1[8] == s28)
41 return streq9 (s1, s2);
48 streq7 (const char *s1, const char *s2, char s27, char s28) argument
50 if (s1[7] == s27)
55 return streq8 (s1, s2, s28);
62 streq6 (const char *s1, const char *s2, char s26, char s27, char s28) argument
64 if (s1[
76 streq5(const char *s1, const char *s2, char s25, char s26, char s27, char s28) argument
90 streq4(const char *s1, const char *s2, char s24, char s25, char s26, char s27, char s28) argument
104 streq3(const char *s1, const char *s2, char s23, char s24, char s25, char s26, char s27, char s28) argument
118 streq2(const char *s1, const char *s2, char s22, char s23, char s24, char s25, char s26, char s27, char s28) argument
132 streq1(const char *s1, const char *s2, char s21, char s22, char s23, char s24, char s25, char s26, char s27, char s28) argument
146 streq0(const char *s1, const char *s2, char s20, char s21, char s22, char s23, char s24, char s25, char s26, char s27, char s28) argument
[all...]
/macosx-10.10/ksh-23/ksh/src/lib/libast/comp/
H A Dmemcpy.c39 memcpy(void* s1, void* s2, size_t n)
41 bcopy(s2, s1, n);
42 return(s1);
50 register char* s1 = (char*)as1;
54 *s1++ = *s2++;
H A Dmemccpy.c33 * Copy s2 to s1, stopping if character c is copied. Copy no more than n bytes.
41 register char* s1 = (char*)as1;
46 if ((*s1++ = *s2++) == c)
47 return(s1);
/macosx-10.10/bash-94.1.2/bash-3.2/lib/sh/
H A Dstrcasecmp.c37 register const char *s1; local
44 s1 = string1;
48 if ((r = TOLOWER ((unsigned char) *s1) - TOLOWER ((unsigned char) *s2)) != 0)
50 if (*s1++ == '\0')
65 register const char *s1; local
69 s1 = string1;
72 if (s1 == s2)
75 while ((r = TOLOWER ((unsigned char)*s1) - TOLOWER ((unsigned char)*s2)) == 0)
77 if (*s1++ == '\0')
H A Dstrindex.c30 /* Determine if s2 occurs in s1. If so, return a pointer to the
31 match in s1. The compare is case insensitive. This is a
34 strindex (s1, s2)
35 const char *s1;
41 len = strlen (s1);
44 if ((TOLOWER ((unsigned char)s1[i]) == c) && (strncasecmp (s1 + i, s2, l) == 0))
45 return ((char *)s1 + i);
/macosx-10.10/tcl-105/tcl_ext/mk4tcl/metakit/tests/
H A Dtformat.cpp13 c4_Storage s1("f01a", 1);
14 s1.SetStructure("a[p1:I]");
16 c4_View v1 = s1.View("a");
18 s1.Commit();
20 c4_View v2 = s1.GetAs("b[p2:I]");
25 s1.Commit();
28 c4_Storage s1("f01a", 0);
30 c4_View v1 = s1.View("a");
34 c4_View v2 = s1.View("b");
49 c4_Storage s1("f02
[all...]
H A Dtstore1.cpp10 c4_Storage s1("s00a", 1);
11 s1.SetStructure("a[p1:I]");
12 s1.Commit();
21 c4_Storage s1("s01a", 1);
22 s1.SetStructure("a[p1:I]");
23 c4_View v1 = s1.View("a");
28 s1.Commit();
39 c4_Storage s1("s02a", 1);
40 s1.SetStructure("a[p1:F]");
41 c4_View v1 = s1
[all...]
/macosx-10.10/ruby-106/ruby/test/ruby/
H A Dtest_m17n_comb.rb117 def assert_str_enc_propagation(t, s1, s2)
118 if !s1.ascii_only?
119 assert_equal(s1.encoding, t.encoding)
123 assert([s1.encoding, s2.encoding].include?(t.encoding))
155 combination(STRINGS, STRINGS) {|s1, s2|
159 yield s1, Regexp.new(Regexp.escape(s2))
161 combination(STRINGS, STRINGS, 0..2) {|s1, s2, nth|
165 yield s1, Regexp.new(Regexp.escape(s2)), nth
205 combination(STRINGS, STRINGS) {|s1, s2|
206 if s1
[all...]

Completed in 158 milliseconds

1234567891011>>