ObjFW  Check-in [e03385a820]

Overview
Comment:Optimize -[OFString_UTF8 isEqual:] a little.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: e03385a820c42b4d1e209141a661c8684e7f0fa0b55bccd37a31012b64009f4a
User & Date: js on 2013-01-10 22:51:25
Other Links: manifest | tags
Context
2013-01-10
22:52
Make sure Doxygen is not confused by some defines. check-in: 25d85f9de2 user: js tags: trunk
22:51
Optimize -[OFString_UTF8 isEqual:] a little. check-in: e03385a820 user: js tags: trunk
2013-01-09
22:24
Update copyright. check-in: 813c00ccf0 user: js tags: trunk
Changes

Modified src/OFString_UTF8.m from [511ae88739] to [a02eabeb4e].

768
769
770
771
772
773
774






775
776
777
778
779
780
781
		return NO;

	otherString = object;

	if ([otherString UTF8StringLength] != s->cStringLength ||
	    [otherString length] != s->length)
		return NO;







	if (strcmp(s->cString, [otherString UTF8String]))
		return NO;

	return YES;
}








>
>
>
>
>
>







768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
		return NO;

	otherString = object;

	if ([otherString UTF8StringLength] != s->cStringLength ||
	    [otherString length] != s->length)
		return NO;

	if (([otherString isKindOfClass: [OFString_UTF8 class]] ||
	    [otherString isKindOfClass: [OFMutableString_UTF8 class]]) &&
	    s->hashed && otherString->s->hashed &&
	    s->hash != otherString->s->hash)
		return NO;

	if (strcmp(s->cString, [otherString UTF8String]))
		return NO;

	return YES;
}