Remove unused functions in utfsjis.c

This commit is contained in:
kichikuou
2020-07-23 13:53:25 +09:00
parent bdfe0e8077
commit 73fab9b628
2 changed files with 0 additions and 27 deletions
-25
View File
@@ -154,28 +154,3 @@ int sjis_count_char(const BYTE *src) {
}
return c;
}
/* SJIS(EUC) を含む文字列の ASCII を大文字化する */
void sjis_toupper(BYTE *src) {
while(*src) {
if (CHECKSJIS1BYTE(*src)) {
src++;
} else {
if (*src >= 0x60 && *src <= 0x7a) {
*src &= 0xdf;
}
}
src++;
}
}
/* SJIS を含む文字列の ASCII を大文字化する2 */
BYTE *sjis_toupper2(const BYTE *src) {
BYTE *dst;
dst = malloc(strlen(src) +1);
if (dst == NULL) return NULL;
strcpy(dst, src);
sjis_toupper(dst);
return dst;
}
-2
View File
@@ -33,7 +33,5 @@ extern BYTE* utf2sjis(const BYTE *src);
extern boolean sjis_has_hankaku(const BYTE *src);
extern boolean sjis_has_zenkaku(const BYTE *src);
extern int sjis_count_char(const BYTE *src);
extern void sjis_toupper(BYTE *src);
extern BYTE* sjis_toupper2(const BYTE *src);
#endif /* __UTFSJIS__ */