Project

General

Profile

$bfind » History » Version 7

Per Amundsen, 11/04/2019 04:34 PM

1 1 Per Amundsen
_Added in 1.9.0_
2
3
*$bfind(&binvar, N, M)*
4
5
Searches a &binvar for a matching value.
6
7
_The search is case-insensitive._
8
9
*Parameters*
10
11
&binvar - The &binvar to search.
12
N - The position of the &binvar to start the search.
13 5 Per Amundsen
M - Numeric "ASCII":http://www.asciitable.com/ character(s) or text to search.
14 1 Per Amundsen
15
*Properties*
16
17 4 Per Amundsen
.text - Force a text search if the search text (M) is a number.
18 7 Per Amundsen
.textcs - Search case-sensitive.
19 1 Per Amundsen
20
*Example*
21
22
<pre>
23 6 Per Amundsen
; Finds "test" starting from position 1.
24 1 Per Amundsen
//echo -a $bfind(&test, 1, test)
25
 
26 6 Per Amundsen
; Finds character 32 (a space) from position 5.
27 1 Per Amundsen
//echo -a $bfind(&test, 5, 32)
28
29 6 Per Amundsen
; Finds WAV from position 1.
30 1 Per Amundsen
//echo -a $bfind(&test, 1, 87 65 86)
31
</pre>