Skip to contents

Returns first starting index of the specified substring within bits, or zero if it is not present. The first (leftmost) bit is indexed 1.

Arguments

substring

BIT

bitstring

BIT

Examples

if (FALSE) { # \dontrun{
bit_position('010'::BIT, '1110101'::BIT)
} # }