digitalmars.D.bugs - std.string.ifind
- Derek Parnell (24/24) Oct 03 2004 The code below ...
The code below ...
<code>
import std.string;
import std.stdio;
void main()
{
char[] A;
char[] B;
A = "14";
B = "013";
writefln("i Found '%s' in '%s' at %d", A, B, std.string.ifind(B,A));
writefln("s Found '%s' in '%s' at %d", A, B, std.string.find(B,A));
}
</code>
gives ...
In general, whenever the first character in the substring is found in the
string at position (string.length - substr.length + 1), ifind() fails.
--
Derek
Melbourne, Australia
4/10/2004 12:53:38 PM
Oct 03 2004








Derek Parnell <derek psych.ward>