tagtree/tagcache add new clause operators begins/ends _oneof

new operators @^, @$
begins_oneof and ends_oneof

albumartist @^ "L|The L"
Led Zeppelin, The look

albumartist @$ "girls|Boys"
spice girls, beasty boys

Change-Id: I26ce3d8155d970a55e003f74e2f9478db76204f1
This commit is contained in:
William Wilgus 2022-03-19 02:15:35 -04:00
parent 0f2d623216
commit ddbca125a6
3 changed files with 31 additions and 2 deletions

View file

@ -127,7 +127,9 @@ enum tag_type { tag_artist = 0, tag_album, tag_genre, tag_title,
enum clause { clause_none, clause_is, clause_is_not, clause_gt, clause_gteq,
clause_lt, clause_lteq, clause_contains, clause_not_contains,
clause_begins_with, clause_not_begins_with, clause_ends_with,
clause_not_ends_with, clause_oneof, clause_logical_or };
clause_not_ends_with, clause_oneof,
clause_begins_oneof, clause_ends_oneof,
clause_logical_or };
struct tagcache_stat {
bool initialized; /* Is tagcache currently busy? */