Previous: , Up: Functions   [Contents][Index]


translate-underscore-separated-name

translate-underscore-separated-name

Syntax

Function: translate-underscore-separated-name name ⇒ return-value

Arguments and Values

name

Either a symbol or a string.

return-value

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

Description

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

translate-name-from-foreign
translate-name-to-foreign
translate-camelcase-name