1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/intl/uconv/util/unicpriv.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,52 @@ 1.4 +/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.8 +#ifndef __UNIPRIV__ 1.9 +#define __UNIPRIV__ 1.10 + 1.11 +#include <stdint.h> 1.12 +#include "umap.h" 1.13 +#include "uconvutil.h" 1.14 + 1.15 +#ifdef __cplusplus 1.16 +extern "C" { 1.17 +#endif 1.18 + 1.19 +int uMapCode(const uTable *uT, 1.20 + uint16_t in, 1.21 + uint16_t* out); 1.22 + 1.23 +int uGenerate(uScanClassID scanClass, 1.24 + int32_t* state, 1.25 + uint16_t in, 1.26 + unsigned char* out, 1.27 + uint32_t outbuflen, 1.28 + uint32_t* outlen); 1.29 + 1.30 +int uScan(uScanClassID scanClass, 1.31 + int32_t *state, 1.32 + unsigned char *in, 1.33 + uint16_t *out, 1.34 + uint32_t inbuflen, 1.35 + uint32_t* inscanlen); 1.36 + 1.37 +int uGenerateShift(uShiftOutTable *shift, 1.38 + int32_t* state, 1.39 + uint16_t in, 1.40 + unsigned char* out, 1.41 + uint32_t outbuflen, 1.42 + uint32_t* outlen); 1.43 + 1.44 +int uScanShift(uShiftInTable *shift, 1.45 + int32_t *state, 1.46 + unsigned char *in, 1.47 + uint16_t *out, 1.48 + uint32_t inbuflen, 1.49 + uint32_t* inscanlen); 1.50 + 1.51 +#ifdef __cplusplus 1.52 +} 1.53 +#endif 1.54 + 1.55 +#endif /* __UNIPRIV__ */