function
Library: JIS (OMFFJIS)
Import : omffjis.xmd |
Returns: a scannable input source for streaming data |
export external string source function reader from value string source input-data
Use jis.reader
to read its value string source
input-data argument, and return
that data converted from a JIS encoding to a UTF-8 encoding. That is, the provided source is in JIS, but the
program sees UTF-8.
The following program uses jis.reader
to convert #main-input
from UTF-8 to JIS, and send the
result to find
rules for further processing.
import "omffjis.xmd" prefixed by jis. process using group "process input" submit jis.reader from #main-input group "process input" ; ...
To use jis.reader
, you must import OMFFJIS into your program using an import
declaration such as:
import "omffjis.xmd" prefixed by jis.