I've already made a concatenation, in this file:
http://opengrok.adfinis-sygroup.org/source/xref/aoo-trunk/main/cui/source/tabpages/tpcolor.cxx#546


Something like this:

OUStringBuffer buf( 128 );
buf.append( aName );
buf.append( 4 );
OUString string = buf.makeStringAndClear();
OString oString = rtl::OUStringToOString( string ,
RTL_TEXTENCODING_ASCII_US );

Substituting aName by oString in this fragment of code
http://opengrok.adfinis-sygroup.org/source/xref/aoo-trunk/main/cui/source/tabpages/tpcolor.cxx#549,
I have the following error,

http://ooo.pastebin.ca/2366521

So, I want to convert this code to a STRING:
OString oString = rtl::OUStringToOString( string ,
RTL_TEXTENCODING_ASCII_US );

Because the definition of aName is STRING, as you can see here:
http://ooo.pastebin.ca/2366523

The file is located at:
http://opengrok.adfinis-sygroup.org/source/xref/aoo-trunk/main/svx/inc/svx/xtable.hxx#57


Regards.




2013/4/25 Regina Henschel <rb.hensc...@t-online.de>

> Hi,
>
> jorge ivan poot diaz schrieb:
>
>  I have doubts about using
>> class OUStringBuffer
>>
>
> You should be more specific about your problem. Do you need help in
> understanding the descriptions in ustrbuf.hxx? Or do you get an compiler
> error, which do you not understand? Or do you need help about the
> difference to other string types? Or ...?
>
>
>
>> I want to implement this code:
>>
>> x = new OUStringBuffer().append("a").**append(4).append("c").**
>> toString();
>>   (one example)
>>
>> This snippet, missing something? (A declaration of variables?)
>>
>
> Please post a little bit more. Where do you want to use that code? What is
> x ? Do you want to do something specific, or is it an exercise, some kind
> of "hello world"?
>
> Kind regards
> Regina
>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: 
> dev-unsubscribe@openoffice.**apache.org<dev-unsubscr...@openoffice.apache.org>
> For additional commands, e-mail: dev-h...@openoffice.apache.org
>
>

Reply via email to