Hi Jorge,
like Regina I have a hard time to understand the question. My best guess
is that you have an OUStringBuffer object and need an UniString (aka
tool's String [1]). If that is so you can get it using the UniString
constructor that takes an OUString argument:
UniString( buf.makeStringAndClear() )
[1]
http://opengrok.adfinis-sygroup.org/source/xref/aoo-trunk/main/tools/inc/tools/solar.h#269
Hope that helps,
Herbert
On 2013/04/25 8:00 PM, jorge ivan poot diaz wrote:
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
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org