blob: d99dee5e04acf62fecc9813e257f82cdd40c71d6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
cdef extern from "<marisa/key.h>" namespace "marisa" nogil:
cdef cppclass Key:
Key()
Key(Key &query)
#Key &operator=(Key &query)
char operator[](int i)
void set_str(char *str)
void set_str(char *ptr, int length)
void set_id(int id)
void set_weight(float weight)
char *ptr()
int length()
int id()
float weight()
void clear()
void swap(Key &rhs)
|