On 10/30/14 11:06 AM, bearophile wrote:
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".

Sure, I didn't touch OP's function body, just the signature.

-Steve

Reply via email to