Module ffi.utf8proc

Module for utf8 string operations.

This is a LuaJIT FFI wrapper for utf8proc.

Functions

Utf8Proc.lowercase (str, normalize) Lowercases an utf8-encoded string
Utf8Proc.normalize_NFC (str) Normalizes an utf8-encoded string
Utf8Proc.count (str) Counts codepoints in an utf8-encoded string


Functions

Utf8Proc.lowercase (str, normalize)
Lowercases an utf8-encoded string

Parameters:

  • str string string to lowercase
  • normalize boolean normalizes the string during operation

Returns:

    string the lowercased string
Utf8Proc.normalize_NFC (str)
Normalizes an utf8-encoded string

Parameters:

  • str string string to lowercase

Returns:

    string the normalized string
Utf8Proc.count (str)
Counts codepoints in an utf8-encoded string

Parameters:

  • str string to count codepoints in

Returns:

    (int, bool) number of codepoints, operation successfull
generated by LDoc 1.5.0 Last updated 2024-03-18 16:45:36