string to search for value
value to search for
start index
number of elements to examine
true if str contains value or false otherwise
test(!StringSearch!().containsChar("Hello", 'l', 5, size_t.max)); test(StringSearch!().containsChar("Hello", 'l', 2, size_t.max)); test(StringSearch!().containsChar("Hello", 'l', 3, size_t.max)); test(!StringSearch!().containsChar("Hello", 'o', 5, size_t.max)); test(StringSearch!().containsChar("Hello", 'o', 4, size_t.max)); test(StringSearch!().containsChar("Hello", 'o', 0, size_t.max)); test(!StringSearch!().containsChar("Hello", 'l', 0, 0)); test(!StringSearch!().containsChar("Hello", 'l', 0, 2)); test(StringSearch!().containsChar("Hello", 'l', 0, 3));
Tells whether the first length characters of str, starting fromo start, contain value. If greater, length is truncated to the length of str.