Function: rst-Ttl-contains
rst-Ttl-contains is a byte-compiled function defined in rst.el.gz.
Signature
(rst-Ttl-contains SELF POSITION)
Documentation
Return whether SELF contain POSITION.
Return 0 if SELF contains POSITION, < 0 if SELF ends before POSITION and > 0 if SELF starts after position.
Source Code
;; Defined in /usr/src/emacs/lisp/textmodes/rst.el.gz
(defun rst-Ttl-contains (self position)
"Return whether SELF contain POSITION.
Return 0 if SELF contains POSITION, < 0 if SELF ends before
POSITION and > 0 if SELF starts after position."
(cl-check-type self rst-Ttl)
(cl-check-type position integer-or-marker)
(cond
((< (nth 1 (rst-Ttl-match self)) position)
-1)
((> (nth 0 (rst-Ttl-match self)) position)
+1)
(0)))