mirror of
https://github.com/lcn2/calc.git
synced 2025-08-16 01:03:29 +03:00
convert ASCII TABs to ASCII SPACEs
Converted all ASCII tabs to ASCII spaces using a 8 character tab stop, for all files, except for all Makefiles (plus rpm.mk). The `git diff -w` reports no changes.
This commit is contained in:
38
help/rsearch
38
help/rsearch
@@ -5,12 +5,12 @@ SYNOPSIS
|
||||
rsearch(a, b [, [c] [, [d] ] ])
|
||||
|
||||
TYPES
|
||||
a matrix, list, association, or file open for reading
|
||||
b string if a is a file, otherwise any
|
||||
c integer, defaults to zero, size(a) or the current file-position
|
||||
d integer, defaults to size(a) or current file-position
|
||||
a matrix, list, association, or file open for reading
|
||||
b string if a is a file, otherwise any
|
||||
c integer, defaults to zero, size(a) or the current file-position
|
||||
d integer, defaults to size(a) or current file-position
|
||||
|
||||
return nonnegative integer or null
|
||||
return nonnegative integer or null
|
||||
|
||||
DESCRIPTION
|
||||
|
||||
@@ -38,7 +38,7 @@ Four argument case:
|
||||
|
||||
For non-file a, the search is for a[[i]] == b, except that if
|
||||
the function accept() as been defined, it is for i such that
|
||||
accept(a[[i]], b) tests as nonzero. Since the addresses (rather than
|
||||
accept(a[[i]], b) tests as nonzero. Since the addresses (rather than
|
||||
values) of a[[i]] and b are passed to accept(), the values of one or
|
||||
both of a[[i]] and b may be changed during a call to rsearch().
|
||||
|
||||
@@ -74,28 +74,28 @@ Four argument case:
|
||||
EXAMPLE
|
||||
; L = list(2,"three",4i)
|
||||
; rsearch(L,"three")
|
||||
1
|
||||
1
|
||||
; rsearch(L,"threes")
|
||||
; rsearch(L, 4i, 4)
|
||||
; rsearch(L, 4i, 1)
|
||||
2
|
||||
2
|
||||
|
||||
; f = fopen("foo", "w+")
|
||||
; fputs(f, "This file has 28 characters.")
|
||||
; fflush(f)
|
||||
; rsearch(f, "ha")
|
||||
18
|
||||
18
|
||||
; ftell(f)
|
||||
19
|
||||
19
|
||||
; rsearch(f, "ha", 17)
|
||||
10
|
||||
10
|
||||
; rsearch(f, "ha", 9)
|
||||
; ftell(f)
|
||||
0
|
||||
0
|
||||
; rsearch(f, "ha")
|
||||
18
|
||||
18
|
||||
; rsearch(f, "ha", 5, 500)
|
||||
18
|
||||
18
|
||||
|
||||
LIMITS
|
||||
none
|
||||
@@ -117,7 +117,7 @@ SEE ALSO
|
||||
##
|
||||
## Calc is distributed in the hope that it will be useful, but WITHOUT
|
||||
## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||
## or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
|
||||
## or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
|
||||
## Public License for more details.
|
||||
##
|
||||
## A copy of version 2.1 of the GNU Lesser General Public License is
|
||||
@@ -125,8 +125,8 @@ SEE ALSO
|
||||
## received a copy with calc; if not, write to Free Software Foundation, Inc.
|
||||
## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
##
|
||||
## Under source code control: 1994/03/19 03:13:21
|
||||
## File existed as early as: 1994
|
||||
## Under source code control: 1994/03/19 03:13:21
|
||||
## File existed as early as: 1994
|
||||
##
|
||||
## chongo <was here> /\oo/\ http://www.isthe.com/chongo/
|
||||
## Share and enjoy! :-) http://www.isthe.com/chongo/tech/comp/calc/
|
||||
## chongo <was here> /\oo/\ http://www.isthe.com/chongo/
|
||||
## Share and enjoy! :-) http://www.isthe.com/chongo/tech/comp/calc/
|
||||
|
Reference in New Issue
Block a user