<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Many Foundation APIs use Int8 instead of CChar when representing C strings, e.g.:</div><div class=""><div class="declaration" style="border: 0px; font-size: 10px; margin: 21px 0px 0px; outline: 0px; padding: 0px; vertical-align: baseline; font-family: Helvetica, Arial, sans-serif; line-height: normal; widows: 1; background-position: initial initial; background-repeat: initial initial;"><div class="Swift" style="border-width: 0px 0px 0px 5px; border-left-style: solid; border-left-color: rgb(205, 233, 244); margin: 10px 0px 21px; outline: 0px; padding: 4px 0px 2px 10px; vertical-align: baseline; background-position: initial initial; background-repeat: initial initial;"><div style="border: 0px; font-size: 1.4em; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; color: rgb(65, 65, 65); line-height: 20.3px;" class=""><code class="code-voice" style="border: 0px; font-size: 0.85em; margin: 0px 0px 15px; outline: 0px; padding: 0px 0px 6px; vertical-align: baseline; color: rgb(0, 0, 0); font-family: Menlo, monospace; word-wrap: break-word; background-position: initial initial; background-repeat: initial initial;"><span class="kt" style="border: 0px; font-size: 11.9px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; color: rgb(170, 51, 145); background-position: initial initial; background-repeat: initial initial;">var</span> <span class="nl" style="border: 0px; font-size: 11.9px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; background-position: initial initial; background-repeat: initial initial;">UTF8String</span>: <span class="n" style="border: 0px; font-size: 11.9px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; color: rgb(92, 38, 153); background-position: initial initial; background-repeat: initial initial;"><a href="https://developer.apple.com/library/mac/documentation/Swift/Reference/Swift_UnsafePointer_Structure/index.html#//apple_ref/swift/struct/s:VSs13UnsafePointer" data-renderer-version="2" style="border: 0px; font-size: 11.9px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; color: inherit; text-decoration: none; background-position: initial initial; background-repeat: initial initial;" class="">UnsafePointer</a></span><<span class="n" style="border: 0px; font-size: 11.9px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; color: rgb(92, 38, 153); background-position: initial initial; background-repeat: initial initial;"><a href="https://developer.apple.com/library/mac/documentation/Swift/Reference/Swift_Int8_Structure/index.html#//apple_ref/swift/struct/s:VSs4Int8" data-renderer-version="2" style="border: 0px; font-size: 11.9px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; color: inherit; text-decoration: none; background-position: initial initial; background-repeat: initial initial;" class="">Int8</a></span>> { <span class="kt" style="border: 0px; font-size: 11.9px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; color: rgb(170, 51, 145); background-position: initial initial; background-repeat: initial initial;">get</span> }</code></div></div></div><div class="discussion" style="border: 0px; font-size: 10px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; font-family: Helvetica, Arial, sans-serif; line-height: normal; widows: 1; background-position: initial initial; background-repeat: initial initial;"></div></div><div class="">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?</div><div class=""><br class=""></div><div class="">— Luke</div></body></html>