digiKam
|
Functions | |
DIGIKAM_DATABASE_EXPORT QString | merge (const QString &previousContent, const QString &newEntry) |
DIGIKAM_DATABASE_EXPORT QString | merge (const QStringList &keywordList) |
DIGIKAM_DATABASE_EXPORT QStringList | split (const QString &string) |
QString Digikam::KeywordSearch::merge | ( | const QString & | previousContent, |
const QString & | newEntry | ||
) |
Assuming previousContent is a string as accepted by split and returned by merge, adds newEntry as another (single) keyword to the string, returning the combined result.
QString Digikam::KeywordSearch::merge | ( | const QStringList & | keywordList | ) |
Reverse of split(). From a list of keywords, gives a single string for a text entry field.
Referenced by Digikam::SearchFieldKeyword::read().
QStringList Digikam::KeywordSearch::split | ( | const QString & | string | ) |
Splits a given string to a list of keywords. Splits at whitespace, but recognizes quotation marks to group words in a single keyword.
References QT_KEEP_EMPTY_PARTS, and QT_SKIP_EMPTY_PARTS.
Referenced by Digikam::DPluginDImg::extraAboutData(), DigikamGenericINatPlugin::Taxon::htmlName(), Digikam::DServiceMenu::runFiles(), and Digikam::SearchFieldKeyword::write().