Refectoring: Add is_[12]byte_message() helper functions

This commit is contained in:
kichikuou
2020-12-20 14:44:08 +09:00
parent 33a0595016
commit 067e1e23bd
8 changed files with 23 additions and 19 deletions
+1 -1
View File
@@ -128,7 +128,7 @@ void FILEIO::Fgets(char *dest, int length)
if(p < length + 1) {
dest[p++] = c;
}
if((0x81 <= c && c <= 0x9f) || 0xe0 <= c) {
if(is_2byte_message(c)) {
if(p < length + 1) {
dest[p++] = Fgetc();
}