thanks, buf.charAt (nLen - 1): this variable has a string as '1' or '2', '3'...'9' as it could change to int, any ideas, please help!
I've done this: int ty = buf.charAt(nLen - 1); built well, but the result is not as expected. regards! 2013/4/29 Herbert Dürr <h...@apache.org> > 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<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<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<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<http://opengrok.adfinis-sygroup.org/source/xref/aoo-trunk/main/svx/inc/svx/xtable.hxx#57> >> > > > ------------------------------**------------------------------**--------- > To unsubscribe, e-mail: > dev-unsubscribe@openoffice.**apache.org<dev-unsubscr...@openoffice.apache.org> > For additional commands, e-mail: dev-h...@openoffice.apache.org > >