Steven Schveighoffer:
long a = src.countUntil(start); if (a < 0) return src; // null a += start.length; long b = src[a..$].countUntil(end);
I think there it's better to use "auto" instead of "long". Bye, bearophile
bearophile via Digitalmars-d-learn Thu, 30 Oct 2014 08:11:05 -0700
Steven Schveighoffer:
long a = src.countUntil(start); if (a < 0) return src; // null a += start.length; long b = src[a..$].countUntil(end);
I think there it's better to use "auto" instead of "long". Bye, bearophile