Did you know ... Search Documentation:
Pack canny_tudor -- prolog/swi/atoms.pl
PublicShow source
 restyle_identifier_ex(+Style, +Text, ?Atom) is semidet
Restyles Text to Atom. Predicate restyle_identifier/3 fails for incoming text with leading underscore. Standard atom:restyle_identifier/3 fails for '_' because underscore fails for atom_codes('_', [Code]), code_type(Code, prolog_symbol). Underscore (code 95) is a Prolog variable start and identifier continuation symbol, not a Prolog symbol.

Strips any leading underscore or underscores. Succeeds only for text, including codes, but does not throw.

Arguments:
Text- string, atom or codes.
Atom- restyled.
 prefix_atom_suffix(?Prefix, ?Atom0, ?Suffix, ?Atom) is nondet
Non-deterministically unifies Prefix, Atom0 and Suffix with Atom. Applies two atom_concat/3 predicates in succession. Unifies from prefix to suffix for modes (?, ?, ?, -) else backwards from suffix to prefix. Empty atom is a valid atom and counts as a Prefix, Suffix or any other argument if unbound.