ObjFW  Diff

Differences From Artifact [5ddb402b32]:

To Artifact [384f44e40d]:


95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113

	madvise((void*)str, len, MADV_NORMAL);

	return (utf8 ? 1 : 0);
}

@implementation OFString
+ new
{
	return [[self alloc] init];
}

+ newFromCString: (const char*)str
{
	return [[self alloc] initFromCString: str];
}

+ newFromFormatCString: (const char*)fmt, ...
{







<
<
<
<
<







95
96
97
98
99
100
101





102
103
104
105
106
107
108

	madvise((void*)str, len, MADV_NORMAL);

	return (utf8 ? 1 : 0);
}

@implementation OFString





+ newFromCString: (const char*)str
{
	return [[self alloc] initFromCString: str];
}

+ newFromFormatCString: (const char*)fmt, ...
{