1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*************************************************************************
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 * Copyright 2000, 2010 Oracle and/or its affiliates.
8 * OpenOffice.org - a multi-platform office productivity suite
10 * This file is part of OpenOffice.org.
12 * OpenOffice.org is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU Lesser General Public License version 3
14 * only, as published by the Free Software Foundation.
16 * OpenOffice.org is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU Lesser General Public License version 3 for more details
20 * (a copy is included in the LICENSE file that accompanied this code).
22 * You should have received a copy of the GNU Lesser General Public License
23 * version 3 along with OpenOffice.org. If not, see
24 * <http://www.openoffice.org/license.html>
25 * for a copy of the LGPLv3 License.
27 ************************************************************************/
29 #ifndef INCLUDED_RTL_TEXTENC_CONVERTER_H
30 #define INCLUDED_RTL_TEXTENC_CONVERTER_H
32 #include "sal/types.h"
34 #if defined __cplusplus
36 #endif /* __cpluscplus */
41 IMPL_BAD_INPUT_CONTINUE
,
42 IMPL_BAD_INPUT_NO_OUTPUT
43 } ImplBadInputConversionAction
;
45 ImplBadInputConversionAction
46 ImplHandleBadInputTextToUnicodeConversion(
47 sal_Bool bUndefined
, sal_Bool bMultiByte
, sal_Char cByte
, sal_uInt32 nFlags
,
48 sal_Unicode
** pDestBufPtr
, sal_Unicode
* pDestBufEnd
, sal_uInt32
* pInfo
)
51 ImplBadInputConversionAction
52 ImplHandleBadInputUnicodeToTextConversion(sal_Bool bUndefined
,
55 sal_Char
** pDestBufPtr
,
56 sal_Char
* pDestBufEnd
,
58 sal_Char
const * pPrefix
,
60 sal_Bool
* pPrefixWritten
)
63 #if defined __cplusplus
65 #endif /* __cpluscplus */
67 #endif /* INCLUDED_RTL_TEXTENC_CONVERTER_H */
69 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */