Recase.PascalCase (recase v0.7.0) View Source

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/sobolevn/recase/issues/2

Link to this section Summary

Link to this section Functions

Specs

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