Function: reftex-string-to-label
reftex-string-to-label is a byte-compiled function defined in
reftex-ref.el.gz.
Signature
(reftex-string-to-label STRING)
Documentation
Convert a string (a sentence) to a label.
Uses reftex-derive-label-parameters and reftex-label-illegal-re. It
also applies reftex-translate-to-ascii-function to the string.
Source Code
;; Defined in /usr/src/emacs/lisp/textmodes/reftex-ref.el.gz
(defun reftex-string-to-label (string)
"Convert a string (a sentence) to a label.
Uses `reftex-derive-label-parameters' and `reftex-label-illegal-re'. It
also applies `reftex-translate-to-ascii-function' to the string."
(when (and reftex-translate-to-ascii-function
(fboundp reftex-translate-to-ascii-function))
(setq string (funcall reftex-translate-to-ascii-function string)))
(apply #'reftex-convert-string string
"[-~ \t\n\r,;]+" reftex-label-illegal-re nil nil
reftex-derive-label-parameters))