1 /* -*- c-basic-offset: 2 -*- */
2 /*
3   Copyright(C) 2012-2018 Brazil
4 
5   This library is free software; you can redistribute it and/or
6   modify it under the terms of the GNU Lesser General Public
7   License version 2.1 as published by the Free Software Foundation.
8 
9   This library is distributed in the hope that it will be useful,
10   but WITHOUT ANY WARRANTY; without even the implied warranty of
11   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12   Lesser General Public License for more details.
13 
14   You should have received a copy of the GNU Lesser General Public
15   License along with this library; if not, write to the Free Software
16   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
17 */
18 module groonga_d.tokenizer_query_deprecated;
19 
20 
21 private static import groonga_d.groonga;
22 private static import groonga_d.token;
23 
24 extern(C):
25 nothrow @nogc:
26 deprecated:
27 
28 /+
29 #include <groonga/plugin.h>
30 +/
31 /*
32   grn_tokenizer_query is a structure for storing a query. See the following
33   functions.
34 
35   Deprecated since 8.0.2. Use accessors to get data.
36  */
37 alias grn_tokenizer_query = _grn_tokenizer_query_deprecated;
38 
39 struct _grn_tokenizer_query_deprecated
40 {
41 	groonga_d.groonga.grn_obj* normalized_query;
42 	char* query_buf;
43 
44 	const (char)* ptr_;
45 
46 	deprecated
47 	alias ptr = ptr_;
48 
49 	uint length;
50 	groonga_d.groonga.grn_encoding encoding;
51 	uint flags;
52 	groonga_d.groonga.grn_bool have_tokenized_delimiter;
53 	/* Deprecated since 4.0.8. Use tokenize_mode instead. */
54 	groonga_d.token.grn_token_mode token_mode;
55 	groonga_d.token.grn_tokenize_mode tokenize_mode;
56 }