kiten/lib
entry.cpp
Go to the documentation of this file.
211 bool Entry::listMatch( const QStringList &list, const QStringList &test, DictQuery::MatchType type ) const
425 bool Entry::sort( const Entry &that, const QStringList &dictOrder, const QStringList &fields ) const
virtual bool extendedItemCheck(const QString &key, const QString &value) const
Simple accessor.
Definition: entry.cpp:83
const QHash< QString, QString > & getExtendedInfo() const
Simple accessor.
Definition: entry.cpp:140
The Entry class is a generic base class for each particular entry in a given dictionary.
Definition: entry.h:44
QStringList split(const QString &sep, SplitBehavior behavior, Qt::CaseSensitivity cs) const
QString getPronunciation() const
Accessor for the Pronunciation field (generally kana)
Definition: dictquery.cpp:528
bool contains(const QString &str, Qt::CaseSensitivity cs) const
MatchType
This enum is used to define the type of matching this query is supposed to do.
Definition: dictquery.h:285
QString join(const QString &separator) const
virtual QString HTMLMeanings() const
Return and HTML version of a meaning list.
Definition: entry.cpp:158
virtual QString HTMLReadings() const
Return and HTML version of a reading list.
Definition: entry.cpp:165
virtual QString makeLink(const QString &entryString) const
Handy function for generating a link from a given QString.
Definition: entry.cpp:289
virtual bool matchesQuery(const DictQuery &) const
Fairly important method, this tests if this particular entry matches a query.
Definition: entry.cpp:294
int count(const T &value) const
QString getMeaning() const
Accessor for the non-japanese meaning field.
Definition: dictquery.cpp:502
bool isEmpty() const
virtual QString toHTML() const
An entry should be able to generate a representation of itself in (valid) HTML.
Definition: entry.cpp:384
bool startsWith(const QString &s, Qt::CaseSensitivity cs) const
Definition: dictquery.h:289
QString getProperty(const QString &key) const
Get a specific property by key (is the same as using operator[] const)
Definition: dictquery.cpp:440
bool listMatch(const QStringList &list, const QStringList &test, DictQuery::MatchType type) const
Handy Utility functions for matching to lists and identifying char types.
Definition: entry.cpp:211
bool endsWith(const QString &s, Qt::CaseSensitivity cs) const
QString getWord() const
Accessor for the Word/Kanji field (this is usually used for anything containing kanji).
Definition: dictquery.cpp:554
ushort unicode() const
QString getMeanings() const
Get a QString containing all of the meanings known, connected by the outputListDelimiter.
Definition: entry.cpp:108
QString toLower() const
bool contains(QChar ch, Qt::CaseSensitivity cs) const
bool isKanji(const QChar &character) const
Handy Utility functions for matching to lists and identifying char types.
Definition: entry.cpp:193
virtual bool sortByField(const Entry &that, const QString &field) const
Overrideable sorting mechanism for sorting by individual fields.
Definition: entry.cpp:485
Definition: dictquery.h:290
virtual bool sort(const Entry &that, const QStringList &dictionaryList, const QStringList &fieldList) const
An overrideable sorting function, similer to operator< in most contexts The default version will sort...
Definition: entry.cpp:425
static const QString mainDelimiter
This is the main delimiter that the DictQuery uses when parsing strings.
Definition: dictquery.h:96
A class to allow users of libkiten to properly setup a database query.
Definition: dictquery.h:89
Definition: dictquery.h:288
MatchType getMatchType() const
Get which match type is currently set on the DictQuery.
Definition: dictquery.cpp:606
virtual QString toString() const
This will return a pure text interpretation of the Entry.
Definition: entry.cpp:413
const QString & getDictName() const
Get the dictionary name that generated this Entry.
Definition: entry.cpp:91
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const
Definition: dictquery.h:287
const QList< QString > listPropertyKeys() const
Use this to get a list of all the property keys in the query.
Definition: dictquery.cpp:445
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:16:38 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:16:38 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.