Dazzle.FuzzyMutableIndex – libdazzle-1.0 Reference Manual
Packages
libdazzle-1.0
Dazzle
FuzzyMutableIndex
FuzzyMutableIndex
FuzzyMutableIndex.with_free_func
@ref
begin_bulk_insert
contains
end_bulk_insert
insert
match
remove
set_free_func
unref
FuzzyMutableIndex
Object Hierarchy:
Description:
[
CCode
( ref_function =
"dzl_fuzzy_mutable_index_ref"
, type_id =
"dzl_fuzzy_mutable_index_get_type ()"
, unref_function =
"dzl_fuzzy_mutable_index_unref"
) ]
[
Compact
]
public
class
FuzzyMutableIndex
Namespace:
Dazzle
Package:
libdazzle-1.0
Content:
Creation methods:
public
FuzzyMutableIndex
(
bool
case_sensitive)
Create a new
Fuzzy
for fuzzy matching strings.
public
FuzzyMutableIndex.with_free_func
(
bool
case_sensitive,
DestroyNotify
free_func)
Methods:
public
FuzzyMutableIndex
@ref
()
public
void
begin_bulk_insert
()
Start a bulk insertion.
public
bool
contains
(
string
key)
public
void
end_bulk_insert
()
Complete a bulk insert and resort the index.
public
void
insert
(
string
key,
void
* value)
Inserts a string into the fuzzy matcher.
public
Array
<
FuzzyMutableIndexMatch
?>
match
(
string
needle,
size_t
max_matches)
DzlFuzzyMutableIndex searches within
this
for strings that fuzzy match
needle
.
public
void
remove
(
string
key)
public
void
set_free_func
(
DestroyNotify
free_func)
public
void
unref
()
Decrements the reference count of fuzzy by one.