Hi,
I've introduced stream operator<< for rtl::OUString
for debugging purposes -
you can now easily dump the content of the OUString to a
std:: stream (patch
sal-oustring-debug.diff in [ FixesNotForUpstream ]).
Be careful, this is ooo-build only & it won't get
up-stream; see
http://www.openoffice.org/issues/show_bug.cgi?id=65920
Example of the usage:
::rtl::OUString aString;
... something with aString ...
std::cerr << "The string is: " <<
aString << std::endl;
I've described it in Wiki as well, see
http://wiki.services.openoffic
e.org/wiki/Hacking#Can_I_get_a_char_.2A.2C_please.3F
One more probably not commonly known trick described there:
----- 8< -----
To print the value of rtl::OUString directly in the
debugger, you can use
dbg_dump(). It is intended to be called interactively from
the debugger, in
both debug and non-debug builds of OOo. You can see the
definition in
sal/rtl/source/debugprint.cxx.
----- 8< -----
Regards,
Jan
_______________________________________________
Openoffice mailing list
Openoffice lists.ximian.com
h
ttp://lists.ximian.com/mailman/listinfo/openoffice
|