Searched refs:string (Results 1 - 25 of 3256) sorted by relevance

1234567891011>>

/haiku/src/system/libroot/posix/string/
H A Dstrchrnul.c8 #include <string.h>
12 strchrnul(const char* string, int c) argument
14 while (string[0] != (char)c && string[0])
15 string++;
17 return (char*)string;
H A Dstrlen.cpp6 #include <string.h>
17 strlen(const char* string) argument
22 for (; (((addr_t)string + length) & 3) != 0; length++) {
23 if (string[length] == '\0')
28 uint32* valuePointer = (uint32*)(string + length);
33 for (length = ((char*)valuePointer) - string; string[length] != '\0';
H A Dstrndup.cpp7 #include <string.h>
12 strndup(const char* string, size_t size) argument
15 if (string == NULL)
18 size_t length = strlen(string);
26 memcpy(copied, string, length);
H A Dstrdup.cpp7 #include <string.h>
12 strdup(const char *string) argument
19 if (string == NULL)
22 length = strlen(string) + 1;
27 memcpy(copied, string, length);
/haiku/headers/posix/
H A Dmemory.h7 #include <string.h>
/haiku/src/system/libroot/posix/glibc/locale/
H A DC-messages.c36 { string: "^[yY]" },
37 { string: "^[nN]" },
38 { string: "" },
39 { string: "" },
40 { string: _nl_C_codeset }
H A DC-monetary.c40 { string: "" },
41 { string: "" },
42 { string: "" },
43 { string: "" },
44 { string: "" },
45 { string: "" },
46 { string: "" },
47 { string: not_available },
48 { string: not_available },
49 { string
[all...]
H A DC-time.c35 { string: "Sun" },
36 { string: "Mon" },
37 { string: "Tue" },
38 { string: "Wed" },
39 { string: "Thu" },
40 { string: "Fri" },
41 { string: "Sat" },
42 { string: "Sunday" },
43 { string: "Monday" },
44 { string
[all...]
H A DC-numeric.c33 { string: "." },
34 { string: "" },
35 { string: "" },
38 { string: _nl_C_codeset }
/haiku/src/tests/kits/support/bstring/
H A DStringFormatAppendTest.cpp6 StringFormatAppendTest::StringFormatAppendTest(std::string name)
20 BString *string, *string2; local
24 string = new BString("some");
25 *string << " ";
26 *string << "text";
27 CPPUNIT_ASSERT(strcmp(string->String(), "some text") == 0);
28 delete string;
32 string = new BString("some ");
34 *string << *string2;
35 CPPUNIT_ASSERT(strcmp(string
[all...]
H A DStringCaseTest.cpp6 StringCaseTest::StringCaseTest(std::string name)
20 BString *string; local
24 string = new BString("this is a sentence");
25 string->Capitalize();
26 CPPUNIT_ASSERT(strcmp(string->String(), "This is a sentence") == 0);
27 delete string;
30 string = new BString("134this is a sentence");
31 string->Capitalize();
32 CPPUNIT_ASSERT(strcmp(string->String(), "134this is a sentence") == 0);
33 delete string;
[all...]
H A DStringConstructionTest.cpp6 StringConstructionTest::StringConstructionTest(std::string name)
20 BString *string; local
25 string = new BString;
26 CPPUNIT_ASSERT(strcmp(string->String(), "") == 0);
27 CPPUNIT_ASSERT(string->Length() == 0);
28 delete string;
32 string = new BString(str);
33 CPPUNIT_ASSERT(strcmp(string->String(), str) == 0);
34 CPPUNIT_ASSERT((unsigned)string->Length() == strlen(str));
35 delete string;
[all...]
H A DStringCharAccessTest.cpp6 StringCharAccessTest::StringCharAccessTest(std::string name)
20 BString string("A simple string");
24 CPPUNIT_ASSERT(string[0] == 'A');
25 CPPUNIT_ASSERT(string[1] == ' ');
29 string.SetByteAt(0, 'a');
30 CPPUNIT_ASSERT(strcmp(string.String(), "a simple string") == 0);
34 CPPUNIT_ASSERT(string.ByteAt(-10) == 0);
35 CPPUNIT_ASSERT(string
[all...]
/haiku/src/system/libroot/posix/glibc/include/
H A Dbyteswap.h1 #include <string/byteswap.h>
/haiku/src/apps/codycam/
H A DFileUploadClient.cpp22 FileUploadClient::ChangeDir(const string& dir)
29 FileUploadClient::ListDirContents(string& listing)
36 FileUploadClient::PrintWorkingDir(string& dir)
43 FileUploadClient::Connect(const string& server, const string& login,
44 const string& passwd)
51 FileUploadClient::PutFile(const string& local, const string& remote,
59 FileUploadClient::GetFile(const string& remote, const string
[all...]
H A DSftpClient.h11 #include <string>
24 using std::string;
32 virtual bool Connect(const string& server,
33 const string& login,
34 const string& passwd);
36 bool PutFile(const string& local,
37 const string& remote,
40 bool GetFile(const string& remote,
41 const string& local,
44 bool MoveFile(const string
[all...]
H A DFileUploadClient.h11 #include <string>
13 using std::string;
26 virtual bool Connect(const string& server,
27 const string& login,
28 const string& passwd);
30 virtual bool PutFile(const string& local,
31 const string& remote,
34 virtual bool GetFile(const string& remote,
35 const string& local,
38 virtual bool MoveFile(const string
[all...]
/haiku/src/kits/package/hpkg/
H A DStrings.cpp19 hash_string(const char* string) argument
21 if (string == NULL)
26 for (; *string; string++) {
30 h = (h << 4) + *string;
56 CachedString* string = Lookup(value); local
57 if (string != NULL) {
58 string->usageCount++;
59 return string;
62 string
74 Put(CachedString* string) argument
[all...]
/haiku/headers/libs/print/libprint/
H A DSpoolMetaData.h11 #include <string>
20 const string& GetDescription() const;
21 const string& GetMimeType() const;
22 const string& GetCreationTime() const;
25 string fDescription;
26 string fMimeType;
27 string fCreationTime;
/haiku/headers/os/locale/tools/
H A DCollectingCatalog.h11 #define B_TRANSLATE(string) \
12 B_CATKEY((string), B_TRANSLATION_CONTEXT)
15 #define B_TRANSLATE_CONTEXT(string, context) \
16 B_CATKEY((string), (context))
19 #define B_TRANSLATE_COMMENT(string, comment) \
20 B_CATKEY((string), B_TRANSLATION_CONTEXT, (comment))
23 #define B_TRANSLATE_ALL(string, context, comment) \
24 B_CATKEY((string), (context), (comment))
31 #define B_TRANSLATE_SYSTEM_NAME(string) \
32 B_CATKEY((string), B_TRANSLATION_SYSTEM_NAME_CONTEX
[all...]
/haiku/src/bin/mail_utils/
H A Dmail2mbox.cpp19 #include <string.h>
37 part describes the error, and if errorNumber is non-zero, gets the string
92 char* string = lineString + 4; local
93 while (*string == ' ')
94 string++;
96 // Skip over the e-mail address (or stop at the end of string).
98 while (*string != ' ' && *string != 0)
99 string++;
100 while (*string
253 char* string = line + strlen(line) - 1; local
[all...]
/haiku/src/kits/shared/
H A DHashString.cpp6 #include <string.h>
12 \brief A very simple string class.
23 HashString::HashString(const HashString &string) argument
27 *this = string;
31 HashString::HashString(const char *string, int32 length) argument
35 SetTo(string, length);
46 HashString::SetTo(const char *string, int32 maxLength) argument
48 if (string) {
50 maxLength = strnlen(string, maxLength);
52 maxLength = strlen(string);
75 char *string = fString; local
97 operator =(const HashString &string) argument
114 _SetTo(const char *string, int32 length) argument
[all...]
/haiku/src/libs/bsd/
H A Dstring.cpp6 #include <string.h>
10 strsep(char** string, const char* delimiters) argument
12 if (*string == NULL)
16 char* token = *string;
21 // terminate the token and update the string pointer
24 *string = end + 1;
26 *string = NULL;
/haiku/src/tests/kits/support/
H A Dstring_utf8_tests.cpp9 expect(BString &string, const char *expect, size_t bytes, int32 chars) argument
12 printf("got: \"%s\" %lu %ld\n", string.String(), string.Length(), string.CountChars());
13 if (bytes != (size_t)string.Length()) {
18 if (chars != string.CountChars()) {
23 if (memcmp(string.String(), expect, bytes) != 0) {
24 printf("expected string mismatch\n");
33 printf("setting string to ��-��-��\n");
34 BString string("��
[all...]
/haiku/src/apps/poorman/libhttpd/
H A Dmatch.c31 #include <string.h>
35 static int match_one( const char* pattern, int patternlen, const char* string );
38 match( const char* pattern, const char* string )
46 return match_one( pattern, strlen( pattern ), string );
47 if ( match_one( pattern, or - pattern, string ) )
55 match_one( const char* pattern, int patternlen, const char* string )
59 for ( p = pattern; p - pattern < patternlen; ++p, ++string )
61 if ( *p == '?' && *string != '\0' )
71 i = strlen( string );
75 i = strcspn( string, "/" );
[all...]

Completed in 181 milliseconds

1234567891011>>