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

1234567

/vbox/src/libs/xpcom18a4/nsprpub/lib/libc/src/
H A Dstrtok.c42 PL_strtok_r(char *s1, const char *s2, char **lasts) argument
48 if( s1 == NULL )
53 s1 = *lasts;
56 for( ; (c = *s1) != 0; s1++ )
73 tok = s1++;
75 for( ; (c = *s1) != 0; s1++ )
81 *s1++ = '\0';
82 *lasts = s1;
[all...]
/vbox/src/VBox/Devices/EFI/Firmware/StdLib/LibC/String/
H A DConcatenation.c22 to by s1. The initial character of s2 overwrites the null character at the
23 end of s1. If copying takes place between objects that overlap, the
26 @return The strcat function returns the value of s1.
29 strcat(char * __restrict s1, const char * __restrict s2) argument
31 return AsciiStrCat( s1, s2);
36 by s2 to the end of the string pointed to by s1. The initial character of
37 s2 overwrites the null character at the end of s1. A terminating null
41 @return The strncat function returns the value of s1.
44 strncat(char * __restrict s1, const char * __restrict s2, size_t n) argument
46 return AsciiStrnCat( s1, s
64 strncatX(char * __restrict s1, const char * __restrict s2, size_t n) argument
[all...]
H A DComparison.c23 to by s1 to the first n characters of the object pointed to by s2.
26 less than zero, accordingly as the object pointed to by s1 is
29 int memcmp(const void *s1, const void *s2, size_t n) argument
31 return (int)CompareMem( s1, s2, n);
34 /** The strcmp function compares the string pointed to by s1 to the string
38 less than zero, accordingly as the string pointed to by s1 is
41 int strcmp(const char *s1, const char *s2) argument
43 return (int)AsciiStrCmp( s1, s2);
46 /** The strcoll function compares the string pointed to by s1 to the string
51 or less than zero, accordingly as the string pointed to by s1 i
55 strcoll(const char *s1, const char *s2) argument
70 strncmp(const char *s1, const char *s2, size_t n) argument
108 strcasecmp(const char *s1, const char *s2) argument
[all...]
H A DSearching.c82 the string pointed to by s1 which consists entirely of characters not from
88 strcspn(const char *s1, const char *s2) argument
95 if(*s1 == '\0') return 0;
99 for(str = s1; ; str++) {
105 return (str - s1);
109 by s1 of any character from the string pointed to by s2.
112 null pointer if no character from s2 occurs in s1.
115 strpbrk(const char *s1, const char *s2) argument
123 for( ; *s1 != '\0'; ++s1) {
221 strtok(char * __restrict s1, const char * __restrict s2) argument
[all...]
H A DCopying.c28 into the object pointed to by s1.
30 The implementation is reentrant and handles the case where s2 overlaps s1.
32 @return The memcpy function returns the value of s1.
35 memcpy(void * __restrict s1, const void * __restrict s2, size_t n) argument
37 return CopyMem( s1, s2, n);
42 into the object pointed to by s1. Copying takes place as if the n
45 to by s1 and s2, and then the n characters from the temporary array are
46 copied into the object pointed to by s1.
48 This is a version of memcpy that is guaranteed to work when s1 and s2
52 @return The memmove function returns the value of s1
55 memmove(void *s1, const void *s2, size_t n) argument
67 strcpy(char * __restrict s1, const char * __restrict s2) argument
87 strncpy(char * __restrict s1, const char * __restrict s2, size_t n) argument
117 strncpyX(char * __restrict s1, const char * __restrict s2, size_t n) argument
[all...]
H A Dstrncasecmp.c61 strncasecmp(const char *s1, const char *s2, size_t n)
64 _DIAGASSERT(s1 != NULL);
68 const unsigned char *us1 = (const unsigned char *)s1,
/vbox/src/libs/xpcom18a4/xpcom/tests/
H A DTestXPIDLString.cpp14 nsXPIDLString s1; local
15 nsXPIDLStringTest_Value(getter_Copies(s1));
H A DTestCRT.cpp60 static void Check(const char* s1, const char* s2, PRIntn n) argument
62 PRIntn clib = PL_strcmp(s1, s2);
63 PRIntn clib_n = PL_strncmp(s1, s2, n);
64 PRIntn clib_case = PL_strcasecmp(s1, s2);
65 PRIntn clib_case_n = PL_strncasecmp(s1, s2, n);
68 t1.AssignWithConversion(s1);
81 const char* s1; member in struct:Test
108 Check(tp->s1, tp->s2, tp->n);
/vbox/src/VBox/Devices/EFI/Firmware/StdLib/LibC/Wchar/
H A DComparison.c25 /** The wcscmp function compares the wide string pointed to by s1 to the wide
29 less than zero, accordingly as the wide string pointed to by s1
33 int wcscmp(const wchar_t *s1, const wchar_t *s2) argument
35 return (int)StrCmp( (CONST CHAR16 *)s1, (CONST CHAR16 *)s2);
38 /** The wcscoll function compares the wide string pointed to by s1 to the wide
44 s1 is greater than, equal to, or less than the wide string
48 //int wcscoll(const wchar_t *s1, const wchar_t *s2)
55 s1 to the array pointed to by s2.
59 array pointed to by s1 is greater than, equal to, or less than
62 int wcsncmp(const wchar_t *s1, cons argument
94 wmemcmp(const wchar_t *s1, const wchar_t *s2, size_t n) argument
[all...]
H A DSearching.c79 the wide string pointed to by s1 which consists entirely of wide characters
84 size_t wcscspn(const wchar_t *s1, const wchar_t *s2) argument
91 if(*s1 == 0) return 0;
92 s1len = wcslen(s1);
96 for(str = s1; str < &s1[s1len] ; str++) {
102 return (str - s1);
106 pointed to by s1 of any wide character from the wide string
110 in s1, or a null pointer if no wide character from s2 occurs
111 in s1
113 wcspbrk(const wchar_t *s1, const wchar_t *s2) argument
154 wcsspn(const wchar_t *s1, const wchar_t *s2) argument
179 wcsstr(const wchar_t *s1, const wchar_t *s2) argument
219 wcstok(wchar_t * __restrict s1, const wchar_t * __restrict s2, wchar_t ** __restrict ptr) argument
[all...]
H A DCopying.c26 terminating null wide character) into the array pointed to by s1.
28 @return The wcscpy function returns the value of s1.
30 wchar_t *wcscpy(wchar_t * __restrict s1, const wchar_t * __restrict s2) argument
32 return (wchar_t *)StrCpy( (CHAR16 *)s1, (CONST CHAR16 *)s2);
37 s2 to the array pointed to by s1.
41 pointed to by s1, until n wide characters in all have been written.
43 @return The wcsncpy function returns the value of s1.
45 wchar_t *wcsncpy(wchar_t * __restrict s1, const wchar_t * __restrict s2, size_t n) argument
47 return (wchar_t *)StrnCpy( (CHAR16 *)s1, (CONST CHAR16 *)s2, (UINTN)n);
51 s2 to the object pointed to by s1
58 wmemcpy(wchar_t * __restrict s1, const wchar_t * __restrict s2, size_t n) argument
77 wmemmove(wchar_t *s1, const wchar_t *s2, size_t n) argument
[all...]
H A DConcatenation.c27 string pointed to by s1. The initial wide character of s2 overwrites the
28 null wide character at the end of s1.
30 @return The wcscat function returns the value of s1.
32 wchar_t *wcscat(wchar_t * __restrict s1, const wchar_t * __restrict s2) argument
34 return (wchar_t *)StrCat( (CHAR16 *)s1, (CONST CHAR16 *)s2);
39 to by s2 to the end of the wide string pointed to by s1. The initial wide
40 character of s2 overwrites the null wide character at the end of s1.
43 @return The wcsncat function returns the value of s1.
45 wchar_t *wcsncat(wchar_t * __restrict s1, const wchar_t * __restrict s2, size_t n) argument
47 return (wchar_t *)StrnCat( (CHAR16 *)s1, (CONS
[all...]
/vbox/src/VBox/Devices/EFI/Firmware/StdLib/LibC/Locale/
H A Dwcscoll.c43 wcscoll(const wchar_t *s1, const wchar_t *s2) argument
46 return (wcscmp(s1, s2));
H A Dwcsxfrm.c44 wchar_t *s1,
55 wcscpy(s1, s2);
43 wcsxfrm( wchar_t *s1, const wchar_t *s2, size_t n ) argument
/vbox/src/recompiler/tests/
H A Dtest-i386-shift.h11 #define EXECSHIFT(size, rsize, res, s1, s2, flags) \
18 : "r" (s1), "0" (res), "1" (flags));
20 #define EXECSHIFT(size, rsize, res, s1, s2, flags) \
27 : "c" (s1), "0" (res), "1" (flags));
31 void exec_opq(long s2, long s0, long s1, long iflags) argument
36 EXECSHIFT("q", "", res, s1, s2, flags);
38 if (s1 != 1)
41 stringify(OP) "q", s0, s1, res, iflags, flags & CC_MASK);
45 void exec_opl(long s2, long s0, long s1, long iflags) argument
50 EXECSHIFT("l", "k", res, s1, s
58 exec_opw(long s2, long s0, long s1, long iflags) argument
82 exec_opq(long s2, long s0, long s1, long iflags) argument
96 exec_opl(long s2, long s0, long s1, long iflags) argument
109 exec_opw(long s2, long s0, long s1, long iflags) argument
125 exec_opb(long s0, long s1, long iflags) argument
139 exec_op(long s2, long s0, long s1) argument
[all...]
H A Dtest-i386.h8 #define EXECOP2(size, rsize, res, s1, flags) \
15 : "q" (s1), "0" (res), "1" (flags)); \
17 stringify(OP) size, s0, s1, res, iflags, flags & CC_MASK);
32 void exec_opq(long s0, long s1, long iflags) argument
41 void exec_opl(long s0, long s1, long iflags) argument
49 void exec_opw(long s0, long s1, long iflags) argument
57 void exec_opb(long s0, long s1, long iflags) argument
66 void exec_opq(long s0, long s1, long iflags) argument
71 EXECOP2("q", "", res, s1, flags);
75 void exec_opl(long s0, long s1, lon argument
83 exec_opw(long s0, long s1, long iflags) argument
91 exec_opb(long s0, long s1, long iflags) argument
100 exec_op(long s0, long s1) argument
[all...]
H A Dtest-i386-muldiv.h4 long res, s1, s0, flags; local
6 s1 = op1;
15 : "q" (s1), "0" (res), "1" (flags));
17 stringify(OP) "b", s0, s1, res, flags & CC_MASK);
22 long res, s1, flags, resh; local
23 s1 = op1;
33 : "q" (s1), "0" (res), "1" (flags), "2" (resh));
35 stringify(OP) "w", op0h, op0, s1, resh, res, flags & CC_MASK);
40 long res, s1, flags, resh; local
41 s1
59 long res, s1, flags, resh; local
[all...]
/vbox/src/VBox/Devices/Graphics/shaderlib/wine/include/msvcrt/
H A Dmemory.h28 static inline int memicmp(const void* s1, const void* s2, size_t len) { return _memicmp(s1, s2, len); } argument
29 static inline void* memccpy(void *s1, const void *s2, int c, size_t n) { return _memccpy(s1, s2, c, n); } argument
H A Dstring.h40 static inline int memicmp(const void* s1, const void* s2, size_t len) { return _memicmp(s1, s2, len); } argument
41 static inline void* memccpy(void *s1, const void *s2, int c, size_t n) { return _memccpy(s1, s2, c, n); } argument
134 static inline int strcasecmp(const char* s1, const char* s2) { return _stricmp(s1, s2); } argument
135 static inline int strcmpi(const char* s1, const char* s2) { return _strcmpi(s1, s2); } argument
137 static inline int stricmp(const char* s1, const char* s2) { return _stricmp(s1, s argument
138 stricoll(const char* s1, const char* s2) argument
141 strnicmp(const char* s1, const char* s2, size_t n) argument
[all...]
/vbox/src/VBox/Additions/WINNT/Graphics/Wine/include/msvcrt/
H A Dmemory.h37 static inline int memicmp(const void* s1, const void* s2, size_t len) { return _memicmp(s1, s2, len); } argument
38 static inline void* memccpy(void *s1, const void *s2, int c, size_t n) { return _memccpy(s1, s2, c, n); } argument
H A Dstring.h49 static inline int memicmp(const void* s1, const void* s2, size_t len) { return _memicmp(s1, s2, len); } argument
50 static inline void* memccpy(void *s1, const void *s2, int c, size_t n) { return _memccpy(s1, s2, c, n); } argument
119 static inline int strcasecmp(const char* s1, const char* s2) { return _stricmp(s1, s2); } argument
120 static inline int strcmpi(const char* s1, const char* s2) { return _strcmpi(s1, s2); } argument
122 static inline int stricmp(const char* s1, const char* s2) { return _stricmp(s1, s argument
123 stricoll(const char* s1, const char* s2) argument
126 strnicmp(const char* s1, const char* s2, size_t n) argument
[all...]
/vbox/src/libs/xpcom18a4/xpcom/tests/StringFactoringTests/
H A Dprofile_main.cpp151 nsCString s1("This is a reasonable length string with some text in it and it is good.");
155 PRUint32 len = TotalLength( s1 + s2 + s3 + s1 + s2 + s3 );
177 len += TotalLength( s1 + s2 + s3 + s1 + s2 + s3 );
179 cout << "TotalLength( s1 + s2 + s3 + s1 + s2 + s3 )" << endl;
185 len += TotalLength( s1 + s2 );
187 cout << "TotalLength( s1 + s2 )" << endl;
197 nsCString s1("Thi
370 nsCString s1; local
[all...]
/vbox/src/libs/xpcom18a4/xpcom/string/public/
H A DnsCharTraits.h146 move( char_type* s1, const char_type* s2, size_t n ) argument
148 return NS_STATIC_CAST(char_type*, memmove(s1, s2, n * sizeof(char_type)));
153 copy( char_type* s1, const char_type* s2, size_t n ) argument
155 return NS_STATIC_CAST(char_type*, memcpy(s1, s2, n * sizeof(char_type)));
160 copyASCII( char_type* s1, const char* s2, size_t n ) argument
162 for (char_type* s = s1; n--; ++s, ++s2) {
166 return s1;
185 compare( const char_type* s1, const char_type* s2, size_t n ) argument
188 return wmemcmp(s1, s2, n);
190 for ( ; n--; ++s1,
202 compareASCII( const char_type* s1, const char* s2, size_t n ) argument
219 compareASCIINullTerminated( const char_type* s1, size_t n, const char* s2 ) argument
262 compareLowerCaseToASCII( const char_type* s1, const char* s2, size_t n ) argument
282 compareLowerCaseToASCIINullTerminated( const char_type* s1, size_t n, const char* s2 ) argument
427 move( char_type* s1, const char_type* s2, size_t n ) argument
434 copy( char_type* s1, const char_type* s2, size_t n ) argument
441 copyASCII( char_type* s1, const char* s2, size_t n ) argument
455 compare( const char_type* s1, const char_type* s2, size_t n ) argument
462 compareASCII( const char_type* s1, const char* s2, size_t n ) argument
478 compareASCIINullTerminated( const char_type* s1, size_t n, const char* s2 ) argument
509 compareLowerCaseToASCII( const char_type* s1, const char* s2, size_t n ) argument
528 compareLowerCaseToASCIINullTerminated( const char_type* s1, size_t n, const char* s2 ) argument
[all...]
/vbox/src/VBox/ExtPacks/VBoxDTrace/onnv/cmd/dtrace/test/tst/common/funcs/
H A Dtst.strtok.d88 string s1;
97 command[i].s1 = "";
102 command[i].s1 = "foo";
104 command[i].result = command[i].s1;
107 command[i].s1 = "foobar";
112 command[i].s1 = "oobar";
117 command[i].s1 = "foo";
119 command[i].result = command[i].s1;
122 command[i].s1 = "";
133 (this->result = strtok(command[i].s1, comman
[all...]
/vbox/src/libs/xpcom18a4/xpcom/tests/windows/
H A DnsStringTest.h156 nsString s1("ijk");
183 pos=theDest.Find(s1);
192 pos=theDest.FindCharInSet(s1);
207 pos=theDest.RFindCharInSet(s1);
225 stringtype s1("hello there rick");
227 PRInt32 pos=s1.FindChar('r'); //this will search from the beginning, and for the length of the string.
230 pos=s1.FindChar('r',PR_FALSE,0,5); //this will search from the front using count. THIS WILL FAIL!
233 pos=s1.FindChar('r',PR_FALSE,0,10); //this will search from the front using count. THIS WILL SUCCEED!
236 pos=s1.FindChar('i',PR_FALSE,5,5); //this will search from the middle using count. THIS WILL FAIL!
239 pos=s1
[all...]

Completed in 309 milliseconds

1234567