text: public string GetNextToken(){if (pos >= format.Length){return null;}int subStart = pos;char curChar = format[pos];++pos;if (curChar == '\''){while ((pos < format.Length) && ((curChar = format[pos]) != '\'')){++pos;}if (pos < format.Length){++pos;}}else{char activeChar = curChar;while ((pos < format.Length) && ((curChar = format[pos])) == activeChar){++pos;}}return format.Substring(subStart, pos - subStart);}