On Fri, 2010-10-29 at 09:52 +0200, Cedric Bosdonnat wrote:
The problem here is to get a C string from them: here are some examples:
* from OUString:
rtl::OUStringToOString( sOUStr, RTL_TEXTENCODING_UTF8 ).getStr()
* from String / UniString
ByteString( sToolStr, RTL_TEXTENCODING_UTF8 ).GetBufferAccess()
I typed those without checking the case... I hope it's OK, otherwise,
just check the code for the correct syntax.
As an aside, when you're in gdb
print dbg_dump(whatever)
should (these days) work again regardless of whether whatever is a
OString/OUString/String/ByteString/OStringBuffer/OUStringBuffer.
Well, in theory at least, and it does seem to work for me recently
again.
C.
Context
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.