Ron: I'm in the process of updating from SVN (tried yesterday but SVN seemed to be down).
On 16-05-2011 17:44, Ron Pinkas wrote: > Luis, > > You must be using an older build. This was already noted and fixed 2 months > ago: > > 2011-03-13 19:01 UTC-0430 Ron Pinkas<ron.pinkas/at/xharbour.com> > * source/rtl/hbtoken.c > ! Fixed hb_tokenCount() to return 0 when processed string is 0 length > > I just retested and your sample returns an empty array. > > Ron > > -------------------------------------------------- > From: "Luis Krause Mantilla"<lkrau...@shaw.ca> > Sent: Friday, May 13, 2011 5:00 PM > To: "Xharbour-Developers"<xharbour-developers@lists.sourceforge.net> > Subject: [xHarbour-developers] hb_ATokens() behavior changed and > notdocumented > >> Hi: >> >> Somebody changed the way hb_ATokens() behaves when >> an empty string is passed as the only param. I'm not >> sure when this happen; I just happen to notice today. >> It could have been months ago for all I know. >> >> For years, this >> >> hb_Atokens("") >> >> would return an empty array. >> >> Now it returns a one element array (the element being >> an empty string). >> >> >> I couldn't find any reference to the change in the logs >> (were they lost when moving to SVN?) but came out with >> no hits. >> >> Maybe it's also related to the problem with __StrToken() >> Patrick reported a few days ago. >> >> Whoever made the change, could you please revert it >> because this breaks compatibility and stability this >> function had for many years. >> >> Regards, >> >> >> -- >> Luis Krause Mantilla >> lkrausem at shaw dot ca >> luis_krause at hotmail dot com >> "May the Source be with GNU" >> >> >> ------------------------------------------------------------------------------ >> Achieve unprecedented app performance and reliability >> What every C/C++ and Fortran developer should know. >> Learn how Intel has extended the reach of its next-generation tools >> to help boost performance applications - inlcuding clusters. >> http://p.sf.net/sfu/intel-dev2devmay >> _______________________________________________ >> xHarbour-developers mailing list >> xHarbour-developers@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/xharbour-developers >> > > ------------------------------------------------------------------------------ > Achieve unprecedented app performance and reliability > What every C/C++ and Fortran developer should know. > Learn how Intel has extended the reach of its next-generation tools > to help boost performance applications - inlcuding clusters. > http://p.sf.net/sfu/intel-dev2devmay > _______________________________________________ > xHarbour-developers mailing list > xHarbour-developers@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/xharbour-developers > > -- Luis Krause Mantilla lkrausem at shaw dot ca luis_krause at hotmail dot com "May the Source be with GNU" ------------------------------------------------------------------------------ What Every C/C++ and Fortran developer Should Know! Read this article and learn how Intel has extended the reach of its next-generation tools to help Windows* and Linux* C/C++ and Fortran developers boost performance applications - including clusters. http://p.sf.net/sfu/intel-dev2devmay _______________________________________________ xHarbour-developers mailing list xHarbour-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xharbour-developers