find-snip in text%
Returns the snip at a given position, or #f if an appropriate
snip cannot be found.
(->senda-textfind-snipposdirections-pos)snip%object or#f
pos: exact non-negative integer
direction: symbol in'(before-or-none before after after-or-none)
s-pos=#f: boxed exact non-negative integer or#fIf the position
posis between two snips,directionspecifies which snip to return;directioncan be any of the following:'before-or-none-- returns the snip before the position, or#fifposis0'before-- returns the snip before the position, or the first snip ifposis0'after-- returns the snip after the position, or the last snip ifposis the last position'after-or-none- returns the snip after the position, or#fifposis the last position or larger
The
s-posbox is filled with the position where the returned snip starts, unlesss-posis#f.