Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Capitalization
is a helper library for renaming strings according to case conventions.
type t =
| Pascal_case
| Camel_case
| Snake_case
| Capitalized_snake_case
| Pascal_snake_case
| Screaming_snake_case
| Alternating_snake_case
| Kebab_case
| Capitalized_kebab_case
| Pascal_kebab_case
| Screaming_kebab_case
| Alternating_kebab_case
| Sentence_case
| Title_case
| Lower_sentence_case
| Upper_sentence_case
| Alternating_sentence_case
include Ppx_compare_lib.Equal.S with type t := t
val equal : t Base__Ppx_compare_lib.equal
include Ppx_enumerate_lib.Enumerable.S with type t := t
val all : t list
val sexp_of_t : t -> Sexplib0.Sexp.t
val apply_to_snake_case : t -> Base.string -> Base.string
Re-capitalizes the input string according the convention in t
.
The input string is assumed to use '_' to separate words, but can contain any mix of upper/lower case characters.
val apply_to_words : t -> Base.string Base.list -> Base.string
Capitalizes the input words according to the convention in t
.