CALL KEXT
This page was last modified 11:52, 29 November 2016 by Mars2000you. Based on work by Gdx.

Contents

Effect

Returns a string with half-width characters or full-width characters removed from an alphanumeric variable.

Syntax

CALL KEXT (<alphanumeric variable>,<string>,<type>)

Parameters

<alphanumeric variable> will contain resulting string.

<string> can be a string (between quotation mark) or an alphanumeric variable.

For a correct working, it's better to use Hangul characters regrouped in blocks.

<type>
0: Remove the half-width characters (Hankaku) in Kanji mode / Non-Korean characters in Hangul mode
1: Remove the full-width characters (Zenkaku) in Kanji mode / Korean characters in Hangul mode

Examples

CALL KEXT(B$,"最初はグー!",0):PRINT B$
グー!
CALL KEXT(B$,"最初はグー!",1):PRINT B$
最初は

Hankaku/Zenkaku

In the Japanese language, the following characters are hankaku (1-byte) : English alphabets, numbers, western punctuation, unaccented katakanas and hiraganas, Japanese punctuation, Japanese accents.

In the Zenkaku, 2-byte characters, you find all hiraganas and katakanas, both accented and unaccented, English alphabets, special pictograms like large circles and measurement terms, Greek and Russian fonts, and thousands of kanjis. These are contained in the big Kanji ROM (128kB if JIS1, 256kB if JIS1+JIS2).

Related to

CALL AKCNV, CALL KACNV, CALL KLEN, CALL KTYPE

Compatibility

Hangul BASIC version 3 or higher, Kanji BASIC