tdf#130857 qt weld: Implement QtInstanceWidget::strip_mnemonic
[LibreOffice.git] / sal / textenc / convertgb18030.hxx
blob680384794eb47f2d4ffbe8af065bb5f338faecee
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_CONVERTGB18030_HXX
21 #define INCLUDED_SAL_TEXTENC_CONVERTGB18030_HXX
23 #include <sal/config.h>
25 #include <sal/types.h>
27 struct ImplGb180302000ToUnicodeRange
29 sal_Int32 m_nNonRangeDataIndex;
30 sal_uInt32 m_nFirstLinear;
31 sal_uInt32 m_nPastLinear;
32 sal_Unicode m_nFirstUnicode;
35 struct ImplUnicodeToGb180302000Range
37 sal_Int32 m_nNonRangeDataIndex;
38 sal_Unicode m_nFirstUnicode;
39 sal_Unicode m_nLastUnicode;
40 sal_uInt32 m_nFirstLinear;
43 struct ImplGb18030ConverterData
45 sal_Unicode const * m_pGb18030ToUnicodeData;
46 ImplGb180302000ToUnicodeRange const * m_pGb18030ToUnicodeRanges;
47 sal_uInt32 const * m_pUnicodeToGb18030Data;
48 ImplUnicodeToGb180302000Range const * m_pUnicodeToGb18030Ranges;
51 void * ImplCreateGb18030ToUnicodeContext();
53 void ImplResetGb18030ToUnicodeContext(void * pContext);
55 void ImplDestroyGb18030ToUnicodeContext(void * pContext);
57 sal_Size ImplConvertGb18030ToUnicode(void const * pData,
58 void * pContext,
59 char const * pSrcBuf,
60 sal_Size nSrcBytes,
61 sal_Unicode * pDestBuf,
62 sal_Size nDestChars,
63 sal_uInt32 nFlags,
64 sal_uInt32 * pInfo,
65 sal_Size * pSrcCvtBytes);
67 sal_Size ImplConvertUnicodeToGb18030(void const * pData,
68 void * pContext,
69 sal_Unicode const * pSrcBuf,
70 sal_Size nSrcChars,
71 char * pDestBuf,
72 sal_Size nDestBytes,
73 sal_uInt32 nFlags,
74 sal_uInt32 * pInfo,
75 sal_Size * pSrcCvtChars);
77 #endif
79 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */