aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/marisa-trie/query.pxd
blob: a650bb89658e59b131491249e46a56a3b71b2b86 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
cdef extern from "<marisa/query.h>" namespace "marisa" nogil:

    cdef cppclass Query:
        Query()
        Query(Query &query)

        #Query &operator=(Query &query)

        char operator[](int i)

        void set_str(char *str)
        void set_str(char *ptr, int length)
        void set_id(int id)

        char *ptr()
        int length()
        int id()

        void clear()
        void swap(Query &rhs)