Home
last modified time | relevance | path

Searched refs:string (Results 1 – 25 of 1527) sorted by relevance

12345678910>>...62

/haiku/src/bin/mail_utils/
H A Dmail2mbox.cpp92 char* string = lineString + 4; in IsStartOfMailMessage() local
93 while (*string == ' ') in IsStartOfMailMessage()
94 string++; in IsStartOfMailMessage()
98 while (*string != ' ' && *string != 0) in IsStartOfMailMessage()
99 string++; in IsStartOfMailMessage()
100 while (*string == ' ') in IsStartOfMailMessage()
101 string++; in IsStartOfMailMessage()
106 if (memcmp(string, "Mon", 3) != 0 && memcmp(string, "Tue", 3) != 0 in IsStartOfMailMessage()
107 && memcmp(string, "Wed", 3) != 0 && memcmp(string, "Thu", 3) != 0 in IsStartOfMailMessage()
108 && memcmp(string, "Fri", 3) != 0 && memcmp(string, "Sat", 3) != 0 in IsStartOfMailMessage()
[all …]
/haiku/src/tests/kits/support/bstring/
H A DStringFormatAppendTest.cpp6 StringFormatAppendTest::StringFormatAppendTest(std::string name) in StringFormatAppendTest()
20 BString *string, *string2; in PerformTest() local
24 string = new BString("some"); in PerformTest()
25 *string << " "; in PerformTest()
26 *string << "text"; in PerformTest()
27 CPPUNIT_ASSERT(strcmp(string->String(), "some text") == 0); in PerformTest()
28 delete string; in PerformTest()
32 string = new BString("some "); in PerformTest()
34 *string << *string2; in PerformTest()
35 CPPUNIT_ASSERT(strcmp(string->String(), "some text") == 0); in PerformTest()
[all …]
H A DStringCaseTest.cpp6 StringCaseTest::StringCaseTest(std::string name) in StringCaseTest()
20 BString *string; in PerformTest() local
24 string = new BString("this is a sentence"); in PerformTest()
25 string->Capitalize(); in PerformTest()
26 CPPUNIT_ASSERT(strcmp(string->String(), "This is a sentence") == 0); in PerformTest()
27 delete string; in PerformTest()
30 string = new BString("134this is a sentence"); in PerformTest()
31 string->Capitalize(); in PerformTest()
32 CPPUNIT_ASSERT(strcmp(string->String(), "134this is a sentence") == 0); in PerformTest()
33 delete string; in PerformTest()
[all …]
H A DStringConstructionTest.cpp6 StringConstructionTest::StringConstructionTest(std::string name) in StringConstructionTest()
20 BString *string; in PerformTest() local
25 string = new BString; in PerformTest()
26 CPPUNIT_ASSERT(strcmp(string->String(), "") == 0); in PerformTest()
27 CPPUNIT_ASSERT(string->Length() == 0); in PerformTest()
28 delete string; in PerformTest()
32 string = new BString(str); in PerformTest()
33 CPPUNIT_ASSERT(strcmp(string->String(), str) == 0); in PerformTest()
34 CPPUNIT_ASSERT((unsigned)string->Length() == strlen(str)); in PerformTest()
35 delete string; in PerformTest()
[all …]
/haiku/src/system/libroot/posix/glibc/locale/
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: not_available },
[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: "Tuesday" },
[all …]
H A DC-ctype.c551 { string: _nl_C_LC_CTYPE_class },
553 { string: (const char *) _nl_C_LC_CTYPE_toupper },
555 { string: NULL },
557 { string: (const char *) _nl_C_LC_CTYPE_tolower },
559 { string: NULL },
561 { string: _nl_C_LC_CTYPE_class32 },
563 { string: NULL },
565 { string: NULL },
567 { string: NULL },
569 { string: NULL },
[all …]
/haiku/src/kits/tracker/
H A DTrackerString.cpp50 TrackerString::TrackerString(const char* string) in TrackerString() argument
52 BString(string) in TrackerString()
57 TrackerString::TrackerString(const TrackerString &string) in TrackerString() argument
59 BString(string) in TrackerString()
64 TrackerString::TrackerString(const char* string, int32 maxLength) in TrackerString() argument
66 BString(string, maxLength) in TrackerString()
77 TrackerString::Matches(const char* string, bool caseSensitivity, in Matches() argument
86 return StartsWith(string, caseSensitivity); in Matches()
89 return EndsWith(string, caseSensitivity); in Matches()
92 return Contains(string, caseSensitivity); in Matches()
[all …]
/haiku/src/libs/zydis/Zycore/
H A DString.c37 #define ZYCORE_STRING_NULLTERMINATE(string) \ argument
38 *(char*)((ZyanU8*)(string)->vector.data + (string)->vector.size - 1) = '\0';
43 #define ZYCORE_STRING_ASSERT_NULLTERMINATION(string) \ argument
44 ZYAN_ASSERT(*(char*)((ZyanU8*)(string)->vector.data + (string)->vector.size - 1) == '\0');
56 ZyanStatus ZyanStringInit(ZyanString* string, ZyanUSize capacity) in ZyanStringInit() argument
58 return ZyanStringInitEx(string, capacity, ZyanAllocatorDefault(), in ZyanStringInit()
64 ZyanStatus ZyanStringInitEx(ZyanString* string, ZyanUSize capacity, ZyanAllocator* allocator, in ZyanStringInitEx() argument
67 if (!string) in ZyanStringInitEx()
72 string->flags = 0; in ZyanStringInitEx()
74 ZYAN_CHECK(ZyanVectorInitEx(&string->vector, sizeof(char), capacity, ZYAN_NULL, allocator, in ZyanStringInitEx()
[all …]
H A DFormat.c75 #define ZYCORE_STRING_NULLTERMINATE(string) \ argument
76 *(char*)((ZyanU8*)(string)->vector.data + (string)->vector.size - 1) = '\0';
87 ZyanStatus ZyanStringAppendDecU32(ZyanString* string, ZyanU32 value, ZyanU8 padding_length) in ZyanStringAppendDecU32() argument
89 if (!string) in ZyanStringAppendDecU32()
110 const ZyanUSize length_target = string->vector.size; in ZyanStringAppendDecU32()
112 if (string->vector.size + length_total > string->vector.capacity) in ZyanStringAppendDecU32()
114 ZYAN_CHECK(ZyanStringResize(string, string->vector.size + length_total - 1)); in ZyanStringAppendDecU32()
121 ZYAN_MEMSET((char*)string->vector.data + length_target - 1, '0', offset_write); in ZyanStringAppendDecU32()
124 ZYAN_MEMCPY((char*)string->vector.data + length_target + offset_write - 1, in ZyanStringAppendDecU32()
126 string->vector.size = length_target + length_total; in ZyanStringAppendDecU32()
[all …]
/haiku/headers/os/locale/tools/
H A DCollectingCatalog.h11 #define B_TRANSLATE(string) \ argument
12 B_CATKEY((string), B_TRANSLATION_CONTEXT)
15 #define B_TRANSLATE_CONTEXT(string, context) \ argument
16 B_CATKEY((string), (context))
19 #define B_TRANSLATE_COMMENT(string, comment) \ argument
20 B_CATKEY((string), B_TRANSLATION_CONTEXT, (comment))
23 #define B_TRANSLATE_ALL(string, context, comment) \ argument
24 B_CATKEY((string), (context), (comment))
31 #define B_TRANSLATE_SYSTEM_NAME(string) \ argument
32 B_CATKEY((string), B_TRANSLATION_SYSTEM_NAME_CONTEXT)
[all …]
/haiku/src/tests/kits/support/
H A Dstring_utf8_tests.cpp9 expect(BString &string, const char *expect, size_t bytes, int32 chars) in expect() argument
12 printf("got: \"%s\" %lu %ld\n", string.String(), string.Length(), string.CountChars()); in expect()
13 if (bytes != (size_t)string.Length()) { in expect()
18 if (chars != string.CountChars()) { in expect()
23 if (memcmp(string.String(), expect, bytes) != 0) { in expect()
34 BString string("ü-ä-ö"); in main() local
35 expect(string, "ü-ä-ö", 8, 5); in main()
38 string.ReplaceCharsSet("üö", B_UTF8_ELLIPSIS); in main()
39 expect(string, B_UTF8_ELLIPSIS "-ä-" B_UTF8_ELLIPSIS, 10, 5); in main()
43 string.MoveCharsInto(ellipsis, 4, 1); in main()
[all …]
/haiku/headers/os/support/
H A DString.h22 BString(const char* string);
23 BString(const BString& string);
24 BString(const char* string, int32 maxLength);
26 BString(BString&& string) noexcept;
39 static uint32 HashValue(const char* string);
42 BString& operator=(const BString& string);
43 BString& operator=(const char* string);
46 BString& operator=(BString&& string) noexcept;
49 BString& SetTo(const char* string);
50 BString& SetTo(const char* string, int32 maxLength);
[all …]
/haiku/src/add-ons/kernel/file_systems/ramfs/
H A DString.h17 inline String(const String &string);
18 inline String(const char *string, int32 length = -1);
21 inline bool SetTo(const char *string, int32 maxLength = -1);
29 inline String &operator=(const String &string);
30 inline bool operator==(const String &string) const;
31 inline bool operator!=(const String &string) const { return !(*this == string); }
34 inline bool _SetTo(const char *string, int32 length);
54 String::String(const String &string) in String() argument
58 *this = string; in String()
62 String::String(const char *string, int32 length) in String() argument
[all …]
/haiku/src/add-ons/kernel/file_systems/userlandfs/shared/
H A DString.cpp21 String::String(const String &string) in String() argument
25 *this = string; in String()
29 String::String(const char *string, int32 length) in String() argument
33 SetTo(string, length); in String()
44 String::SetTo(const char *string, int32 maxLength) in SetTo() argument
46 if (string) { in SetTo()
48 maxLength = strnlen(string, maxLength); in SetTo()
50 maxLength = strlen(string); in SetTo()
52 return _SetTo(string, maxLength); in SetTo()
73 char *string = fString; in Truncate() local
[all …]
/haiku/src/kits/shared/
H A DHashString.cpp23 HashString::HashString(const HashString &string) in HashString() argument
27 *this = string; in HashString()
31 HashString::HashString(const char *string, int32 length) in HashString() argument
35 SetTo(string, length); in HashString()
46 HashString::SetTo(const char *string, int32 maxLength) in SetTo() argument
48 if (string) { in SetTo()
50 maxLength = strnlen(string, maxLength); in SetTo()
52 maxLength = strlen(string); in SetTo()
54 return _SetTo(string, maxLength); in SetTo()
75 char *string = fString; in Truncate() local
[all …]
/haiku/src/kits/support/
H A DString.cpp58 strlen_clamp(const char* string, int32 max) in strlen_clamp() argument
61 return max <= 0 ? 0 : strnlen(string, max); in strlen_clamp()
67 string_length(const char* string) in string_length() argument
69 return string != NULL ? strlen(string) : 0; in string_length()
75 safestr(const char* string) in safestr() argument
77 return string != NULL ? string : ""; in safestr()
167 BString::BString(const char* string) in BString() argument
171 _Init(string, strlen(safestr(string))); in BString()
175 BString::BString(const BString& string) in BString() argument
180 if (string._IsShareable()) { in BString()
[all …]
/haiku/headers/os/locale/
H A DCatalog.h32 const char* GetString(const char* string,
108 #define B_TRANSLATE(string) \ argument
109 B_CATALOG->GetString((string), B_TRANSLATION_CONTEXT)
112 #define B_TRANSLATE_CONTEXT(string, context) \ argument
113 B_CATALOG->GetString((string), (context))
116 #define B_TRANSLATE_COMMENT(string, comment) \ argument
117 B_CATALOG->GetString((string), \
121 #define B_TRANSLATE_ALL(string, context, comment) \ argument
122 B_CATALOG->GetString((string), (context), \
130 #define B_TRANSLATE_SYSTEM_NAME(string) \ argument
[all …]
/haiku/src/libs/zydis/Zydis/
H A DString.c69 static ZyanStatus ZydisStringAppendDecU32(ZyanString* string, ZyanU32 value, ZyanU8 padding_length) in ZydisStringAppendDecU32() argument
71 ZYAN_ASSERT(string); in ZydisStringAppendDecU32()
72 ZYAN_ASSERT(!string->vector.allocator); in ZydisStringAppendDecU32()
90 const ZyanUSize length_target = string->vector.size; in ZydisStringAppendDecU32()
92 if (string->vector.size + length_total > string->vector.capacity) in ZydisStringAppendDecU32()
101 ZYAN_MEMSET((char*)string->vector.data + length_target - 1, '0', offset_write); in ZydisStringAppendDecU32()
104 ZYAN_MEMCPY((char*)string->vector.data + length_target + offset_write - 1, in ZydisStringAppendDecU32()
106 string->vector.size = length_target + length_total; in ZydisStringAppendDecU32()
107 ZYDIS_STRING_NULLTERMINATE(string); in ZydisStringAppendDecU32()
113 static ZyanStatus ZydisStringAppendDecU64(ZyanString* string, ZyanU64 value, ZyanU8 padding_length) in ZydisStringAppendDecU64() argument
[all …]
/haiku/src/apps/codycam/
H A DFtpClient.h19 using std::string;
38 bool Connect(const string& server,
39 const string& login,
40 const string& passwd);
42 bool PutFile(const string& local,
43 const string& remote,
46 bool GetFile(const string& remote,
47 const string& local,
50 bool MoveFile(const string& oldPath,
51 const string& newPath);
[all …]
H A DSftpClient.h24 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& oldPath,
45 const string& newPath);
[all …]
H A DFileUploadClient.h13 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& oldPath,
39 const string& newPath);
[all …]
H A DFileUploadClient.cpp22 FileUploadClient::ChangeDir(const string& dir) in ChangeDir()
29 FileUploadClient::ListDirContents(string& listing) in ListDirContents()
36 FileUploadClient::PrintWorkingDir(string& dir) in PrintWorkingDir()
43 FileUploadClient::Connect(const string& server, const string& login, in Connect()
44 const string& passwd) in Connect()
51 FileUploadClient::PutFile(const string& local, const string& remote, in PutFile()
59 FileUploadClient::GetFile(const string& remote, const string& local, in GetFile()
69 FileUploadClient::MoveFile(const string& oldPath, const string& newPath) in MoveFile()
76 FileUploadClient::Chmod(const string& path, const string& mod) in Chmod()
/haiku/src/kits/package/hpkg/
H A DStrings.cpp36 CachedString* string = Lookup(value); in Get() local
37 if (string != NULL) { in Get()
38 string->usageCount++; in Get()
39 return string; in Get()
42 string = new CachedString; in Get()
43 if (!string->Init(value)) { in Get()
44 delete string; in Get()
48 Insert(string); in Get()
49 return string; in Get()
54 StringCache::Put(CachedString* string) in Put() argument
[all …]
/haiku/src/bin/debug/strace/
H A Dsignals.cpp52 std::string
149 std::string
153 std::string string; in signal_info() local
155 string.reserve(256); in signal_info()
157 string += "{"; in signal_info()
158 string += "si_signo="; in signal_info()
159 string += signal_name(info.si_signo); in signal_info()
160 string += ", si_code="; in signal_info()
161 string += signal_code(info.si_signo, info.si_code); in signal_info()
164 string += ", si_errno=0x"; in signal_info()
[all …]

12345678910>>...62