Debian Codegraph @

lib/grn_encoding.h

raw symbols SCIP
1 /*
2 Copyright(C) 2018 Brazil
3
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Lesser General Public
6 License as published by the Free Software Foundation; either
7 version 2.1 of the License, or (at your option) any later version.
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
19 #pragma once
20
21 #include "grn.h"
22
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26
27 /*
28 * grn_ctx::errbuf: grn_encoding
29 * grn_logger_put: grn_encoding
30 * mruby: UTF-8
31 * path: locale
32 */
33
34 GRN_API const char *
35 grn_encoding_convert_to_locale(grn_ctx *ctx,
36 const char *grn_encoding_string,
37 ssize_t grn_encoding_string_size,
38 size_t *converted_string_size);
39 GRN_API const char *
40 grn_encoding_convert_to_utf8(grn_ctx *ctx,
41 const char *grn_encoding_string,
42 ssize_t grn_encoding_string_size,
43 size_t *converted_string_size);
44 GRN_API const char *
45 grn_encoding_convert_from_locale(grn_ctx *ctx,
46 const char *locale_string,
47 ssize_t locale_string_size,
48 size_t *converted_string_size);
49 GRN_API const char *
50 grn_encoding_convert_from_utf8(grn_ctx *ctx,
51 const char *utf8_string,
52 ssize_t utf8_string_size,
53 size_t *converted_string_size);
54 GRN_API const char *
55 grn_encoding_convert_to_utf8_from_locale(grn_ctx *ctx,
56 const char *locale_string,
57 ssize_t locale_string_size,
58 size_t *converted_string_size);
59 GRN_API const char *
60 grn_encoding_convert_to_locale_from_utf8(grn_ctx *ctx,
61 const char *utf8_string,
62 ssize_t utf8_string_size,
63 size_t *converted_string_size);
64 GRN_API void
65 grn_encoding_converted_free(grn_ctx *ctx,
66 const char *converted_string);
67
68 #ifdef __cplusplus
69 }
70 #endif