insertDefaultFormats method

void insertDefaultFormats()

Inserts all default formats into list.

Implementation

void insertDefaultFormats() {
  Format curFormat;
  int iFormatIndex = 0;
  final int iLength = _defaultFormatString.length;
  for (int iIndex = 0; iIndex < iLength; iIndex++) {
    curFormat = Format(this);
    curFormat.index = iFormatIndex;
    curFormat.formatString = _defaultFormatString[iIndex];
    if (!_rawFormats.containsKey(curFormat.index)) {
      _rawFormats[curFormat.index] = curFormat;
      _hashFormatStrings[curFormat.formatString!] = curFormat;
    }
    if (iFormatIndex == 22) {
      iFormatIndex = 36;
    }
    iFormatIndex++;
  }
}