swirl
Guide to OmniMark 9   OmniMark home
docs home 
IndexConceptsTasksSyntaxLibrariesLegacy LibrariesErrors
 
    Other Library Functions  
pattern  

multi-byte-utf8-char

 
 

Library: UTF-8 text processing (UTF8PAT legacy)
Include: utf8pat.xin

Declaration

multi-byte-utf8-char


Purpose

You can use multi-byte-utf8-char as a pattern to match only multi-byte UTF-8 encoded characters (those with numeric values greater than 128) in your input data.

You can use this pattern in a find rule when you want to process only the multi-byte UTF-8 characters, and let the single-byte UTF-8 characters fall through as unmatched characters do in OmniMark find rules.

Example:

  include "utf8pat.xin"
    process
    repeat scan "flamb%195#%169#"
         match single-byte-utf8-char+ => c
              output c
         match multi-byte-utf8-char => c
              local integer n initial {utf8-char-number c}
              do when n > 255
                   output "&#x" || "16rud" % n || ";"
              else
                   output "b" % n
              done
      again

For other related constants and keywords, see the UTF-8 text processing legacy library.

      Other Library Functions
 
 

Top [ INDEX ] [ CONCEPTS ] [ TASKS ] [ SYNTAX ] [ LIBRARIES ] [ LEGACY LIBRARIES ] [ ERRORS ]

OmniMark 9.1.0 Documentation Generated: September 2, 2010 at 1:38:10 pm
If you have any comments about this section of the documentation, please use this form.

Copyright © Stilo International plc, 1988-2010.