dolphin/Source/Core/Common/ShiftJIS.h
2026-04-25 23:19:25 -05:00

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