[ Bottom of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]

Technical Reference: Base Operating System and Extensions, Volume 1

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

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

Related Information

The Japanese conv Subroutines and Japanese ctype Subroutines.

List of String Manipulation Services in AIX 5L Version 5.2 General Programming Concepts: Writing and Debugging Programs.

National Language Support Overview for Programming in AIX 5L Version 5.2 National Language Support Guide and Reference.

Subroutines, Example Programs, and Libraries in AIX 5L Version 5.2 General Programming Concepts: Writing and Debugging Programs.

[ Top of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]