<div dir="ltr">On Sun, Jul 24, 2016 at 5:34 PM, Erica Sadun via swift-evolution <span dir="ltr"><<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
> On Jul 24, 2016, at 3:45 PM, Dave Abrahams via swift-evolution <<a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a>> wrote:<br>
><br>
> Xiaodi Wu via swift-evolution <swift-evolution@...> writes:<br>
><br>
><br>
>> In `String`, the methods `nulTerminatedUTF8` and<br>
>> nulTerminatedUTF8CString` have the word "null" misspelled<br>
><br>
> Whoa. Isn't "Cstring" redundant with "null-terminated?"<br>
<br>
</span>One would hope so. A series of characters terminated by a zero byte.<br>
<br>
/// A contiguously stored null-terminated UTF-8 representation of<br>
/// the string.<br>
///<br>
/// This is a variation on nulTerminatedUTF8 that creates an array<br>
/// of element type CChar for use with CString API's.<br>
<br>
I think utf8String and utf8CString capture both meanings. I know they're<br>
a little redundant but they get the meaning across, use CString term of<br>
art, and are pithy compared to any alternatives (like "representation", etc)<span class="HOEnZb"><font color="#888888"><br></font></span></blockquote><div> </div><div>They're arrays though, not strings.</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="HOEnZb"><font color="#888888">
-- E<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
_______________________________________________<br>
swift-evolution mailing list<br>
<a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a><br>
<a href="https://lists.swift.org/mailman/listinfo/swift-evolution" rel="noreferrer" target="_blank">https://lists.swift.org/mailman/listinfo/swift-evolution</a><br>
</div></div></blockquote></div><br></div></div>