Groonga 3.0.9 Source Code Document
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
Globals
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
groonga
lib
string_in.h
Go to the documentation of this file.
1
/* -*- c-basic-offset: 2 -*- */
2
/*
3
Copyright(C) 2012 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 as published by the Free Software Foundation; either
8
version 2.1 of the License, or (at your option) any later version.
9
10
This library is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
Lesser General Public License for more details.
14
15
You should have received a copy of the GNU Lesser General Public
16
License along with this library; if not, write to the Free Software
17
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18
*/
19
20
#ifndef GRN_STRING_H
21
#define GRN_STRING_H
22
23
#ifndef GROONGA_IN_H
24
# include "
groonga_in.h
"
25
#endif
/* GROONGA_IN_H */
26
27
#ifndef GRN_CTX_H
28
# include "
ctx.h
"
29
#endif
/* GRN_CTX_H */
30
31
#ifndef GRN_DB_H
32
# include "
db.h
"
33
#endif
/* GRN_DB_H */
34
35
#ifndef GRN_STR_H
36
# include "
str.h
"
37
#endif
/* GRN_STR_IN_H */
38
39
#ifdef __cplusplus
40
extern
"C"
{
41
#endif
42
43
typedef
struct
{
44
grn_obj_header
header
;
45
const
char
*
original
;
46
unsigned
int
original_length_in_bytes
;
47
char
*
normalized
;
48
unsigned
int
normalized_length_in_bytes
;
49
unsigned
int
n_characters
;
50
short
*
checks
;
51
unsigned
char
*
ctypes
;
52
grn_encoding
encoding
;
53
int
flags
;
54
}
grn_string
;
55
56
grn_obj
*
grn_string_open_
(
grn_ctx
*ctx,
const
char
*str,
unsigned
int
str_len,
57
grn_obj
*normalizer,
int
flags,
grn_encoding
encoding);
58
grn_rc
grn_string_close
(
grn_ctx
*ctx,
grn_obj
*
string
);
59
grn_rc
grn_string_inspect
(
grn_ctx
*ctx,
grn_obj
*
buffer
,
grn_obj
*
string
);
60
61
#ifdef __cplusplus
62
}
63
#endif
64
65
#endif
/* GRN_STRING_IN_H */
Generated on Sun Nov 10 2013 09:49:04 for Groonga 3.0.9 Source Code Document by
1.8.1.2