<br><br><div class="gmail_quote">On Tue, Jul 26, 2011 at 7:19 PM, David Blaikie <span dir="ltr"><<a href="mailto:dblaikie@gmail.com">dblaikie@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div class="im">> Added visualizer for StringRef (assumes null terminated string which I know<br>
> isn't the case always, but I don't think there's a way around this)<br>
<br>
</div>That's curious - though I just verified that even VS2010's<br>
std::basic_string visualizer has the same limitation. Pity.<br>
<br>
int main()<br>
{<br>
    const char xs[] = "foo\0bar";<br>
    std::string x(xs, xs + sizeof(xs));<br>
}<br>
<br>
(mouseover at 'x' shows only "foo" in the preview, though the details<br>
show a size of 8 & both null characters in there)<br>
</blockquote></div><br><div>This is because tooltip (preview section) is evaluated using <a href="http://msdn.microsoft.com/en-us/library/75w45ekt(v=VS.100).aspx">format specifiers</a> and they only support null-terminated strings (there is more about this inside autoexp.dat). Details are evaluated using #array and correct size, so there is at least a way to get to all the characters.</div>