Proposal of a general do-while loop
Regan Heath
regan at netmail.co.nz
Tue Jul 17 01:19:21 PDT 2007
for (size_t pos = text.find(pattern, 0); pos != string::npos; pos =
text.find(pattern, pos)) {
cout << "pattern found at " << pos << "\n";
++pos;
}
More information about the Digitalmars-d
mailing list