-
Notifications
You must be signed in to change notification settings - Fork 47
Expand file tree
/
Copy path_ranked_completer.pxd
More file actions
28 lines (22 loc) · 909 Bytes
/
_ranked_completer.pxd
File metadata and controls
28 lines (22 loc) · 909 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
from _base_types cimport BaseType, SizeType, ValueType
from _dawg cimport Dawg
from _dictionary cimport Dictionary
from _ranked_guide cimport RankedGuide
cdef extern from "../lib/dawgdic/ranked-completer.h" namespace "dawgdic" nogil:
cdef cppclass RankedCompleter:
RankedCompleter()
RankedCompleter(Dictionary &dic, RankedGuide &guide)
void set_dic(Dictionary &dic)
void set_guide(RankedGuide &guide)
Dictionary &dic()
RankedGuide &guide()
# These member functions are available only when Next() returns true.
char *key()
SizeType length()
ValueType value()
# Starts completing keys from given index and prefix.
void Start(BaseType index)
void Start(BaseType index, char *prefix)
void Start(BaseType index, char *prefix, SizeType length)
# Gets the next key.
bint Next()