void ParseCommand (StringTagModel tagSource, out string cmd, out string args)
{
if (command.Length > 0 && command [0] == '"') {
int n = command.IndexOf ('"', 1);
if (n != -1) {
cmd = command.Substring (1, n - 1);
args = command.Substring (n + 1).Trim ();
}
else {
cmd = command;
args = string.Empty;
}
}
else {
int i = command.IndexOf (' ');
if (i != -1) {
cmd = command.Substring (0, i);
args = command.Substring (i + 1).Trim ();
} else {
cmd = command;
args = string.Empty;
}
}
cmd = StringParserService.Parse (cmd, tagSource);
args = StringParserService.Parse (args, tagSource);
}