Next: , Previous: , Up: The language   [Contents][Index]

5.29 utf-8

Some functions for utf-8 strings are available.

They assume that the string is encoded in utf-8. Otherwise, the behavior is not defined. Defined in rep.util.utf8.

Function: utf8-string-length string

Returns the number of characters of utf-8 encoded string.

Function: utf8-substring string start #!optional end

Returns the portion of string, encoded in utf-8, starting at character number start and ending at the character before end (or the end of the string if end is not given). All indices start at zero.