Update git submodules
[LibreOffice.git] / include / unotools / wincodepage.hxx
blob4ec808e5c90f80eb7b289ec61313dc54abdc67cc
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_UNOTOOLS_WINCODEPAGE_HXX
11 #define INCLUDED_UNOTOOLS_WINCODEPAGE_HXX
13 #include <unotools/unotoolsdllapi.h>
14 #include <rtl/textenc.h>
15 #include <rtl/ustring.hxx>
17 /** Map from an ISO-639 language code (and optionally ISO-3166 country/region code)
18 to a text encoding of corresponding Windows ANSI or OEM codepage.
20 @param sLanguage
21 Any language-country string. Must not be null.
23 @param bOEM
24 If true, OEM codepage is returned, otherwise ANSI.
26 @return
27 The corresponding rtl_TextEncoding value.
28 If no mapping is found, RTL_TEXTENCODING_IBM_850 is returned when bOEM is true,
29 RTL_TEXTENCODING_MS_1252 otherwise.
31 UNOTOOLS_DLLPUBLIC rtl_TextEncoding utl_getWinTextEncodingFromLangStr(
32 const OUString& sLanguage, bool bOEM = false);
34 #endif // INCLUDED_UNOTOOLS_WINCODEPAGE_HXX
36 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */