big5.reader

function

Library: Big5 (OMFFBIG5)
Import : omffbig5.xmd

Returns: a scannable input source for streaming data


Declaration
export external string source function 
   reader from value string source input-data


Purpose

Use big5.reader to read its value string source input-data argument and return the data converted from a Big 5 encoding to a UTF-8 encoding. That is, the provided source is in Big 5, but the program sees UTF-8

Example

The following program uses big5.reader to convert a file provided on the command-line to UTF-8 before scanning the result.

  import "omffbig5.xmd" prefixed by big5.
  
  process
     using group "process file"
        submit big5.reader from #main-input
  
  group "process file"
     ; ...

Usage Note

To use big5.reader, you must import OMFFBIG5 into your program using an import declaration such as:

  import "omffbig5.xmd" prefixed by big5.

Other Library Functions