processExtensions method

void processExtensions()

Consumes all remaining subtags, if syntactically valid.

If parsing fails, atEnd() will be false and/or problems will not be empty.

Implementation

void processExtensions() {
  while (acceptSingleton()) {
    var singleton = _accepted;
    if (singleton == 'u') {
      processUExtensions();
    } else if (singleton == 't') {
      processTExtensions();
    } else if (singleton == 'x') {
      processPrivateUseExtensions();
      break;
    } else {
      processOtherExtensions(singleton);
    }
  }
}