sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
Defines case conventions and functions to rename identifiers according to them
Install
dune-project
Dependency
Authors
Maintainers
Sources
v0.17.0.tar.gz
sha256=f71d45ec929c9fc9b08e07723c15b6663b0143c4465b5d93038f653258cd5c6f
Description
Added to opam-repository:
README
"Capitalization: naming conventions for multiple-word identifiers"
This library provides helper functions for formatting words using common naming conventions, such as snake_case, camelCase, and PascalCase.
Example
# open Core
# print_endline "\n";
let identifier_words = [ "foo"; "bar"; "baz" ] in
List.iter Capitalization.all ~f:(fun capitalization ->
let identifier = Capitalization.apply_to_words capitalization identifier_words in
let capitalization_string = Capitalization.to_string capitalization in
print_endline [%string "%{identifier} (%{capitalization_string})"]);
print_endline ""
FooBarBaz (PascalCase)
fooBarBaz (camelCase)
foo_bar_baz (snake_case)
Foo_bar_baz (Capitalized_snake_case)
Foo_Bar_Baz (Pascal_Snake_Case)
FOO_BAR_BAZ (SCREAMING_SNAKE_CASE)
fOo_bAr_bAz (aLtErNaTiNg_sNaKe_cAsE)
foo-bar-baz (kebab-case)
Foo-bar-baz (Capitalized-kebab-case)
Foo-Bar-Baz (Pascal-Kebab-Case)
FOO-BAR-BAZ (SCREAMING-KEBAB-CASE)
fOo-bAr-bAz (aLtErNaTiNg-kEbAb-cAsE)
Foo bar baz (Sentence case)
Foo Bar Baz (Title Case)
foo bar baz (lower sentence case)
FOO BAR BAZ (UPPER SENTENCE CASE)
fOo bAr bAz (aLtErNaTiNg sEnTeNcE CaSe)
- : unit = ()
Dependencies (4)
Dev Dependencies
None
Optional Dependencies
None
Used by (1)
Conflicts
None
Build status
Results of building capitalization with each compiler on check.ci.ocaml.org, run of against opam-repository 8d8d144. All results for this package.
Each result links to its build log. To keep crawlers from overloading the site, build logs require a GitHub sign-in (see ocurrent/opam-health-check). On your first log, GitHub asks you to “Authorize opam-health-check”, the OCurrent app that runs these checks; it sees only your public profile, not your repositories. The sign-in lasts 30 days.
| Version | OCaml 4.11 | OCaml 4.14 | OCaml 5.2 | OCaml 5.4 | OCaml 5.5 |
|---|---|---|---|---|---|
| v0.17.0 (this version) | n/a | n/a | good | good | good |
- good Package successfully built
- partial One of the dependencies failed to build
- bad Package failed to build
- n/a Package is not available in this environment
- internal Internal failure
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page