euc.writer

function

Library: EUC (OMFFEUC)
Import : omffeuc.xmd

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


Purpose

Use euc.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 EUC encoding. That is, the program writes UTF-8, but the provided output receives EUC.

Example

The following program uses euc.writer to convert the output of find rules to EUC. The result is send to #main-output.

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

Usage Note

To use this function, you must import OMFFEUC into your program using an import declaration such as:

  import "omffeuc.xmd" prefixed by euc.

Other Library Functions