modulo-1.9.0: Modular C code generator
Language.Modulo.Util.Unmangle
Description
Unmanglers for various kinds of identifiers.
Synopsis
unmangle :: String -> [String]Source
Unmangle an indentifier in mixed or separarated case.
uncase :: String -> [String]Source
Unmangle an indentifier in mixed case, i.e. fooBar becomes [foo, bar].
fooBar
[foo, bar]
unsep :: String -> [String]Source
Unmangle an indentifier using the underscore as separator, i.e. foo_bar becomes [foo, bar].
foo_bar
unsep (sep a) = a, iff a /= []