23 #ifndef TAGEXPRESSION_H 24 #define TAGEXPRESSION_H 28 #include <QStringList> 32 #define TAG_TITLE QString("<t>") 33 #define TAG_ALBUM QString("<al>") 34 #define TAG_ARTIST QString("<ar>") 35 #define TAG_TRACK_NUM QString("<nr>") 36 #define TAG_YEAR QString("<y>") 37 #define TAG_DISC QString("<d>") 38 #define TAG_IGNORE QString("<ign>") 42 typedef QString ReplacedString;
69 QString escape_special_chars(
const QString& str)
const;
77 QString calc_regex_string(
const QStringList& splitted_tag_str)
const;
84 QStringList split_tag_string(
const QString& tag_str)
const;
90 TagExpression(
const QString& tag_str,
const QString& filename);
100 bool update_tag(
const QString& tag_str,
const QString& filepath);
108 bool check_tag(
const Tag& tag,
const QString& str);
113 #endif // TAGEXPRESSION_H bool check_tag(const Tag &tag, const QString &str)
checks, if one specific tag can be applied to the string
The TagExpression class.
Definition: TagExpression.h:49
bool update_tag(const QString &tag_str, const QString &filepath)
fills the _cap_map