utf8.length

function

Library: UTF-8 (OMUTF8)
Import : omutf8.xmd

Declaration
export integer function
   length of value string utf8-string
      

Argument definitions

utf8-string
A sequence of UTF-8 encoded characters.


Purpose

The function utf8.length is used to determine how many UTF-8 code points are encoded in its utf8-string argument. Multi-byte characters count as a single character.

Usage Note

To use utf8.length, you must import OMUTF8 into your program using an import declaration such as:

  import "omutf8.xmd" prefixed by utf8.

Related Topics