Mailinglist Archive: yast-devel (35 mails)
< Previous | Next > |
Re: [yast-devel] Table sorting and locales in YaST UI
- From: Thomas Goettlicher <thomas.goettlicher@xxxxxxx>
- Date: Fri, 4 May 2012 15:41:54 +0200
- Message-id: <201205041541.54180.thomas.goettlicher@suse.de>
On Fri May 4 2012 13:25:24 Ladislav Slezak wrote:
* Leading blanks for numbers are ignored
* '+' and '-' in front of numbers are respected
* text separated by a blank right of a number is being ignored
I think that's a sufficient solution for >95% of scenarios.
Cheers,
Thomas
--
Thomas Goettlicher
SUSE LINUX Products GmbH, GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer,
HRB 16746 (AG Nürnberg)
Maxfeldstraße 5
90409 Nürnberg
Germany
Dne 4.5.2012 11:48, Thomas Goettlicher napsal(a):I fine-tuned the sort function now:
On Fri May 4 2012 11:19:24 Ladislav Slezak wrote:[...]
Which regexp do you propose? Please keep in mind, that the regexp needs
to be executed each time the user wants to sort the columns for all rows
of the table. We should keep the regexp simple as it's critical to
performance.
According to http://qt-project.org/doc/qt-4.8/qregexp.html I'd propose
"^\\s*(\\d+)"
* Leading blanks for numbers are ignored
* '+' and '-' in front of numbers are respected
* text separated by a blank right of a number is being ignored
I think that's a sufficient solution for >95% of scenarios.
Cheers,
Thomas
--
Thomas Goettlicher
SUSE LINUX Products GmbH, GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer,
HRB 16746 (AG Nürnberg)
Maxfeldstraße 5
90409 Nürnberg
Germany
< Previous | Next > |