Current section

Files

Jump to
glentities src glentities@internal@string_utils.erl
Raw

src/glentities@internal@string_utils.erl

-module(glentities@internal@string_utils).
-compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch]).
-export([normalise/1]).
-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(false).
-file("src/glentities/internal/string_utils.gleam", 3).
?DOC(false).
-spec normalise(binary()) -> binary().
normalise(Text) ->
unicode:characters_to_nfc_binary(Text).