mirror of
https://github.com/kichikuou/xsystem35-sdl2.git
synced 2026-09-26 08:28:04 +03:00
This replaces BYTE, WORD and DWORD types with uint8_t, uint16_t and uint32_t respectively.
35 lines
1.3 KiB
C
35 lines
1.3 KiB
C
/*
|
|
* hankaku.c zenkaku<->hankaku conversion
|
|
*
|
|
* Copyright (C) 1997-1998 Masaki Chikama (Wren) <chikama@kasumi.ipl.mech.nagoya-u.ac.jp>
|
|
* 1998- <masaki-c@is.aist-nara.ac.jp>
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the Free Software
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
*
|
|
*
|
|
*/
|
|
#ifndef __HANKAKU_H__
|
|
#define __HANKAKU_H__
|
|
|
|
#include "portab.h"
|
|
#include "utfsjis.h"
|
|
|
|
extern uint8_t *zen2han(const uint8_t *src, CharacterEncoding enc);
|
|
extern uint8_t *han2zen(const uint8_t *src, CharacterEncoding enc);
|
|
extern char *format_number(int n, int width, char *buf);
|
|
extern char *format_number_zenkaku(int n, int width, char *buf);
|
|
|
|
#endif /* __HANKAKU_H__ */
|