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/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef INCLUDED_SAL_TEXTENC_CONVERTBIG5HKSCS_HXX
21 #define INCLUDED_SAL_TEXTENC_CONVERTBIG5HKSCS_HXX
23 #include <sal/types.h>
25 #include "tenchelp.hxx"
27 struct ImplBig5HkscsConverterData
29 sal_uInt16
const * m_pBig5Hkscs2001ToUnicodeData
;
30 sal_Int32
const * m_pBig5Hkscs2001ToUnicodeRowOffsets
;
31 ImplDBCSToUniLeadTab
const * m_pBig5ToUnicodeData
;
32 sal_uInt16
const * m_pUnicodeToBig5Hkscs2001Data
;
33 sal_Int32
const * m_pUnicodeToBig5Hkscs2001PageOffsets
;
34 sal_Int32
const * m_pUnicodeToBig5Hkscs2001PlaneOffsets
;
35 ImplUniToDBCSHighTab
const * m_pUnicodeToBig5Data
;
36 ImplDBCSEUDCData
const * m_pEudcData
;
40 void * ImplCreateBig5HkscsToUnicodeContext();
42 void ImplResetBig5HkscsToUnicodeContext(void * pContext
);
44 void ImplDestroyBig5HkscsToUnicodeContext(void * pContext
);
46 sal_Size
ImplConvertBig5HkscsToUnicode(void const * pData
,
50 sal_Unicode
* pDestBuf
,
54 sal_Size
* pSrcCvtBytes
);
56 sal_Size
ImplConvertUnicodeToBig5Hkscs(void const * pData
,
58 sal_Unicode
const * pSrcBuf
,
64 sal_Size
* pSrcCvtChars
);
68 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */