Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ jtoupper(3J) — NEWS-os 3.3

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

ctype(3)

chkctype(3J)

jstring(3J)

set_syscode(3J)

JCTYPE(3J)  —  UNIX Programmer’s Manual

NAME

jiszen, jisl0, jisl1, jisl2, jisalpha, jisupper, jislower, jisdigit, jiskata, jishira, jiskigou, jisspace, jtolower, jtoupper, jtohira, jtokata, zen2han, han2zen, euc2jis, euc2kuten, euc2sjis, jis2euc, jis2kuten, jis2sjis, kuten2euc, kuten2jis, kuten2sjis, sjis2euc, sjis2jis, sjis2kuten − Japanese character predicates and utility functions

SYNOPSIS

#include <jctype.h>

jiszen(c)

. . . 

DESCRIPTION

These functions are supplements of ctype(3) for Japanese processing.  All arguments must be unsigned short type. 

Return values are int type for the following functions, nonzero for true or zero for false is returned. 
If you want to use EUC kanji code, a function, set_syscode(‘euc’), should be called before using these functions.

jiszen c is a zenkaku moji (iskanji(c >> 8) && iskanji2(c & 0xff)). 

jisl0 c is between zenkaku space and just before the first moji of JIS kanji. 

jisl1 c is a level-1 JIS kanji. 

jisl2 c is a level-2 JIS kanji (JIS X 0208-1983). 

jisalpha c is zenkaku alphabet. 

jisupper c is a zenkaku upper case alphabet. 

jislower c is a zenkaku lower case alphabet. 

jisdigit c is a zenkaku numeric. 

jiskata c is a zenkaku katakana. 

jishira c is a zenkaku hiragana. 

jiskigou c is a zenkaku punctuation character. 

jisspace c is a zenkaku space. 

Return values are  unsigned short type for the following functions. These functions return the argument c itself when the conversion fails. 
If you want to use EUC kanji code, a function, set_syscode(‘euc’), should be called before using these functions.

jtolower converts zenkaku upper to zenkaku lower case. 

jtoupper converts zenkaku lower to zenkaku upper case. 

jtohira convers zenkaku katakana to zenkaku hiragana. 

jtokata convers zenkaku hiragana to zenkaku katakana. 

zen2han convers zenkaku ASCII to hankaku(normal) ASCII. 

han2zen convers hankaku(normal) ASCII to zenkaku ASCII. 

The following functions convert the given argument into the equivalant code of another code system.  Kuten code is the value of ‘(KU << 8) | TEN’.  Return values are  unsigned short type.  These functions return zero if the argument is illegal. 

|  JIS kutenShift-JIS  EUC

EUC| euc2jiseuc2kuteneuc2sjis   ∗
Shift-JIS| sjis2jissjis2kuten   ∗sjis2euc
kuten| kuten2jis   ∗kuten2sjiskuten2euc
JIS|    ∗jis2kutenjis2sjisjis2euc

SEE ALSO

ctype(3), chkctype(3J), jstring(3J), set_syscode(3J)

NEWS-OSRelease 3.3

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