indexOfAscii

Undocumented in source. Be warned that the author may not have intended to support it.
@nogc nothrow @trusted
indexOfAscii
(
scope const bcstring haystack
,)

Examples

assert("0123456789".indexOfAscii('0') == 0);
assert("0123456789".indexOfAscii('9') == 9);
assert("0123456789".indexOfAscii('4') == 4);

assert("The quick brown fox jumped over the lazy dog.".indexOfAscii('d') == 25);
assert("The quick brown fox jumped over the lazy dog.".indexOfAscii('z') == 38);

Meta