<div dir="auto">As pointer + length is span in essence, that makes sense. However I'm not sure it's worth us persuing it, although I can see the value for C. <div dir="auto">Making the ntmbs functions not broken has value, particularly since they are, iirc, used in as if specification in places. </div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Sep 2, 2019, 16:28 Henri Sivonen <<a href="mailto:hsivonen@hsivonen.fi" target="_blank" rel="noreferrer">hsivonen@hsivonen.fi</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Mon, Sep 2, 2019 at 2:00 AM JeanHeyd Meneide <<a href="mailto:phdofthehouse@gmail.com" rel="noreferrer noreferrer" target="_blank">phdofthehouse@gmail.com</a>> wrote:<br>
><br>
> On Sun, Sep 1, 2019 at 12:07 PM Steve Downey <<a href="mailto:sdowney@gmail.com" rel="noreferrer noreferrer" target="_blank">sdowney@gmail.com</a>> wrote:<br>
> ><br>
> > That was, if I recall correctly, about the C standard library interfaces in the Null-terminated multibyte strings section. Basically that the character at a time interfaces are not amenable to vectorization.<br>
...<br>
> With ptr + length, someone can optimize the resulting call as<br>
> much as they like. With null-terminated versions of the function, I am<br>
> skeptical the same performance can be achieved without first calling<br>
> strlen() but I have no experience or data to back up that intuition.<br>
<br>
I see.<br>
<br>
To me it seems clear that C APIs on this topic should use pointer and length.<br>
<br>
-- <br>
Henri Sivonen<br>
<a href="mailto:hsivonen@hsivonen.fi" rel="noreferrer noreferrer" target="_blank">hsivonen@hsivonen.fi</a><br>
<a href="https://hsivonen.fi/" rel="noreferrer noreferrer noreferrer" target="_blank">https://hsivonen.fi/</a><br>
_______________________________________________<br>
SG16 Unicode mailing list<br>
<a href="mailto:Unicode@isocpp.open-std.org" rel="noreferrer noreferrer" target="_blank">Unicode@isocpp.open-std.org</a><br>
<a href="http://www.open-std.org/mailman/listinfo/unicode" rel="noreferrer noreferrer noreferrer" target="_blank">http://www.open-std.org/mailman/listinfo/unicode</a><br>
</blockquote></div>