Parsed documentation:
View on GitHub
Return the position of the first bit set to 1 or 0 in a string.

@param [String] key
@param [Fixnum] bit whether to look for the first 1 or 0 bit
@param [Fixnum] start start index
@param [Fixnum] stop stop index
@return [Fixnum] the position of the first 1/0 bit.
                 -1 if looking for 1 and it is not found or start and stop are given.
Please help! Open an issue on GitHub if this assessment is incorrect.