File: //home/django/libpff/libclocale/libclocale_codepage.h
/*
* Codepage functions
*
* Copyright (C) 2010-2024, Joachim Metz <joachim.metz@gmail.com>
*
* Refer to AUTHORS for acknowledgements.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#if !defined( _LIBCLOCALE_CODEPAGE_H )
#define _LIBCLOCALE_CODEPAGE_H
#include <common.h>
#include <types.h>
#include "libclocale_extern.h"
#include "libclocale_libcerror.h"
#if defined( __cplusplus )
extern "C" {
#endif
#if defined( __CYGWIN__ ) && ( __GNUC__ < 10 )
int libclocale_codepage;
#else
LIBCLOCALE_EXTERN_VARIABLE \
int libclocale_codepage;
#endif
LIBCLOCALE_EXTERN \
int libclocale_codepage_get(
int *codepage,
libcerror_error_t **error );
LIBCLOCALE_EXTERN \
int libclocale_codepage_set(
int codepage,
libcerror_error_t **error );
LIBCLOCALE_EXTERN \
int libclocale_codepage_copy_from_string(
int *codepage,
const char *string,
size_t string_length,
uint32_t feature_flags,
libcerror_error_t **error );
#if defined( HAVE_WIDE_CHARACTER_TYPE )
LIBCLOCALE_EXTERN \
int libclocale_codepage_copy_from_string_wide(
int *codepage,
const wchar_t *string,
size_t string_length,
uint32_t feature_flags,
libcerror_error_t **error );
#endif /* defined( HAVE_WIDE_CHARACTER_TYPE ) */
#if defined( __cplusplus )
}
#endif
#endif /* !defined( _LIBCLOCALE_CODEPAGE_H ) */