schema_version = 1
id = "string_matching.substring_find_first"
archetype = "match-bytes-pattern"
display_name = "Substring Find First"
summary = "Returns the first byte offset of a needle in a haystack or u32::MAX when absent."
category = "C"
[intrinsic]
wgsl = "string_matching_substring_find_first"
[signature]
inputs = ["Bytes", "Bytes"]
output = "U32"
laws = []
equivalence_classes = ["empty_needle", "present", "absent", "needle_longer_than_haystack"]
workgroup_size = [256, 1, 1]
tags = ["string-matching", "substring", "t47"]
fixtures_dir = "fixtures/"