FuzzyMutableIndex

Constructors

this
this(DzlFuzzyMutableIndex* dzlFuzzyMutableIndex, bool ownedRef)

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

~this
~this()
Undocumented in source.

Members

Aliases

doref
alias doref = ref_
Undocumented in source.

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)

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

ownedRef
bool ownedRef;
Undocumented in source.

Meta