Re: OUStringBuffer

2013-05-08 Thread rahul bhola
sorry was working with openmeetings and that is in java On Wed, May 8, 2013 at 4:42 AM, Regina Henschel rb.hensc...@t-online.dewrote: Hi Jorge, jorge ivan poot diaz schrieb: Hello, I have a doubt, help I made this snippet String abuf = buf.charAt(nLen - 1); double ng =

Re: OUStringBuffer

2013-05-07 Thread jorge ivan poot diaz
Hello, I have a doubt, help I made this snippet String abuf = buf.charAt(nLen - 1); double ng = ::rtl::math::stringToDouble( abuf, '.', ',', NULL, NULL ); printf ( Is : %i , ng); But the return value is 0, in theory I want to return the last digit of the string String :

Re: OUStringBuffer

2013-05-07 Thread rahul bhola
take a substring that contains only the last letter and then use Integer.parseInt() to convert it into integer On Tue, May 7, 2013 at 9:56 PM, jorge ivan poot diaz ivan.pootd...@gmail.com wrote: Hello, I have a doubt, help I made this snippet String abuf = buf.charAt(nLen - 1);

Re: OUStringBuffer

2013-05-07 Thread Regina Henschel
Hi, rahul bhola schrieb: take a substring that contains only the last letter and then use Integer.parseInt() to convert it into integer ??? We are in C++ not in Java. Kind regards Regina On Tue, May 7, 2013 at 9:56 PM, jorge ivan poot diaz ivan.pootd...@gmail.com wrote: Hello, I have

Re: OUStringBuffer

2013-05-07 Thread Regina Henschel
Hi Jorge, jorge ivan poot diaz schrieb: Hello, I have a doubt, help I made this snippet String abuf = buf.charAt(nLen - 1); double ng = ::rtl::math::stringToDouble( abuf, '.', ',', NULL, NULL ); printf ( Is : %i , ng); I do not meant, that you should call stringToDouble. I

Re: OUStringBuffer

2013-05-06 Thread jorge ivan poot diaz
, 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

Re: OUStringBuffer

2013-05-06 Thread Regina Henschel
Hi Jorge, jorge ivan poot diaz schrieb: 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. You should post what

Re: OUStringBuffer

2013-04-29 Thread Herbert Dürr
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

Re: OUStringBuffer

2013-04-28 Thread Regina Henschel
/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

Re: OUStringBuffer

2013-04-25 Thread Regina Henschel
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

Re: OUStringBuffer

2013-04-25 Thread jorge ivan poot diaz
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