big5.writer

function

Library: Big5 (OMFFBIG5)
Import : omffbig5.xmd

Returns: A writable output target for streaming data.


Declaration
export external string sink function 
   writer into value string sink output-data


Purpose

Use big5.writer to accept UTF-8 encoded data and write that data to its value string sink output-data argument, converted from a UTF-8 encoding to a Big5 encoding. That is, the program writes UTF-8, but the provided output receives Big5.

Example

The following program uses big5.writer to convert the output of find rules from UTF-8 to Big5.

  import "omffbig5.xmd" prefixed by big5.
  
  process
     using output as big5.writer into #main-output
        using group "process input"
           submit #main-input
  
  group "process input"
     ; ...

Usage Note

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

  import "omffbig5.xmd" prefixed by big5.

Other Library Functions