This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
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, 16:17 GMT+2
Last edited by Jonathan Gordon (jdgordon) - Saturday, 14 August 2010, 13:21 GMT+2
Opened by Jonathan Gordon (jdgordon) - Tuesday, 03 August 2010, 16:17 GMT+2
Last edited by Jonathan Gordon (jdgordon) - Saturday, 14 August 2010, 13:21 GMT+2
|
DetailsThe 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, 13:21 GMT+2
Reason for closing: Accepted
Additional comments about closing: in 27812.
Saturday, 14 August 2010, 13:21 GMT+2
Reason for closing: Accepted
Additional comments about closing: in 27812.