Data formatter for wstring
Data formatter for wstring
- Subject: Data formatter for wstring
- From: Robb Olsen-Albright <email@hidden>
- Date: Wed, 14 Sep 2005 12:06:31 -0700
I'm working on converting a cross-platform (Windows & Mac) app from
CodeWarrior to Xcode.
We use std::wstrings for all the cross platform engine strings, and I
need a way to see the string contents in the debugger ( CodeWarrior
was pretty bad at this too, but I could make it work sometimes, and
at least if I drilled down to the raw pointer/array member,
codewarrior would attempt to show me the string)
the data formatter for std::string works ( size={(int)$VAR.size()}
"{(char *)$VAR.c_str()}:s" ), but if I do a similar thing with a
std::wstring, the debugger doesn't know what to do with the wchar_t
array; i.e. even if I do a wchar_t rawString[100], the debugger
doesn't show the data.
I've looked thru all the included dataformatters (in /Library/
Application Support/Apple/Developer Tools/CustomDataViews ) and can't
seem to find anything that can work to show me the contents of a
wstring.
Any ideas anyone? I don't even really care about seeing the exact
characters for high value character codes, just that the least
significant byte of the 4byte wchar is interpreted as ascii
thanks in advance,
robb olsen-albright
vernier software
portland, or
p.s., yes I know all about the preference stated in docs for using
CFString for Unicode, that std::wstring does not imply any encoding,
etc, etc. This stuff has all been handled and is working, I just
need to be able to debug it better.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden