Function: org-export-string-to-search-cell
org-export-string-to-search-cell is a byte-compiled function defined
in ox.el.gz.
Signature
(org-export-string-to-search-cell S)
Documentation
Return search cells associated to string S.
S is either the path of a fuzzy link or a search option, i.e., it tries to match either a headline (through custom ID or title), a target or a named element.
The title match is case-insensitive.
Source Code
;; Defined in /usr/src/emacs/lisp/org/ox.el.gz
(defun org-export-string-to-search-cell (s)
"Return search cells associated to string S.
S is either the path of a fuzzy link or a search option, i.e., it
tries to match either a headline (through custom ID or title),
a target or a named element.
The title match is case-insensitive."
(pcase (string-to-char s)
(?* (list (cons 'headline (mapcar #'upcase (split-string (substring s 1))))))
(?# (list (cons 'custom-id (substring s 1))))
((let search (split-string s))
(cl-remove-duplicates
(list (cons 'target search)
(cons 'other search)
(cons 'target (mapcar #'upcase search))
(cons 'other (mapcar #'upcase search)))
:test #'equal))))