jcode Subroutines

Purpose

Perform string conversion on 8-bit processing codes.

Library

Standard C Library (libc.a)

Syntax

#include <jcode.h>

char *jistosj( String1 String2)
char *String1, *String2;

char *jistouj(String1, String2
char *String1, *String2;
char *sjtojis(String1, String2)
char *String1, *String2;
char *sjtouj(String1, String2)
char *String1, *String2;
char *ujtojis(String1, String2)
char *String1, *String2;
char *ujtosj(String1, String2)
char *String1, *String2;
char *cjistosj(String1, String2)
char *String1, *String2;
char *cjistouj(String1, String2)
char *String1, *String2;
char *csjtojis(String1, String2)
char *String1, *String2;
char *csjtouj(String1, String2
char *String1, *String2;
char *cujtojis(String1, String2)
char *String1, *String2;
char *cujtosj(String1, String2)
char *String1, *String2;

Description

The jistosj, jistouj, sjtojis, sjtouj, ujtojis, and ujtosj subroutines perform string conversion on 8-bit processing codes. The String2 parameter is converted and the converted string is stored in the String1 parameter. The overflow of the String1 parameter is not checked. Also, the String2 parameter must be a valid string. Code validation is not permitted.

The jistosj subroutine converts JIS to SJIS. The jistouj subroutine converts JIS to UJIS. The sjtojis subroutine converts SJIS to JIS. The sjtouj subroutine converts SJIS to UJIS. The ujtojis subroutine converts UJIS to JIS. The ujtosj subroutine converts UJIS to SJIS.

The cjistosj, cjistouj, csjtojis, csjtouj, cujtojis, and cujtosj macros perform code conversion on 8-bit processing JIS Kanji characters. A character is removed from the String2 parameter, and its code is converted and stored in the String1 parameter. The String1 parameter is returned. The validity of the String2 parameter is not checked.

The cjistosj macro converts from JIS to SJIS. The cjistouj macro converts from JIS to UJIS. The csjtojis macro converts from SJIS to JIS. The csjtouj macro converts from SJIS to UJIS. The cujtojis macro converts from UJIS to JIS. The cujtosj macro converts from UJIS to SJIS.

Parameters

Item Description
String1 Stores converted string or code.
String2 Stores string or code to be converted.