matchUnits static method

int matchUnits(
  1. String text,
  2. int offset,
  3. int length
)

Return the token that matches the unit ident found.

Implementation

static int matchUnits(String text, int offset, int length) {
  return matchList(_UNITS, 'unit', text, offset, length);
}