Next: , Previous: , Up: bytevectors 8   [Index]


27.2.13 Searching

Function: %bytevector-s8-index criterion bv start past
Function: %bytevector-u8-index criterion bv start past
Function: %bytevector-s8-index-right criterion bv start past
Function: %bytevector-u8-index-right criterion bv start past
Macro: bytevector-s8-index B criterion
Macro: bytevector-u8-index B criterion
Macro: bytevector-s8-index-right B criterion
Macro: bytevector-u8-index-right B criterion

Search through the bytevector from the left or right, returning the index of the first occurrence of a byte which matches the criterion:

If no match is found: return #f.

Function: %bytevector-s8-skip criterion bv start past
Function: %bytevector-u8-skip criterion bv start past
Function: %bytevector-s8-skip-right criterion bv start past
Function: %bytevector-u8-skip-right criterion bv start past
Macro: bytevector-s8-skip B criterion
Macro: bytevector-u8-skip B criterion
Macro: bytevector-s8-skip-right B criterion
Macro: bytevector-u8-skip-right B criterion

Search through the bytevector from the left or right, returning the index of the first occurrence of a byte which does not match the criterion:

If no match is found: Return #f.

Function: %bytevector-s8-count criterion bv start past
Function: %bytevector-u8-count criterion bv start past
Macro: bytevector-s8-count B criterion
Macro: bytevector-u8-count B criterion

Return a count of the number of bytes in bv that satisfy the criterion argument:

Function: %bytevector-s8-contains bv1 start1 past1 bv2 start2 past2
Function: %bytevector-u8-contains bv1 start1 past1 bv2 start2 past2
Function: %bytevector-s8-contains-ci bv1 start1 past1 bv2 start2 past2
Function: %bytevector-u8-contains-ci bv1 start1 past1 bv2 start2 past2
Macro: bytevector-s8-contains B1 B2
Macro: bytevector-u8-contains B1 B2
Macro: bytevector-s8-contains-ci B1 B2
Macro: bytevector-u8-contains-ci B1 B2

Return true if the subvector B1 contains the subvector B2, else return #f. The return value is the index in the bytevector, not in the subvector.


Next: , Previous: , Up: bytevectors 8   [Index]