FS#11517 - allow tag_table to specify a group of params of which any one is found for a tag param

Attached to Project: Rockbox
Opened by Jonathan Gordon (jdgordon) - Tuesday, 03 August 2010, 14:17 GMT
Last edited by Jonathan Gordon (jdgordon) - Saturday, 14 August 2010, 11:21 GMT
Task Type Patches
Category Themes
Status Closed
Assigned To No-one
Operating System All players
Severity Low
Priority Normal
Reported Version Release 3.6
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


The title isnt very good... What I wanted is to be able to let the param for a tag be either a int or a string (or a tag or code or whatever) the attached patch adds this grouping.

How it works is you specify the goruping with []'s in the table.. i.e "i[IS]" which says the tag wants an int followed by either an int or string (and neither can be default.).

The priority order is hardcoded in the parser to default > decimal/integer > single tag/code > string. If any of the options are lowercase then a - is accepted.
decimal and int arnt really distinguishable so if a number looks like a number and doesnt have a . it will be treated as a int instead of a d unless d is in the list and i isnt.

t is a new tag from another patch which is a single tag instead of a full skin line.
This task depends upon

Closed by  Jonathan Gordon (jdgordon)
Saturday, 14 August 2010, 11:21 GMT
Reason for closing:  Accepted
Additional comments about closing:  in 27812.