kiten/lib
dictquery.cpp
Go to the documentation of this file.
Definition: dictquery.h:307
Definition: dictquery.h:351
void truncate(int position)
const Key key(const T &value) const
Definition: dictquery.h:348
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
int size() const
bool contains(const QString &str, Qt::CaseSensitivity cs) const
bool setMeaning(const QString &newMeaning)
Mutator for the Meaning field.
Definition: dictquery.cpp:507
MatchType
This enum is used to define the type of matching this query is supposed to do.
Definition: dictquery.h:285
bool removeProperty(const QString &key)
Remove all instances of a property.
Definition: dictquery.cpp:484
QStringList getDictionaries() const
Returns a list of the dictionaries that this particular query will target.
Definition: dictquery.cpp:583
MatchWordType
This enum is used to define the type of matching this query is supposed to do.
Definition: dictquery.h:305
Definition: dictquery.h:350
DictQuery & operator=(const DictQuery &old)
The assignment copy operator.
Definition: dictquery.cpp:131
bool hasProperty(const QString &key) const
Verify if a given DictQuery object has a search parameter of a particular property.
Definition: dictquery.cpp:460
void setFilterType(FilterType newType)
Set whether or not the query should output results separated in common and uncommon sections...
Definition: dictquery.cpp:601
int count(const T &value) const
static StringTypeEnum charTypeCheck(const QChar &ch)
This utility does the same thing for QChar as stringTypeCheck does for QString.
Definition: dictquery.cpp:418
QString getMeaning() const
Accessor for the non-japanese meaning field.
Definition: dictquery.cpp:502
bool isEmpty() const
QString getProperty(const QString &key) const
Get a specific property by key (is the same as using operator[] const)
Definition: dictquery.cpp:440
QString getWord() const
Accessor for the Word/Kanji field (this is usually used for anything containing kanji).
Definition: dictquery.cpp:554
StringTypeEnum
This enum is used as the return type for the two utility functions, stringTypeCheck and charTypeCheck...
Definition: dictquery.h:345
ushort unicode() const
bool contains(QChar ch, Qt::CaseSensitivity cs) const
Definition: dictquery.h:349
QString takeProperty(const QString &key)
Returns and removes the property.
Definition: dictquery.cpp:493
MatchWordType getMatchWordType() const
Get which word type is currently set on the DictQuery.
Definition: dictquery.cpp:616
char toLatin1() const
const QString toString() const
This returns a QString that represents the query.
Definition: dictquery.cpp:279
Definition: dictquery.h:347
bool setPronunciation(const QString &newPronunciation)
Mutator for the Pronunciation field.
Definition: dictquery.cpp:533
const QChar at(int position) const
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
static StringTypeEnum stringTypeCheck(const QString &in)
A simple utility routine to tell us what sort of string we have If the string contains only kanji...
Definition: dictquery.cpp:382
int length() const
MatchType getMatchType() const
Get which match type is currently set on the DictQuery.
Definition: dictquery.cpp:606
void setDictionaries(const QStringList &newDictionaries)
Set the list of dictionaries to search.
Definition: dictquery.cpp:588
DictQuery & operator+=(const DictQuery &old)
This will append the properties and other elements of the added kanji onto the elements of the curren...
Definition: dictquery.cpp:150
FilterType getFilterType() const
Get which filter is currently set on the DictQuery.
Definition: dictquery.cpp:596
static const QString propertySeperator
This is the delimiter that DictQuery uses when parsing property strings of the form strokes:4...
Definition: dictquery.h:101
Definition: dictquery.h:287
Definition: dictquery.h:327
bool setProperty(const QString &key, const QString &value)
Set a particular property...
Definition: dictquery.cpp:467
const QList< QString > listPropertyKeys() const
Use this to get a list of all the property keys in the query.
Definition: dictquery.cpp:445
const QString operator[](const QString &key) const
Returns a given extended attribute.
Definition: dictquery.cpp:450
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.