1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
10 #ifndef INCLUDED_SAL_TEXTENC_TCVTUTF8_HXX
11 #define INCLUDED_SAL_TEXTENC_TCVTUTF8_HXX
13 #include "sal/config.h"
15 #include "sal/types.h"
17 void * ImplCreateUtf8ToUnicodeContext();
19 void ImplResetUtf8ToUnicodeContext(void * pContext
);
21 void ImplDestroyUtf8ToUnicodeContext(void * pContext
);
23 sal_Size
ImplConvertUtf8ToUnicode(
24 void const * pData
, void * pContext
, char const * pSrcBuf
,
25 sal_Size nSrcBytes
, sal_Unicode
* pDestBuf
, sal_Size nDestChars
,
26 sal_uInt32 nFlags
, sal_uInt32
* pInfo
, sal_Size
* pSrcCvtBytes
);
28 void * ImplCreateUnicodeToUtf8Context();
30 void ImplResetUnicodeToUtf8Context(void * pContext
);
32 void ImplDestroyUnicodeToUtf8Context(void * pContext
);
34 sal_Size
ImplConvertUnicodeToUtf8(
35 void const * pData
, void * pContext
, sal_Unicode
const * pSrcBuf
,
36 sal_Size nSrcChars
, char * pDestBuf
, sal_Size nDestBytes
, sal_uInt32 nFlags
,
37 sal_uInt32
* pInfo
, sal_Size
* pSrcCvtChars
);
41 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */