mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-05-12 06:14:24 -05:00
19 lines
434 B
C++
19 lines
434 B
C++
// Copyright 2026 Dolphin Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#include "Common/CommonTypes.h"
|
|
|
|
namespace Common
|
|
{
|
|
|
|
// These return U+FFFD "REPLACEMENT CHARACTER" on failure.
|
|
char32_t DecodeSingleByteShiftJIS(u8 code_unit);
|
|
char32_t DecodeDoubleByteShiftJIS(u8 first_code_unit, u8 second_code_unit);
|
|
|
|
// Returns u16(-1) on failure.
|
|
u16 EncodeShiftJIS(char32_t unicode);
|
|
|
|
} // namespace Common
|