Klitos Kyriacou
12/01/2022, 4:06 PMString.contains
(or a in b
), but if I can do a byte-array search instead it would be preferable as it would save the overhead of converting to String. I don't want to write a Boyer-Moore (or similar fast algorithm) implementation for this myself, as (1) I might get it wrong and (2) there may already be one and I don't want to reinvent the wheel. I'm hoping there's something already there in the stdlib.Paul Griffith
12/02/2022, 1:01 AMPaul Griffith
12/02/2022, 1:04 AM