<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hi Enrico,<br>
<br>
I tested the script and there are two points:<br>
<br>
1. "_string_summary_size" is undefined<br>
<br>
2. I do not know if "return s.encode('utf-8')" is tcorrect. What
encoding is the lldb stdout?<br>
I registered the wstring_SummaryProvider for std::string also
and get wrong results.<br>
<br>
std::string aString = "HÄLLÖ WÖRLD!!!"; <br>
std::wstring aString32 = L"HÄLLÖ WÖRLD!!!";<br>
unsigned short pRawString[] = {'H', 0xc4 , 'L', 'L', 0xD6,
'W', 0xD6, 'R', 'L', 'D', '!', '!', '!', 0 }; <br>
std::basic_string<unsigned short> aString16 =
pRawString;<br>
<br>
(lldb) frame variable aString<br>
(std::string) aString = "HÃLLÃ WÃRLD!!!"<br>
(lldb) frame variable aString16<br>
(std::basic_string<unsigned short,
std::char_traits<unsigned short>, std::allocator<unsigned
short> >) aString16 = "HÄLLÖWÖRLD!!!"<br>
(lldb) frame variable aString32<br>
(std::wstring) aString32 = "HÄLLÖ WÖRLD!!!"<br>
<br>
Maybe thats an stl or compiler issue. When registering the
wstring_SummaryProvider for wstring and 16bit strings only
everything is fine.<br>
<br>
Cheers,<br>
<br>
Nino<br>
<br>
Am 07.08.12 23:04, schrieb Enrico Granata:<br>
</div>
<blockquote
cite="mid:C9CC6AD7-ABE7-451A-A82E-418521A245BA@apple.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
Hi Nino,
<div>just a quick note to keep you in the loop.</div>
<div>After a few minor changes, this is the version of the
std::wstring data formatter that we will be testing with for
inclusion in the LLDB ToT.</div>
<div>Let me know if you have any suggestions for
improvements/changes :-)</div>
<div><br>
<div>
<span class="Apple-style-span" style="border-collapse:
separate; color: rgb(0, 0, 0); font-family: Helvetica;
font-style: normal; font-variant: normal; font-weight:
normal; letter-spacing: normal; line-height: normal;
orphans: 2; text-align: -webkit-auto; text-indent: 0px;
text-transform: none; white-space: normal; widows: 2;
word-spacing: 0px; -webkit-border-horizontal-spacing: 0px;
-webkit-border-vertical-spacing: 0px;
-webkit-text-decorations-in-effect: none;
-webkit-text-size-adjust: auto; -webkit-text-stroke-width:
0px; font-size: medium; "><span class="Apple-style-span"
style="border-collapse: separate; color: rgb(0, 0, 0);
font-family: Helvetica; font-style: normal; font-variant:
normal; font-weight: normal; letter-spacing: normal;
line-height: normal; orphans: 2; text-align: -webkit-auto;
text-indent: 0px; text-transform: none; white-space:
normal; widows: 2; word-spacing: 0px;
-webkit-border-horizontal-spacing: 0px;
-webkit-border-vertical-spacing: 0px;
-webkit-text-decorations-in-effect: none;
-webkit-text-size-adjust: auto; -webkit-text-stroke-width:
0px; font-size: medium; ">
<div style="word-wrap: break-word; -webkit-nbsp-mode:
space; -webkit-line-break: after-white-space; "><span
class="Apple-style-span" style="border-collapse:
separate; color: rgb(0, 0, 0); font-family: Helvetica;
font-style: normal; font-variant: normal; font-weight:
normal; letter-spacing: normal; line-height: normal;
orphans: 2; text-align: -webkit-auto; text-indent:
0px; text-transform: none; white-space: normal;
widows: 2; word-spacing: 0px;
-webkit-border-horizontal-spacing: 0px;
-webkit-border-vertical-spacing: 0px;
-webkit-text-decorations-in-effect: none;
-webkit-text-size-adjust: auto;
-webkit-text-stroke-width: 0px; font-size: medium; ">
<div style="word-wrap: break-word; -webkit-nbsp-mode:
space; -webkit-line-break: after-white-space; "><span
class="Apple-style-span" style="orphans: 2;
text-align: -webkit-auto; text-indent: 0px;
widows: 2; -webkit-text-decorations-in-effect:
none; ">
<div style="word-wrap: break-word;
-webkit-nbsp-mode: space; -webkit-line-break:
after-white-space; ">
<div style="border-collapse: separate;
font-family: Helvetica; font-style: normal;
font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: normal;
text-transform: none; white-space: normal;
word-spacing: 0px;
-webkit-border-horizontal-spacing: 0px;
-webkit-border-vertical-spacing: 0px;
-webkit-text-size-adjust: auto;
-webkit-text-stroke-width: 0px; font-size:
medium; color: rgb(0, 0, 0); "><i>Enrico
Granata</i></div>
<div style="border-collapse: separate;
font-family: Helvetica; font-style: normal;
font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: normal;
text-transform: none; white-space: normal;
word-spacing: 0px;
-webkit-border-horizontal-spacing: 0px;
-webkit-border-vertical-spacing: 0px;
-webkit-text-size-adjust: auto;
-webkit-text-stroke-width: 0px; font-size:
medium; ">✉ egranata@<font
class="Apple-style-span" color="#ff230e"></font>.com</div>
<div>✆ (408) 972-7683</div>
</div>
</span></div>
</span></div>
</span></span>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
</blockquote>
<br>
</body>
</html>