unicode.block-boundaries

built-in shelf

Library: Unicode (OMUNICODE)
Import : omunicode.xmd

Declaration
export integer constant block-boundaries


Purpose

Use unicode.block-boundaries to find all Unicode character blocks as well as their boundaries.

Every keyed item of the constant shelf unicode.block-boundaries contains a block name in its key and its lower boundary in the item value. The next shelf item value contains the higher boundary of the same shelf block.

Example

The following example program uses unicode.block-boundaries to list all Unicode code blocks:

  import "omunicode.xmd" prefixed by unicode.
  
  process
     repeat over unicode.block-boundaries as boundary
        do when boundary is keyed
           using unicode.block-boundaries[item of boundary + 1] as upper-boundary
              output key of boundary || " block spreads from code point %4fz16rd(boundary) to %4fz16rd(upper-boundary)%n"
        done
     again

Usage Note

To use unicode.block-boundaries, you must import OMUNICODE into your program using an import declaration such as:

  import "omunicode.xmd" prefixed by unicode.

Other Library Functions