tdf#39279: Prioritise Thunderbird address books in first-match search
[LibreOffice.git] / sal / textenc / convertbig5hkscs.hxx
blob719bf3b81875109e7ac2a0d15b2b143701acab2d
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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;
37 int m_nEudcCount;
40 void * ImplCreateBig5HkscsToUnicodeContext();
42 void ImplResetBig5HkscsToUnicodeContext(void * pContext);
44 void ImplDestroyBig5HkscsToUnicodeContext(void * pContext);
46 sal_Size ImplConvertBig5HkscsToUnicode(void const * pData,
47 void * pContext,
48 char const * pSrcBuf,
49 sal_Size nSrcBytes,
50 sal_Unicode * pDestBuf,
51 sal_Size nDestChars,
52 sal_uInt32 nFlags,
53 sal_uInt32 * pInfo,
54 sal_Size * pSrcCvtBytes);
56 sal_Size ImplConvertUnicodeToBig5Hkscs(void const * pData,
57 void * pContext,
58 sal_Unicode const * pSrcBuf,
59 sal_Size nSrcChars,
60 char * pDestBuf,
61 sal_Size nDestBytes,
62 sal_uInt32 nFlags,
63 sal_uInt32 * pInfo,
64 sal_Size * pSrcCvtChars);
66 #endif
68 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */