Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ sjtouj(3X) — HP-UX 7.01

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

iconv(3C)

JCODE(3X)

NAME

jistosj, jistouj, sjtojis, sjtouj, ujtojis, ujtosj, cjistosj, cjistouj, csjtojis, csjtouj, cujtojis, cujtosj − code set conversion routines for JIS, Shift JIS and UJIS

SYNOPSIS

#include <jcode.h>

char ∗jistosj(s1, s2)
char ∗s1, ∗s2;

char ∗jistouj(s1, s2)
char ∗s1, ∗s2;

char ∗sjtojis(s1, s2)
char ∗s1, ∗s2;

char ∗sjtouj(s1, s2)
char ∗s1, ∗s2;

char ∗ujtojis(s1, s2)
char ∗s1, ∗s2;

char ∗ujtosj(s1, s2)
char ∗s1, ∗s2;

char ∗cjistosj(s1, s2)
char ∗s1, ∗s2;

char ∗cjistouj(s1, s2)
char ∗s1, ∗s2;

char ∗csjtojis(s1, s2)
char ∗s1, ∗s2;

char ∗csjtouj(s1, s2)
char ∗s1, ∗s2;

char ∗cujtojis(s1, s2)
char ∗s1, ∗s2;

char ∗cujtosj(s1, s2)
char ∗s1, ∗s2;

DESCRIPTION

Functions, jistosj, jistouj, sjtojis, sjtouj, ujtojis, and ujtosj convert a string from one code set to another (using 8-bit process code).  These routines convert the string pointed to by s2, store the converted string to the array pointed to by s1, and return s1. These functions do not check for overflow of s1. Validity of the string pointed to by s2 is assumed, and no checks are made for invalid code in the string. 
JIS encoded strings for s2 are assumed to include proper control sequences (for character set designation).  Also, strings converted to JIS by the routines include proper control sequences (for character set designation). 

Jistosj converts JIS to SJIS. 

Jistouj converts JIS to UJIS. 

Sjtojis converts SJIS to JIS. 

Sjtouj converts SJIS to UJIS. 

Ujtojis converts UJIS to JIS. 

Ujtosj converts UJIS to SJIS. 

Each of the functions, cjistosj, cjistouj, csjtojis, csjtouj, cujtojis, and cujtosj converts one Kanji character from one code set to another (using 8-bit process code).  These routines get one Kanji character from the string pointed to by s2, convert it, store the converted character in the array pointed to by s1, and return s1. The contents of the array pointed to by s2 is not checked for validity.  Also, conversion to JIS does not include addition of control sequences. 

Cjistosj converts JIS to SJIS. 

Cjistouj converts JIS to UJIS. 

Csjtojis converts SJIS to JIS. 

Csjtouj converts SJIS to UJIS

Cujtojis converts UJIS to JIS. 

Cujtosj converts UJIS to SJIS. 

SEE ALSO

iconv(3C)

Hewlett-Packard Company  —  HP-UX Release 7.0: Sept 1989

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026