Apache OpenOffice (AOO) Bugzilla – Issue 52064
Addition of new parse type for parsing integer not, real number
Last modified: 2017-05-20 11:27:46 UTC
An addition of a new parse type for dealing with an integer, not a real number, would be useful. Such parse type could be named, say, KParseType::ANY_INTEGER or KParseType::ANY_INT_NUMBER, or similar. It is essentially the same as KParseType::ANY_NUMBER, except it treats a decimal separator as a non-number under all conditions. I've filed this issue because I couldn't find any way of parsing just an integer using parsePredefinedToken. Doing so with KParseType::IDENTNAME and KParseToken::ANY_NUMBER as the start and con token types seems to work, but I have to manually covert a string segment to double using rtl::OUString::toDouble(), instead of getting the value from ParseResult.Value. So, an addition of an integer parse type would be very nice. Thanks, Kohei
Hi Kohei, I second this, could be useful. Hope we don't run out of bits for the flags ;-) Eike
Targeting to 2.x
set target from 2.x to 3.x according to http://wiki.services.openoffice.org/wiki/Target_3x
Reset assigne to the default "issues@openoffice.apache.org".