manpagez: man pages & more
info guile
Home | html | info | man
[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

6.6.8.4 Keyword Procedures

Scheme Procedure: keyword? obj
C Function: scm_keyword_p (obj)

Return #t if the argument obj is a keyword, else #f.

Scheme Procedure: keyword->symbol keyword
C Function: scm_keyword_to_symbol (keyword)

Return the symbol with the same name as keyword.

Scheme Procedure: symbol->keyword symbol
C Function: scm_symbol_to_keyword (symbol)

Return the keyword with the same name as symbol.

C Function: int scm_is_keyword (SCM obj)

Equivalent to scm_is_true (scm_keyword_p (obj)).

C Function: SCM scm_from_locale_keyword (const char *name)
C Function: SCM scm_from_locale_keywordn (const char *name, size_t len)

Equivalent to scm_symbol_to_keyword (scm_from_locale_symbol (name)) and scm_symbol_to_keyword (scm_from_locale_symboln (name, len)), respectively.

Note that these functions should not be used when name is a C string constant, because there is no guarantee that the current locale will match that of the source code. In such cases, use scm_from_latin1_keyword or scm_from_utf8_keyword.

C Function: SCM scm_from_latin1_keyword (const char *name)
C Function: SCM scm_from_utf8_keyword (const char *name)

Equivalent to scm_symbol_to_keyword (scm_from_latin1_symbol (name)) and scm_symbol_to_keyword (scm_from_utf8_symbol (name)), respectively.


This document was generated on February 3, 2012 using texi2html 5.0.

© manpagez.com 2000-2025
Individual documents may contain additional copyright information.