Avoid potential negative array index access to cached text.
[LibreOffice.git] / sal / textenc / handleundefinedunicodetotextchar.hxx
blob106ad8a43b57b7d7293a797a85394c1925101da8
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_HANDLEUNDEFINEDUNICODETOTEXTCHAR_HXX
11 #define INCLUDED_SAL_TEXTENC_HANDLEUNDEFINEDUNICODETOTEXTCHAR_HXX
13 #include <sal/config.h>
15 #include <sal/saldllapi.h>
16 #include <sal/types.h>
18 // Internal, non-stable ABI
20 namespace sal::detail::textenc {
22 // True means "continue," false means "break:"
23 bool SAL_DLLPUBLIC handleUndefinedUnicodeToTextChar(
24 sal_Unicode const ** ppSrcBuf, sal_Unicode const * pEndSrcBuf,
25 char ** ppDestBuf, char const * pEndDestBuf, sal_uInt32 nFlags,
26 sal_uInt32 * pInfo);
30 #endif