FuzzyMutableIndex

Constructors

this
this(DzlFuzzyMutableIndex* dzlFuzzyMutableIndex, bool ownedRef = false)

Sets our main struct and passes it to the parent class.

this
this(bool caseSensitive)

Create a new #Fuzzy for fuzzy matching strings.

this
this(bool caseSensitive, GDestroyNotify freeFunc)

Destructor

A destructor is present on this object, but not explicitly documented in the source.

Members

Functions

beginBulkInsert
void beginBulkInsert()

Start a bulk insertion. @fuzzy is not ready for searching until dzl_fuzzy_mutable_index_end_bulk_insert() has been called.

contains
bool contains(string key)
endBulkInsert
void endBulkInsert()

Complete a bulk insert and resort the index.

getFuzzyMutableIndexStruct
DzlFuzzyMutableIndex* getFuzzyMutableIndexStruct(bool transferOwnership = false)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

insert
void insert(string key, void* value)

Inserts a string into the fuzzy matcher.

match
ArrayG match(string needle, size_t maxMatches)

DzlFuzzyMutableIndex searches within @fuzzy for strings that fuzzy match @needle. Only up to @max_matches will be returned.

ref_
FuzzyMutableIndex ref_()
remove
void remove(string key)
setFreeFunc
void setFreeFunc(GDestroyNotify freeFunc)
unref
void unref()

Decrements the reference count of fuzzy by one. When the reference count reaches zero, the structure will be freed.

Static functions

getType
GType getType()

Variables

dzlFuzzyMutableIndex
DzlFuzzyMutableIndex* dzlFuzzyMutableIndex;

the main Gtk struct

Meta