47 return database->spelling_table.get_entry_count();
55 Assert(!cursor->after_end());
56 Assert(!cursor->current_key.empty());
57 Assert(cursor->current_key[0] ==
'W');
61 const char *
p = cursor->current_tag.data();
72 Assert(!cursor->after_end());
74 if (!cursor->next() || cursor->current_key[0] !=
'W') {
78 current_term.assign(cursor->current_key, 1);
86 Assert(!cursor->after_end());
88 if (cursor->find_entry_ge(
"W"s.append(tname))) {
94 if (cursor->after_end() || cursor->current_key[0] !=
'W') {
98 current_term.assign(cursor->current_key, 1);
~GlassSpellingWordsList()
Destructor.
Xapian::termcount get_approx_size() const
Return approximate size of this termlist.
TermList * next()
Advance to the next term in the list.
Xapian::doccount get_termfreq() const
Returns the term frequency of the current term.
TermList * skip_to(std::string_view tname)
Advance to the first term which is >= tname.
DatabaseCorruptError indicates database corruption was detected.
Abstract base class for termlists.
#define LOGCALL(CATEGORY, TYPE, FUNC, PARAMS)
#define LOGCALL_DTOR(CATEGORY, CLASS)
Hierarchy of classes which Xapian can throw as exceptions.
C++ class definition for glass database.
A termlist containing all words which are spelling targets.
unsigned XAPIAN_TERMCOUNT_BASE_TYPE termcount
A counts of terms.
unsigned XAPIAN_DOCID_BASE_TYPE doccount
A count of documents.
Pack types into strings and unpack them again.
bool unpack_uint_last(const char **p, const char *end, U *result)
Decode an unsigned integer as the last item in a string.
Various handy string-related helpers.