Home
last modified time | relevance | path

Searched refs:s1 (Results 1 – 25 of 84) sorted by relevance

1234

/haiku/src/libs/libsolv/solv/
H A Devr.c26 solv_vercmp_deb(const char *s1, const char *q1, const char *s2, const char *q2) in solv_vercmp_deb() argument
31 c1 = s1 < q1 ? *(const unsigned char *)s1++ : 0; in solv_vercmp_deb()
36 c1 = s1 < q1 ? *(const unsigned char *)s1++ : 0; in solv_vercmp_deb()
44 c1 = s1 < q1 ? *(const unsigned char *)s1++ : 0; in solv_vercmp_deb()
72 solv_vercmp_rpm(const char *s1, const char *q1, const char *s2, const char *q2) in solv_vercmp_rpm() argument
79 while (s1 < q1 && !(*s1 >= '0' && *s1 <= '9') && in solv_vercmp_rpm()
80 !(*s1 >= 'a' && *s1 <= 'z') && !(*s1 >= 'A' && *s1 <= 'Z') && *s1 != '~') in solv_vercmp_rpm()
81 s1++; in solv_vercmp_rpm()
85 if (s1 < q1 && *s1 == '~') in solv_vercmp_rpm()
89 s1++; in solv_vercmp_rpm()
[all …]
H A Dpolicy.h30 extern int policy_illegal_archchange(Solver *solv, Solvable *s1, Solvable *s2);
31 extern int policy_illegal_vendorchange(Solver *solv, Solvable *s1, Solvable *s2);
32 extern int policy_is_illegal(Solver *solv, Solvable *s1, Solvable *s2, int ignore);
H A Dpoolarch.h34 static inline int pool_colormatch(Pool *pool, Solvable *s1, Solvable *s2) in pool_colormatch() argument
36 if (s1->arch == s2->arch) in pool_colormatch()
38 if ((pool_arch2color(pool, s1->arch) & pool_arch2color(pool, s2->arch)) != 0) in pool_colormatch()
/haiku/headers/cpp/std/
H A Dstraits.h59 static int compare (const char_type* s1, const char_type* s2, size_t n) in compare()
63 if (ne (s1[i], s2[i])) in compare()
64 return lt (s1[i], s2[i]) ? -1 : 1; in compare()
77 static char_type* copy (char_type* s1, const char_type* s2, size_t n) in copy()
80 assign (s1[n], s2[n]); in copy()
81 return s1; in copy()
84 static char_type* move (char_type* s1, const char_type* s2, size_t n) in move()
91 assign (s1[i], a[i]); in move()
92 return s1; in move()
95 static char_type* set (char_type* s1, const char_type& c, size_t n) in set()
[all …]
/haiku/headers/libs/zydis/Zycore/
H A DLibC.h250 ZYAN_INLINE int ZYAN_MEMCMP(const void* s1, const void* s2, ZyanUSize n) in ZYAN_MEMCMP() argument
252 const ZyanU8* p1 = s1, *p2 = s2; in ZYAN_MEMCMP()
328 ZYAN_INLINE int ZYAN_STRCMP(const char* s1, const char* s2) in ZYAN_STRCMP() argument
330 while (*s1 && (*s1 == *s2)) in ZYAN_STRCMP()
332 s1++, s2++; in ZYAN_STRCMP()
334 return *(const ZyanU8*)s1 - *(const ZyanU8*)s2; in ZYAN_STRCMP()
337 ZYAN_INLINE int ZYAN_STRCOLL(const char *s1, const char *s2) in ZYAN_STRCOLL() argument
341 ZYAN_UNUSED(s1); in ZYAN_STRCOLL()
354 ZYAN_INLINE ZyanUSize ZYAN_STRCSPN(const char *s1, const char *s2) in ZYAN_STRCSPN() argument
357 while (*s1) in ZYAN_STRCSPN()
[all …]
/haiku/src/libs/iconv/
H A Dcp932.h97 unsigned char s1, s2; in cp932_mbtowc() local
98 s1 = c; in cp932_mbtowc()
99 if ((s1 >= 0x81 && s1 <= 0x9f && s1 != 0x87) || (s1 >= 0xe0 && s1 <= 0xea)) { in cp932_mbtowc()
104 unsigned char t1 = (s1 < 0xe0 ? s1-0x81 : s1-0xc1); in cp932_mbtowc()
111 } else if ((s1 == 0x87) || (s1 >= 0xed && s1 <= 0xee) || (s1 >= 0xfa)) { in cp932_mbtowc()
115 } else if (s1 >= 0xf0 && s1 <= 0xf9) { in cp932_mbtowc()
122 *pwc = 0xe000 + 188*(s1 - 0xf0) + (s2 < 0x80 ? s2-0x40 : s2-0x41); in cp932_mbtowc()
H A Dshift_jisx0213.h247 unsigned int s1, s2; in shift_jisx0213_wctomb() local
251 s1 = jch >> 8; in shift_jisx0213_wctomb()
253 s1 -= 0x21; in shift_jisx0213_wctomb()
255 if (s1 >= 0x5e) { in shift_jisx0213_wctomb()
257 if (s1 >= 0xcd) /* rows 0x26E..0x27E */ in shift_jisx0213_wctomb()
258 s1 -= 102; in shift_jisx0213_wctomb()
259 else if (s1 >= 0x8b || s1 == 0x87) /* rows 0x228, 0x22C..0x22F */ in shift_jisx0213_wctomb()
260 s1 -= 40; in shift_jisx0213_wctomb()
262 s1 -= 34; in shift_jisx0213_wctomb()
265 if (s1 & 1) in shift_jisx0213_wctomb()
[all …]
H A Dsjis.h53 unsigned char s1, s2; in sjis_mbtowc() local
54 s1 = c; in sjis_mbtowc()
55 if ((s1 >= 0x81 && s1 <= 0x9f) || (s1 >= 0xe0 && s1 <= 0xea)) { in sjis_mbtowc()
60 unsigned char t1 = (s1 < 0xe0 ? s1-0x81 : s1-0xc1); in sjis_mbtowc()
67 } else if (s1 >= 0xf0 && s1 <= 0xf9) { in sjis_mbtowc()
74 *pwc = 0xe000 + 188*(s1 - 0xf0) + (s2 < 0x80 ? s2-0x40 : s2-0x41); in sjis_mbtowc()
H A Djohab.h63 unsigned char s1, s2; in johab_mbtowc() local
64 s1 = c; in johab_mbtowc()
65 if ((s1 >= 0xd9 && s1 <= 0xde) || (s1 >= 0xe0 && s1 <= 0xf9)) { in johab_mbtowc()
74 if (!(s1 == 0xda && (s2 >= 0xa1 && s2 <= 0xd3))) { in johab_mbtowc()
75 unsigned char t1 = (s1 < 0xe0 ? 2*(s1-0xd9) : 2*s1-0x197); in johab_mbtowc()
/haiku/src/libs/compat/freebsd_wlan/crypto/rijndael/
H A Drijndael-alg-fst.c864 u32 s0, s1, s2, s3, t0, t1, t2, t3; in rijndaelEncrypt() local
874 s1 = GETU32(pt + 4) ^ rk[1]; in rijndaelEncrypt()
879 t0 = Te0[s0 >> 24] ^ Te1[(s1 >> 16) & 0xff] ^ Te2[(s2 >> 8) & 0xff] ^ Te3[s3 & 0xff] ^ rk[ 4]; in rijndaelEncrypt()
880 t1 = Te0[s1 >> 24] ^ Te1[(s2 >> 16) & 0xff] ^ Te2[(s3 >> 8) & 0xff] ^ Te3[s0 & 0xff] ^ rk[ 5]; in rijndaelEncrypt()
881 t2 = Te0[s2 >> 24] ^ Te1[(s3 >> 16) & 0xff] ^ Te2[(s0 >> 8) & 0xff] ^ Te3[s1 & 0xff] ^ rk[ 6]; in rijndaelEncrypt()
882 t3 = Te0[s3 >> 24] ^ Te1[(s0 >> 16) & 0xff] ^ Te2[(s1 >> 8) & 0xff] ^ Te3[s2 & 0xff] ^ rk[ 7]; in rijndaelEncrypt()
885 s1 = Te0[t1 >> 24] ^ Te1[(t2 >> 16) & 0xff] ^ Te2[(t3 >> 8) & 0xff] ^ Te3[t0 & 0xff] ^ rk[ 9]; in rijndaelEncrypt()
889 t0 = Te0[s0 >> 24] ^ Te1[(s1 >> 16) & 0xff] ^ Te2[(s2 >> 8) & 0xff] ^ Te3[s3 & 0xff] ^ rk[12]; in rijndaelEncrypt()
890 t1 = Te0[s1 >> 24] ^ Te1[(s2 >> 16) & 0xff] ^ Te2[(s3 >> 8) & 0xff] ^ Te3[s0 & 0xff] ^ rk[13]; in rijndaelEncrypt()
891 t2 = Te0[s2 >> 24] ^ Te1[(s3 >> 16) & 0xff] ^ Te2[(s0 >> 8) & 0xff] ^ Te3[s1 & 0xff] ^ rk[14]; in rijndaelEncrypt()
[all …]
/haiku/src/system/libroot/posix/string/
H A Dstrstr.c10 strstr(const char *s1, const char *s2) in strstr() argument
15 return (char *) s1; in strstr()
17 for (; (s1 = strchr(s1, *s2)) != NULL; s1++) { in strstr()
18 if (strncmp(s1, s2, s2len) == 0) in strstr()
19 return (char *)s1; in strstr()
H A Dstrcasecmp.c42 strcasecmp(const char *s1, const char *s2) in strcasecmp() argument
44 const u_char *us1 = (const u_char *)s1; in strcasecmp()
57 strncasecmp(const char *s1, const char *s2, size_t n) in strncasecmp() argument
60 const u_char *us1 = (const u_char *)s1; in strncasecmp()
75 strcasecmp_l(const char *s1, const char *s2, locale_t locale) in strcasecmp_l() argument
78 *us1 = (const u_char *)s1, in strcasecmp_l()
89 strncasecmp_l(const char *s1, const char *s2, size_t n, locale_t locale) in strncasecmp_l() argument
93 *us1 = (const u_char *)s1, in strncasecmp_l()
/haiku/headers/os/locale/
H A DCollator.h60 int Compare(const char* s1, const char* s2)
62 bool Equal(const char* s1, const char* s2)
64 bool Greater(const char* s1, const char* s2)
66 bool GreaterOrEqual(const char* s1, const char* s2)
81 BCollator::Equal(const char *s1, const char *s2) const in Equal() argument
83 return Compare(s1, s2) == 0; in Equal()
88 BCollator::Greater(const char *s1, const char *s2) const in Greater() argument
90 return Compare(s1, s2) > 0; in Greater()
95 BCollator::GreaterOrEqual(const char *s1, const char *s2) const in GreaterOrEqual() argument
97 return Compare(s1, s2) >= 0; in GreaterOrEqual()
H A DLocale.h45 int StringCompare(const char* s1,
47 int StringCompare(const BString* s1,
65 BLocale::StringCompare(const char* s1, const char* s2) const in StringCompare() argument
67 return fCollator.Compare(s1, s2); in StringCompare()
72 BLocale::StringCompare(const BString* s1, const BString* s2) const in StringCompare() argument
74 return fCollator.Compare(s1->String(), s2->String()); in StringCompare()
/haiku/src/libs/libtelnet/
H A Dgenget.c53 isprefix(char *s1, const char *s2) in isprefix() argument
58 if (*s1 == '\0') in isprefix()
60 os1 = s1; in isprefix()
61 c1 = *s1; in isprefix()
66 c1 = *++s1; in isprefix()
69 return(*s1 ? 0 : (*s2 ? (s1 - os1) : (os1 - s1))); in isprefix()
/haiku/src/libs/libsolv/ext/
H A Dtools_util.h58 join2(struct joindata *jd, const char *s1, const char *s2, const char *s3) in join2() argument
63 if (s1) in join2()
64 l += strlen(s1); in join2()
75 if (s1) in join2()
77 strcpy(p, s1); in join2()
78 p += strlen(s1); in join2()
/haiku/headers/cpp/
H A Dcstring33 _G_strpbrk (const char *s1, const char *s2)
35 return strpbrk (s1, s2);
39 _G_strpbrk (char *s1, const char *s2)
41 return const_cast<char *> (strpbrk (s1, s2));
57 _G_strstr (const char *s1, const char *s2)
59 return strstr (s1, s2);
63 _G_strstr (char *s1, const char *s2)
65 return const_cast<char *> (strstr (s1, s2));
/haiku/src/apps/haikudepot/util/
H A DStringUtils.cpp43 StringUtils::NullSafeCompare(const char* s1, const char* s2) in NullSafeCompare() argument
45 if ((NULL == s1) && (NULL == s2)) in NullSafeCompare()
47 if (NULL == s1) in NullSafeCompare()
51 return strcmp(s1, s2); in NullSafeCompare()
/haiku/src/system/libroot/posix/musl/math/
H A Datanf.c43 float_t w,s1,s2,z; in atanf() local
88 s1 = z*(aT[0]+w*(aT[2]+w*aT[4])); in atanf()
91 return x - x*(s1+s2); in atanf()
92 z = atanhi[id] - ((x*(s1+s2) - atanlo[id]) - x); in atanf()
H A Datan.c65 double_t w,s1,s2,z; in atan() local
110 s1 = z*(aT[0]+w*(aT[2]+w*(aT[4]+w*(aT[6]+w*(aT[8]+w*aT[10]))))); in atan()
113 return x - x*(s1+s2); in atan()
114 z = atanhi[id] - (x*(s1+s2) - atanlo[id] - x); in atan()
H A Dsqrt.c88 uint32_t r,t1,s1,ix1,q1; in sqrt() local
128 q = q1 = s0 = s1 = 0; /* [q,q1] = sqrt(x) */ in sqrt()
145 t1 = s1 + r; in sqrt()
148 s1 = t1 + r; in sqrt()
149 if ((t1&sign) == sign && (s1&sign) == 0) in sqrt()
/haiku/src/kits/tracker/
H A DTrackerString.cpp394 const char* s1 = string1; in UTF8CharsAreEqual() local
397 if (IsStartOfGlyph(*s1) && *s1 == *s2) { in UTF8CharsAreEqual()
398 s1++; in UTF8CharsAreEqual()
401 while (IsInsideGlyph(*s1) && *s1 == *s2) { in UTF8CharsAreEqual()
402 s1++; in UTF8CharsAreEqual()
406 return !IsInsideGlyph(*s1) in UTF8CharsAreEqual()
407 && !IsInsideGlyph(*s2) && *(s1 - 1) == *(s2 - 1); in UTF8CharsAreEqual()
/haiku/src/add-ons/print/drivers/lpstyl/
H A DLpstyl.cpp82 int s1; in _EjectAndReset() local
87 s1 = _GetStatus('1'); in _EjectAndReset()
94 if (s1 == 1) { in _EjectAndReset()
99 } while (s1 == 1); in _EjectAndReset()
/haiku/src/libs/zydis/Zycore/
H A DString.c187 ZyanStatus ZyanStringConcat(ZyanString* destination, const ZyanStringView* s1, in ZyanStringConcat() argument
190 return ZyanStringConcatEx(destination, s1, s2, capacity, ZyanAllocatorDefault(), in ZyanStringConcat()
196 ZyanStatus ZyanStringConcatEx(ZyanString* destination, const ZyanStringView* s1, in ZyanStringConcatEx() argument
200 if (!s1 || !s2 || !s1->string.vector.size || !s2->string.vector.size) in ZyanStringConcatEx()
205 const ZyanUSize len = s1->string.vector.size + s2->string.vector.size - 1; in ZyanStringConcatEx()
210 ZYAN_MEMCPY(destination->vector.data, s1->string.vector.data, s1->string.vector.size - 1); in ZyanStringConcatEx()
211 ZYAN_MEMCPY((char*)destination->vector.data + s1->string.vector.size - 1, in ZyanStringConcatEx()
219 ZyanStatus ZyanStringConcatCustomBuffer(ZyanString* destination, const ZyanStringView* s1, in ZyanStringConcatCustomBuffer() argument
222 if (!s1 || !s2 || !s1->string.vector.size || !s2->string.vector.size) in ZyanStringConcatCustomBuffer()
227 const ZyanUSize len = s1->string.vector.size + s2->string.vector.size - 1; in ZyanStringConcatCustomBuffer()
[all …]
/haiku/docs/user/locale/
H A DCollator.dox196 \fn int BCollator::Compare(const char* s1, const char* s2)
203 \param s1 The first string to compare.
209 \retval <0 if s1 is less than s2.
210 \retval >0 if s1 is greater than s2.
219 \fn bool BCollator::Equal(const char* s1, const char* s2)
230 \param s1 The first string to compare.
240 \fn bool BCollator::Greater(const char* s1, const char* s2)
244 \note !Greater(s1, s2) is the same as GreaterOrEqual(s2, s1). This means
245 there is no need for Lesser(s1, s2) and LesserOrEqual(s1, s2) methods.
247 \param s1 The first string to compare.
[all …]

1234