intl/uconv/util/unicpriv.h

branch
TOR_BUG_9701
changeset 8
97036ab72558
equal deleted inserted replaced
-1:000000000000 0:1cf368149927
1 /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 #ifndef __UNIPRIV__
6 #define __UNIPRIV__
7
8 #include <stdint.h>
9 #include "umap.h"
10 #include "uconvutil.h"
11
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15
16 int uMapCode(const uTable *uT,
17 uint16_t in,
18 uint16_t* out);
19
20 int uGenerate(uScanClassID scanClass,
21 int32_t* state,
22 uint16_t in,
23 unsigned char* out,
24 uint32_t outbuflen,
25 uint32_t* outlen);
26
27 int uScan(uScanClassID scanClass,
28 int32_t *state,
29 unsigned char *in,
30 uint16_t *out,
31 uint32_t inbuflen,
32 uint32_t* inscanlen);
33
34 int uGenerateShift(uShiftOutTable *shift,
35 int32_t* state,
36 uint16_t in,
37 unsigned char* out,
38 uint32_t outbuflen,
39 uint32_t* outlen);
40
41 int uScanShift(uShiftInTable *shift,
42 int32_t *state,
43 unsigned char *in,
44 uint16_t *out,
45 uint32_t inbuflen,
46 uint32_t* inscanlen);
47
48 #ifdef __cplusplus
49 }
50 #endif
51
52 #endif /* __UNIPRIV__ */

mercurial