Unicode.Transform behaviour (Unicode Transform v0.1.0) View Source

Implements the Unicode transform rules.

The rules are implemented by the macros filter/1, transform/1 and replace/3.

Typically transform modules are generated from the CLDR transform specifications using Unicode.Transform.Generator.generate/1.

These macros are then transformed to elixir code by the functions in this module.

Link to this section Summary

Callbacks

Transform a string.

Transform a string with a filter module provided

Link to this section Functions

Link to this macro

filter(filter)

View Source (macro)
Link to this function

generate_function_call(arg1, arg2, caller)

View Source
Link to this macro

replace(from, to, options \\ [])

View Source (macro)
Link to this macro

transform(transform)

View Source (macro)

Link to this section Callbacks

Specs

transform(String.t()) :: String.t()

Transform a string.

Specs

transform(String.t(), module()) :: String.t()

Transform a string with a filter module provided