Avoid potential negative array index access to cached text.
[LibreOffice.git] / sal / textenc / convertisciidevangari.hxx
blob89aeeaef723e42a8c2ade3d39fad55ee4624d73a
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/.
8 */
10 #ifndef INCLUDED_SAL_TEXTENC_CONVERTISCIIDEVANGARI_HXX
11 #define INCLUDED_SAL_TEXTENC_CONVERTISCIIDEVANGARI_HXX
13 #include <sal/types.h>
15 sal_Size ImplConvertIsciiDevanagariToUnicode(void const * pData,
16 void * pContext, char const * pSrcBuf, sal_Size nSrcBytes,
17 sal_Unicode * pDestBuf, sal_Size nDestChars, sal_uInt32 nFlags,
18 sal_uInt32 * pInfo, sal_Size * pSrcCvtBytes);
20 sal_Size ImplConvertUnicodeToIsciiDevanagari(void const * pData,
21 void * pContext, sal_Unicode const * pSrcBuf, sal_Size nSrcChars,
22 char * pDestBuf, sal_Size nDestBytes, sal_uInt32 nFlags,
23 sal_uInt32 * pInfo, sal_Size * pSrcCvtChars);
25 void *ImplCreateIsciiDevanagariToUnicodeContext();
27 void ImplDestroyIsciiDevanagariToUnicodeContext(void * pContext);
29 void ImplResetIsciiDevanagariToUnicodeContext(void * pContext);
31 void *ImplCreateUnicodeToIsciiDevanagariContext();
33 void ImplResetUnicodeToIsciiDevanagariContext(void * pContext);
35 void ImplDestroyUnicodeToIsciiDevanagariContext(void * pContext);
37 #endif // INCLUDED_SAL_TEXTENC_CONVERTISCIIDEVANGARI_HXX
39 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */