private bool ParseCharacter(TextParser input, FormatSpecifier spec)
{
// Parse character(s)
int start = input.Position;
int count = (spec.Width > 1) ? spec.Width : 1;
while (!input.EndOfText && count-- > 0)
input.MoveAhead();
// Extract token
if (count <= 0 && input.Position > start)
{
if (!spec.NoResult)
{
string token = input.Extract(start, input.Position);
if (token.Length > 1)
Results.Add(token.ToCharArray());
else
Results.Add(token[0]);
}
return true;
}
return false;
}