View Source Recase.ConstantCase (recase v0.8.1)

Module to convert strings to CONSTANT_CASE.

This module should not be used directly.

Examples

iex> Recase.to_constant "foo_barBaz-λambdaΛambda-привет-Мир"
"FOO_BAR_BAZ_ΛAMBDA_ΛAMBDA_ПРИВЕТ_МИР"

Constant case is the same as snake_case, but uppercased.

Summary

Functions

@spec convert(String.t()) :: String.t()
@spec convert(atom()) :: atom()