1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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/.
10 #ifndef INCLUDED_UNOTOOLS_WINCODEPAGE_HXX
11 #define INCLUDED_UNOTOOLS_WINCODEPAGE_HXX
13 #include <unotools/unotoolsdllapi.h>
14 #include <rtl/textenc.h>
16 /** Map from a ISO-639 language code (and optionally ISO-3166 country/region code)
17 to a text encoding of corresponding Windows ANSI or OEM codepage.
20 Any language-country string. Must not be null.
23 If true, OEM codepage is returned, otherwise ANSI.
26 The corresponding rtl_TextEncoding value.
27 If no mapping is found, RTL_TEXTENCODING_IBM_850 is returned when bOEM is true,
28 RTL_TEXTENCODING_MS_1252 otherwise.
30 UNOTOOLS_DLLPUBLIC rtl_TextEncoding
utl_getWinTextEncodingFromLangStr(
31 const char* pLanguage
, bool bOEM
= false);
33 #endif // INCLUDED_UNOTOOLS_WINCODEPAGE_HXX
35 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */