Skip to content

indexOf

function indexOf(
string calldata input,
string calldata key
) external pure returns (uint256);

Returns the index of the first occurrence of a key in an input string. Returns NOT_FOUND (i.e. type(uint256).max) if the key is not found. Returns 0 in case of an empty key.