To comment on the following update, log in, then open the issue: http://www.openoffice.org/issues/show_bug.cgi?id=52064 Issue #:|52064 Summary:|Addition of new parse type for parsing integer not, |real number Component:|api Version:|OOo 2.0 Beta Platform:|PC URL:|http://api.openoffice.org/docs/common/ref/com/sun/sta |r/i18n/KParseType.html OS/Version:|All Status:|NEW Status whiteboard:| Keywords:| Resolution:| Issue type:|ENHANCEMENT Priority:|P3 Subcomponent:|code Assigned to:|er Reported by:|kohei
------- Additional comments from [EMAIL PROTECTED] Sat Jul 16 14:09:06 -0700 2005 ------- 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 --------------------------------------------------------------------- Please do not reply to this automatically generated notification from Issue Tracker. Please log onto the website and enter your comments. http://qa.openoffice.org/issue_handling/project_issues.html#notification --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]