skipWhitespaces static method

int skipWhitespaces(
  1. String str,
  2. int from
)

Returns the index of the first non-whitespace character starting at from,

  • min(from, str.length) if not found.

Implementation

static int skipWhitespaces(String str, int from) {
  for (int len = str.length; from < len; ++from)
    if (!$whitespaces.contains(str.codeUnitAt(from)))
      break;
  return from;
}