Next: , Previous: , Up: The Byte Data Library   [Index]


13.10.8 Byte Data String Search Functions

b_find

integer b_find(data d, data v);

is the position of the first occurrence of the v string in the d byte array if any, -1 otherwise

b_scan

integer b_scan(data d, integer p, data v);

is the position of the first occurrence of the v string not preceding the p position in the d byte array if any, -1 otherwise (negative position indications are interpreted with respect to the end of string)

See Negative Indices.

b_seek

integer b_seek(data d, text s);

is the position of the first occurrence of the s string in the d byte array if any, -1 otherwise