Match ut_CharStreamReader

This commit is contained in:
robojumper
2024-05-05 09:25:21 +02:00
parent 88df5e430b
commit 282402ff85
2 changed files with 2 additions and 8 deletions
+1 -1
View File
@@ -320,7 +320,7 @@ config.libs = [
Object(Matching, "nw4r/ut/ut_list.cpp"),
Object(Matching, "nw4r/ut/ut_LinkList.cpp"),
Object(Matching, "nw4r/ut/ut_binaryFileFormat.cpp"),
Object(NonMatching, "nw4r/ut/ut_CharStrmReader.cpp"),
Object(Matching, "nw4r/ut/ut_CharStrmReader.cpp"),
Object(NonMatching, "nw4r/ut/ut_TagProcessorBase.cpp"),
Object(NonMatching, "nw4r/ut/ut_IOStream.cpp"),
Object(NonMatching, "nw4r/ut/ut_FileStream.cpp"),
+1 -7
View File
@@ -40,13 +40,7 @@ u16 CharStrmReader::ReadNextCharCP1252() {
u16 CharStrmReader::ReadNextCharSJIS() {
u16 code = GetChar<u8>(0);
bool isLead = false;
if ((((u8)GetChar<u8>(0) >= 0x81) && ((u8)GetChar<u8>(0) <= 0xA0)) || (u8)GetChar<u8>(0) >= 0xe0) {
isLead = true;
}
if (isLead) {
if (IsSJISLeadByte((u8)code)) {
code = GetChar<u8>(1) | (GetChar<u8>(0) << 8);
StepStrm<u8>(2);
} else {