<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="">Ahh…I agree in that case; something like `utf8Array` might be a better choice.<br class=""><div class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Saagar Jha<br class=""><br class=""><br class=""></div>

</div>
<br class=""><div><blockquote type="cite" class=""><div class="">On Jul 24, 2016, at 16:44, Xiaodi Wu &lt;<a href="mailto:xiaodi.wu@gmail.com" class="">xiaodi.wu@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">On Sun, Jul 24, 2016 at 6:42 PM, Saagar Jha <span dir="ltr" class="">&lt;<a href="mailto:saagarjha28@gmail.com" target="_blank" class="">saagarjha28@gmail.com</a>&gt;</span> wrote:<br class=""><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" class="">Well, yes, but hardly anyone calls it a “char array” unless they’re trying to emphasize the fact that it’s <i class="">not</i>&nbsp;being used as a String.</div></blockquote><div class=""><br class=""></div><div class="">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's a `ContiguousArray&lt;UTF8.CodeUnit&gt;`).</div><div class=""><br class=""></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" class=""><div class=""><span class="HOEnZb"><font color="#888888" class=""><div class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class="">Saagar Jha<br class=""><br class=""><br class=""></div>

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