21 #ifndef TAGEXPRESSION_H 22 #define TAGEXPRESSION_H 26 #include <QStringList> 30 #define TAG_TITLE QString("<t>") 31 #define TAG_ALBUM QString("<al>") 32 #define TAG_ARTIST QString("<ar>") 33 #define TAG_TRACK_NUM QString("<nr>") 34 #define TAG_YEAR QString("<y>") 35 #define TAG_DISC QString("<d>") 36 #define TAG_IGNORE QString("<ign>") 39 typedef QString ReplacedString;
65 QString escape_special_chars(
const QString& str)
const;
73 QString calc_regex_string(
const QStringList& splitted_tag_str)
const;
80 QStringList split_tag_string(
const QString& tag_str)
const;
86 TagExpression(
const QString& tag_str,
const QString& filename);
96 bool update_tag(
const QString& tag_str,
const QString& filepath);
104 bool check_tag(
const Tag& tag,
const QString& str);
109 #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:45
bool update_tag(const QString &tag_str, const QString &filepath)
fills the _cap_map