View Source Recase.PascalCase (recase v0.8.1)

Module to convert strings to PascalCase aka UpperCase.

This module should not be used directly.

Examples

iex> Recase.to_pascal "foo_barBaz-λambdaΛambda-привет-Мир"
"FooBarBazΛambdaΛambdaПриветМир"

Read about PascalCase here: https://en.wikipedia.org/wiki/PascalCase

Changed

This name was introduced in version 0.2.0, it was named UpperCase before.

But UpperCase was not clear enough. What is uppercase?

  1. THIS IS UPPERCASE
  2. ThisIsAlsoUpperCase

So, it was decided to rename this module into PascalCase. For other details see: https://github.com/wemake-services/recase/issues/2

Summary

Functions

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