ntloader/include/charset.h
2025-02-13 21:50:15 +09:00

32 lines
978 B
C

/*
* ntloader -- Microsoft Windows NT6+ loader
* Copyright (C) 2025 A1ive.
*
* ntloader is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published
* by the Free Software Foundation, either version 3 of the License,
* or (at your option) any later version.
*
* ntloader 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 General Public License
* along with ntloader. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _CHARSET_H
#define _CHARSET_H 1
#include <stdint.h>
#include <stddef.h>
uint16_t *
utf8_to_ucs2 (uint16_t *dest, size_t destsize, const uint8_t *src);
uint8_t *
ucs2_to_utf8 (uint8_t *dest, const uint16_t *src, size_t size);
#endif