Package: cffi

Generic Function translate-underscore-separated-name

Lambda List

translate-underscore-separated-name (name)

Arguments

name -- Either a symbol or a string.

Return Value

If name is a symbol, this is a string, and vice versa.

Details

translate-underscore-separated-name is a helper function for specializations of translate-name-from-foreign and translate-name-to-foreign. It handles the common case of converting between foreign underscore_separated names and lisp names.

Examples

  CFFI> (translate-underscore-separated-name some-xml-function)
  => "some_xml_function"
  CFFI> (translate-camelcase-name "some_xml_function")
  => SOME-XML-FUNCTION  
 

See also