Re: len() string function in calc - basic/64k limit code pointers

2012-11-01 Thread Noel Power
On 01/11/12 10:40, Michael Meeks wrote: You can see that the problematic 'String' type is used (which truncates to 64k lengths). I suspect you'd want to poke at: basic/inc/basic/sbxvar.hxx particularly the SbxValue and it's implementation inside: basic/source/sbx/sbxvalue.cxx To use rtl::OUStr

Re: len() string function in calc - basic/64k limit code pointers

2012-11-01 Thread Norbert Thiebaud
On Thu, Nov 1, 2012 at 5:40 AM, Michael Meeks wrote: > RTLFUNC(Len) > { > (void)pBasic; > (void)bWrite; > > if ( rPar.Count() != 2 ) > StarBASIC::Error( SbERR_BAD_ARGUMENT ); > else > { > const String& rStr = rPar.Get(1)->GetString(); > rPar.Get(0)->PutL

Re: len() string function in calc - basic/64k limit code pointers

2012-11-01 Thread Michael Meeks
Hi there, On Wed, 2012-10-31 at 08:16 +0100, post wrote: > I have a special request regarding spreadsheet functions. Ah - so, this list is really for reviewing patches, discussing quirks of the code, and helping people develop fixes. > When importing a string larger than 64k the len() fu

len() string function in calc

2012-10-31 Thread post
hello, I have a special request regarding spreadsheet functions. When importing a string larger than 64k the len() function reports zero length. Does a way exist to get a the length of a string larger then 64K? If I were to paste a string larger than 64K into a cell the cell remains blank.