Current section
Files
Jump to
Current section
Files
src/glua@lib@utf8.erl
-module(glua@lib@utf8).
-compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch, inline]).
-define(FILEPATH, "src/glua/lib/utf8.gleam").
-export([char/0, codes/0, codepoint/0, len/0, offset/0]).
-if(?OTP_RELEASE >= 27).
-define(MODULEDOC(Str), -moduledoc(Str)).
-define(DOC(Str), -doc(Str)).
-else.
-define(MODULEDOC(Str), -compile([])).
-define(DOC(Str), -compile([])).
-endif.
?MODULEDOC(" Bindings to the functions under `_G.utf8`\n").
-file("src/glua/lib/utf8.gleam", 25).
?DOC(" Returns the `utf8.char` function.\n").
-spec char() -> glua:value().
char() ->
glua_stdlib_ffi:utf8_char().
-file("src/glua/lib/utf8.gleam", 29).
?DOC(" Returns the `utf8.codes` function.\n").
-spec codes() -> glua:value().
codes() ->
glua_stdlib_ffi:utf8_codes().
-file("src/glua/lib/utf8.gleam", 33).
?DOC(" Returns the `utf8.codepoint` function.\n").
-spec codepoint() -> glua:value().
codepoint() ->
glua_stdlib_ffi:utf8_codepoint().
-file("src/glua/lib/utf8.gleam", 37).
?DOC(" Returns the `utf8.len` function.\n").
-spec len() -> glua:value().
len() ->
glua_stdlib_ffi:utf8_len().
-file("src/glua/lib/utf8.gleam", 41).
?DOC(" Returns the `utf8.offset` function.\n").
-spec offset() -> glua:value().
offset() ->
glua_stdlib_ffi:utf8_offset().