X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=doc%2Fexpressions.texi;h=7226116bd13e8897c29c2dbf120acf913ca17857;hb=8b585b7a6ae9d1a90386d56e3ce484cf8204743a;hp=7180bf8793ea24a3c0907c13d70eb3ce1e7ef87e;hpb=0df9cdd3df66caf4353128feff3008289cda8115;p=pspp diff --git a/doc/expressions.texi b/doc/expressions.texi index 7180bf8793..7226116bd1 100644 --- a/doc/expressions.texi +++ b/doc/expressions.texi @@ -621,7 +621,7 @@ format for @var{format}, system-missing is returned. @end deftypefn @cindex strings, searching backwards -@deftypefn {Function} {} RINDEX (@var{string}, @var{format}) +@deftypefn {Function} {} RINDEX (@var{haystack}, @var{needle}) Returns a positive integer indicating the position of the last occurrence of @var{needle} in @var{haystack}. Returns 0 if @var{haystack} does not contain @var{needle}. Returns system-missing if @@ -634,7 +634,7 @@ Searches @var{haystack} for the last occurrence of each part, and returns the largest value. Returns 0 if @var{haystack} does not contain any part in @var{needle}. It is an error if @var{needle_len} does not evenly divide the length of @var{needle}. Returns system-missing -if @var{needle} is an empty string. +if @var{needle} is an empty string or if needle_len is less than 1. @end deftypefn @cindex padding strings