sj4/include/sj4charset/sj4charset.h

33 lines
735 B
C
Raw Permalink Normal View History

2026-06-29 20:11:20 +09:00
#ifndef __SJ4CHARSET_H__
#define __SJ4CHARSET_H__
2026-06-25 09:25:46 +09:00
#include <sj_types.h>
#include <wchar.h>
2026-07-02 09:41:03 +09:00
#ifdef __cplusplus
extern "C" {
#endif
2026-06-28 07:59:25 +09:00
enum SJ4CHARSET {
SJ4EUCJP = 0,
SJ4SJIS,
SJ4UTF8,
SJ4UTF16
};
2026-06-25 09:25:46 +09:00
int sj4_from_sjis(u_char* out, const u_char* in, int len);
int sj4_from_utf8(u_char* out, const u_char* in, int len);
int sj4_from_utf16(u_char* out, const u_char* in, int len);
int sj4_to_sjis(u_char* out, const u_char* in, int len);
int sj4_to_utf8(u_char* out, const u_char* in, int len);
int sj4_to_utf16(u_char* out, const u_char* in, int len);
2026-06-28 07:59:25 +09:00
int sj4_charset_to(int type, void* output, const void* input, int len);
int sj4_charset_from(int type, void* output, const void* input, int len);
2026-07-02 09:41:03 +09:00
#ifdef __cplusplus
}
#endif
2026-06-25 09:25:46 +09:00
#endif