<div dir="ltr">On Sun, Jul 24, 2016 at 6:42 PM, Saagar Jha <span dir="ltr">&lt;<a href="mailto:saagarjha28@gmail.com" target="_blank">saagarjha28@gmail.com</a>&gt;</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"><div style="word-wrap:break-word">Well, yes, but hardly anyone calls it a “char array” unless they’re trying to emphasize the fact that it’s <i>not</i> being used as a String.</div></blockquote><div><br></div><div>I was woefully unclear with that last email. IMO, `utf8CString` is fine, since a CString really is a null-terminated array of CChars. But `utf8String` implies that the property is a String, which `nulTerminatedUTF8` is not (it&#39;s a `ContiguousArray&lt;UTF8.CodeUnit&gt;`).</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div><span class="HOEnZb"><font color="#888888"><div>
<div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word">Saagar Jha<br><br><br></div>

</div></font></span><div><div class="h5">
<br><div><blockquote type="cite"><div>On Jul 24, 2016, at 15:58, Xiaodi Wu via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a>&gt; wrote:</div><br><div><div dir="ltr" style="font-family:SFUIText-Regular;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">On Sun, Jul 24, 2016 at 5:34 PM, Erica Sadun via swift-evolution<span> </span><span dir="ltr">&lt;<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a>&gt;</span><span> </span>wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span><br>&gt; On Jul 24, 2016, at 3:45 PM, Dave Abrahams via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a>&gt; wrote:<br>&gt;<br>&gt; Xiaodi Wu via swift-evolution &lt;swift-evolution@...&gt; writes:<br>&gt;<br>&gt;<br>&gt;&gt; In `String`, the methods `nulTerminatedUTF8` and<br>&gt;&gt; nulTerminatedUTF8CString` have the word &quot;null&quot; misspelled<br>&gt;<br>&gt; Whoa. Isn&#39;t &quot;Cstring&quot; redundant with &quot;null-terminated?&quot;<br><br></span>One would hope so. A series of characters terminated by a zero byte.<br><br> <span> </span>/// A contiguously stored null-terminated UTF-8 representation of<br> <span> </span>/// the string.<br> <span> </span>///<br> <span> </span>/// This is a variation on nulTerminatedUTF8 that creates an array<br> <span> </span>/// of element type CChar for use with CString API&#39;s.<br><br>I think utf8String and utf8CString capture both meanings. I know they&#39;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 &quot;representation&quot;, etc)<span><font color="#888888"><br></font></span></blockquote><div> </div><div>They&#39;re arrays though, not strings.</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span><font color="#888888">-- E<br></font></span><div><div><br><br>_______________________________________________<br>swift-evolution mailing list<br><a href="mailto:swift-evolution@swift.org" target="_blank">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><span style="font-family:SFUIText-Regular;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline!important">_______________________________________________</span><br style="font-family:SFUIText-Regular;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span style="font-family:SFUIText-Regular;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline!important">swift-evolution mailing list</span><br style="font-family:SFUIText-Regular;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><a href="mailto:swift-evolution@swift.org" style="font-family:SFUIText-Regular;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" target="_blank">swift-evolution@swift.org</a><br style="font-family:SFUIText-Regular;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><a href="https://lists.swift.org/mailman/listinfo/swift-evolution" style="font-family:SFUIText-Regular;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" target="_blank">https://lists.swift.org/mailman/listinfo/swift-evolution</a></div></blockquote></div><br></div></div></div></div></blockquote></div><br></div></div>