Common: Add Shift-JIS helpers

This commit is contained in:
Connor McLaughlin 2020-09-19 00:26:01 +10:00
parent f589865842
commit 70768c02af
5 changed files with 1606 additions and 0 deletions

View File

@ -60,6 +60,8 @@ add_library(common
progress_callback.cpp progress_callback.cpp
progress_callback.h progress_callback.h
scope_guard.h scope_guard.h
shiftjis.cpp
shiftjis.h
state_wrapper.cpp state_wrapper.cpp
state_wrapper.h state_wrapper.h
string.cpp string.cpp

View File

@ -73,6 +73,7 @@
<ClInclude Include="rectangle.h" /> <ClInclude Include="rectangle.h" />
<ClInclude Include="cd_subchannel_replacement.h" /> <ClInclude Include="cd_subchannel_replacement.h" />
<ClInclude Include="scope_guard.h" /> <ClInclude Include="scope_guard.h" />
<ClInclude Include="shiftjis.h" />
<ClInclude Include="state_wrapper.h" /> <ClInclude Include="state_wrapper.h" />
<ClInclude Include="string.h" /> <ClInclude Include="string.h" />
<ClInclude Include="string_util.h" /> <ClInclude Include="string_util.h" />
@ -128,6 +129,7 @@
<ClCompile Include="minizip_helpers.cpp" /> <ClCompile Include="minizip_helpers.cpp" />
<ClCompile Include="null_audio_stream.cpp" /> <ClCompile Include="null_audio_stream.cpp" />
<ClCompile Include="progress_callback.cpp" /> <ClCompile Include="progress_callback.cpp" />
<ClCompile Include="shiftjis.cpp" />
<ClCompile Include="state_wrapper.cpp" /> <ClCompile Include="state_wrapper.cpp" />
<ClCompile Include="cd_xa.cpp" /> <ClCompile Include="cd_xa.cpp" />
<ClCompile Include="string.cpp" /> <ClCompile Include="string.cpp" />

View File

@ -102,6 +102,7 @@
<ClInclude Include="minizip_helpers.h" /> <ClInclude Include="minizip_helpers.h" />
<ClInclude Include="win32_progress_callback.h" /> <ClInclude Include="win32_progress_callback.h" />
<ClInclude Include="make_array.h" /> <ClInclude Include="make_array.h" />
<ClInclude Include="shiftjis.h" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ClCompile Include="jit_code_buffer.cpp" /> <ClCompile Include="jit_code_buffer.cpp" />
@ -196,6 +197,7 @@
<ClCompile Include="cd_image_memory.cpp" /> <ClCompile Include="cd_image_memory.cpp" />
<ClCompile Include="minizip_helpers.cpp" /> <ClCompile Include="minizip_helpers.cpp" />
<ClCompile Include="win32_progress_callback.cpp" /> <ClCompile Include="win32_progress_callback.cpp" />
<ClCompile Include="shiftjis.cpp" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Natvis Include="bitfield.natvis" /> <Natvis Include="bitfield.natvis" />

1596
src/common/shiftjis.cpp Normal file

File diff suppressed because it is too large Load Diff

4
src/common/shiftjis.h Normal file
View File

@ -0,0 +1,4 @@
#pragma once
void sjis2ascii(char* bData);
char* sjis2utf8(char* input);