QtCreator for LibreOffice : debugger integration

Michael Stahl mstahl at redhat.com
Mon Jun 15 06:30:17 PDT 2015


On 15.06.2015 15:21, Michel Renon wrote:
> Hi,
> 
> Here is the next step of QtCreator integration : debugging of OUString
> (and internal type rtl_uString)
> 
> http://imgur.com/ZrvIZ2V,2G52CwW,2r2wVSP
> 
> 1 : default view for OUString variable : just address and length
> 2 : new view : you have the string (here with some specific french 
> characters and 'euro' symbol)
> 3 : new view : you can have internals of OUString

i don't quite understand - why not just display the content of the
string by default using the python pretty printers in solenv/gdb, like
Eclipse CDT and KDevelop do?

> And a noob question :
> how to define an unicode string in c++ ?
> I wrote :
> rtl:OUString sTest = "éèà€";
> or
> rtl:OUString sTest("éèà€");

the constructors from string literals require ASCII encoding.

there is another constructor where you can give explicit text encoding
so you can pass RTL_TEXTENCODING_UTF8.




More information about the LibreOffice mailing list