atoms.pl -- Analysing and constructing atoms.
- author
- - Daniel Beßler
- license
- - BSD
- atom_ensure_prefix(?Atom:atom, ?Prefix:atom, -AtomResolved:atom) is semidet
- Add a prefix to an atom.
- atom_ensure_suffix(?Atom:atom, ?Suffix:atom, -AtomResolved:atom) is semidet
- Add a suffix to an atom.
- atom_remove_prefix(?Atom:atom, ?Prefix:atom, -AtomResolved:atom) is semidet
- Removes prefix from atom.
- lowercase(?Upper:atom, ?Lower:atom) is semidet
- Convert uppercase and lowercase.
- camelcase(?Underscore:atom, ?CamelCase:atom) is det
- Convert lowercase with underscore and camelcase.
For example,
camelcase(hello_world, 'HelloWorld')
.
Works in both directions.
- lower_camelcase(?Underscore:atom, ?LowerCamelCase:atom) is det
- Convert lowercase with underscore and camelcase with
leading lowercase character.
For example,
lower_camelcase(hello_world, helloWorld)
.
Works in both directions.