16 return QStringLiteral (
"; ");
21 const auto& trimmed = separator.trimmed ();
22 return trimmed.isEmpty () ? separator : trimmed;
25 QStringList
SplitTags (QStringView text,
const QString& separator)
28 for (
const auto& part : text.split (
GetTagsDelimiter (separator), Qt::SkipEmptyParts))
29 if (
auto tag = part.trimmed (); !tag.isEmpty ())
30 result << tag.toString ();
QStringList SplitTags(QStringView text, const QString &separator)
Splits a string with tags into the tags.
QString GetDefaultTagsSeparator()
QString GetTagsDelimiter(const QString &separator)
Returns the delimiter the tags are split by for the given separator they are joined with.