View Source Pythonx.C.PyUnicode (Pythonx v0.2.3)

Unicode Objects

Summary

Functions

Returns a reference to a Python Unicode object.

Create a Unicode object from a UTF-8 encoded null-terminated char buffer str.

Functions

@spec as_utf8(reference()) :: binary() | :error

Returns a reference to a Python Unicode object.

@spec from_string(iodata() | list()) :: reference()

Create a Unicode object from a UTF-8 encoded null-terminated char buffer str.