diff --git a/core-foundation-sys/src/string.rs b/core-foundation-sys/src/string.rs index 8b92024..d4f6550 100644 --- a/core-foundation-sys/src/string.rs +++ b/core-foundation-sys/src/string.rs @@ -219,7 +219,11 @@ extern { contentsDeallocator: CFAllocatorRef) -> CFStringRef; //fn CFStringCreateWithCharacters - //fn CFStringCreateWithCharactersNoCopy + pub fn CFStringCreateWithCharactersNoCopy(alloc: CFAllocatorRef, + chars: *const UniChar, + numChars: CFIndex, + contentsDeallocator: CFAllocatorRef) + -> CFStringRef; pub fn CFStringCreateWithCString(alloc: CFAllocatorRef, cStr: *const c_char, encoding: CFStringEncoding)