mirror of
https://github.com/darlinghq/darling-corefoundation.git
synced 2024-11-30 07:10:34 +00:00
More TFB fixes
This commit is contained in:
parent
2d6c3b0be0
commit
d3d4a845c2
@ -1642,7 +1642,7 @@ CFStringRef CFStringCreateWithFormat(CFAllocatorRef alloc, CFDictionaryRef form
|
||||
}
|
||||
|
||||
CFStringRef CFStringCreateWithSubstring(CFAllocatorRef alloc, CFStringRef str, CFRange range) {
|
||||
// CF_OBJC_FUNCDISPATCHV(__kCFStringTypeID, CFStringRef , (NSString *)str, _createSubstringWithRange:NSMakeRange(range.location, range.length));
|
||||
CF_OBJC_FUNCDISPATCHV(__kCFStringTypeID, CFStringRef , (NSString *)str, _createSubstringWithRange:NSMakeRange(range.location, range.length));
|
||||
|
||||
__CFAssertIsString(str);
|
||||
__CFAssertRangeIsInStringBounds(str, range.location, range.length);
|
||||
@ -1659,7 +1659,7 @@ CFStringRef CFStringCreateWithSubstring(CFAllocatorRef alloc, CFStringRef str, C
|
||||
}
|
||||
|
||||
CFStringRef CFStringCreateCopy(CFAllocatorRef alloc, CFStringRef str) {
|
||||
// CF_OBJC_FUNCDISPATCHV(__kCFStringTypeID, CFStringRef, (NSString *)str, copy);
|
||||
CF_OBJC_FUNCDISPATCHV(__kCFStringTypeID, CFStringRef, (NSString *)str, copy);
|
||||
|
||||
__CFAssertIsString(str);
|
||||
if (!__CFStrIsMutable((CFStringRef)str) && // If the string is not mutable
|
||||
@ -1940,7 +1940,7 @@ CFMutableStringRef CFStringCreateMutable(CFAllocatorRef alloc, CFIndex maxLength
|
||||
CFMutableStringRef CFStringCreateMutableCopy(CFAllocatorRef alloc, CFIndex maxLength, CFStringRef string) {
|
||||
CFMutableStringRef newString;
|
||||
|
||||
// CF_OBJC_FUNCDISPATCHV(__kCFStringTypeID, CFMutableStringRef, (NSString *)string, mutableCopy);
|
||||
CF_OBJC_FUNCDISPATCHV(__kCFStringTypeID, CFMutableStringRef, (NSString *)string, mutableCopy);
|
||||
|
||||
__CFAssertIsString(string);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user