diff options
Diffstat (limited to 'src/SongFilter.hxx')
-rw-r--r-- | src/SongFilter.hxx | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/SongFilter.hxx b/src/SongFilter.hxx index a71fe2cb1..a34fca8c2 100644 --- a/src/SongFilter.hxx +++ b/src/SongFilter.hxx @@ -61,6 +61,10 @@ public: return tag; } + bool GetFoldCase() const { + return fold_case; + } + const std::string &GetValue() const { return value; } @@ -106,6 +110,18 @@ public: } /** + * Is there at least one item with "fold case" enabled? + */ + gcc_pure + bool HasFoldCase() const { + for (const auto &i : items) + if (i.GetFoldCase()) + return true; + + return false; + } + + /** * Returns the "base" specification (if there is one) or an * empty string. */ |