Many Foundation APIs use Int8 instead of CChar when representing C strings,
e.g.:
var UTF8String: UnsafePointer
<https://developer.apple.com/library/mac/documentation/Swift/Reference/Swift_UnsafePointer_Structure/index.html#//apple_ref/swift/struct/s:VSs13UnsafePointer><Int8
<https://developer.apple.com/library/mac/documentation/Swift/Reference/Swift_Int8_Structure/index.html#//apple_ref/swift/struct/s:VSs4Int8>>
{ get }
I don’t know if/when Swift will be ported to a platform where the character
type is unsigned but perhaps it would be good to update these to take CChar
instead?
— Luke
_______________________________________________
swift-corelibs-dev mailing list
swift-corelibs-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-corelibs-dev