Issue 52062 - Addition of ANY_NON_NUMBER (or equivalent)
Summary: Addition of ANY_NON_NUMBER (or equivalent)
Status: ACCEPTED
Alias: None
Product: App Dev
Classification: Unclassified
Component: api (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: All All
: P3 Trivial
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL: http://api.openoffice.org/docs/common...
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-16 21:16 UTC by kyoshida
Modified: 2017-05-20 11:27 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description kyoshida 2005-07-16 21:16:53 UTC
When using i18n::XChracterClassification::parseAnyToken or parsePredefinedToken
methdos, one can use ANY_NUMBER token type to specify any number, whether it is
ascii or unicode.  This is very convenient.

However, to do the opposite is not equally convenient, i.e., to pick up all
characters until a character of ANY_NUMBER is found.  An addition of a new parse
token that qualifies anything that is not an ANY_NUMBER would be very, very useful.

ANY_LETTER, for example, does not pick up characters such as '/', '\', ')' ,'(',
and so on.  But sometimes you want to pick up everything but numbers including
those that ANY_LETTER doesn't pick up.

So, I propose an addition of a new parse token, which can be named
ANY_NON_NUMBER (or whatever sounds better), that qualifies any character that is
not ANY_NUMBER.  In other words, ANY_NON_NUMBER || ANY_NUMBER will qualify any
character in existence.

This will certainly ease my work on the natural sort implementation (Issue 26565).

Thanks,

Kohei
Comment 1 ooo 2005-08-03 16:48:31 UTC
Hi Kohei,

Good reasoning, though I think I would implement it differently by introducing a
"negate" flag, e.g. passing NEGATE | ANY_NUMBER would produce the result you
desire. This could also be used in other combinations as in NEGATE | ANY_LETTER.
Will have to think about that again though for the return value to use and other
details.

Thanks
  Eike
Comment 2 ooo 2006-07-20 13:46:57 UTC
Targeting to 2.x
Comment 3 Martin Hollmichel 2007-11-09 17:28:20 UTC
set target from 2.x to 3.x according to
http://wiki.services.openoffice.org/wiki/Target_3x
Comment 4 Marcus 2017-05-20 11:27:50 UTC
Reset assigne to the default "issues@openoffice.apache.org".