Mono.ILASM.Driver.DriverMain.GetCommand C# (CSharp) Method

GetCommand() private method

private GetCommand ( string str, string &command_arg ) : string
str string
command_arg string
return string
                        private string GetCommand (string str, out string command_arg)
                        {
                                int end_index = str.IndexOfAny (new char[] {':', '='}, 1);
                                string command = str.Substring (1,
                                        end_index == -1 ? str.Length - 1 : end_index - 1);

                                if (end_index != -1) {
                                        command_arg = str.Substring (end_index+1);
                                } else {
                                        command_arg = null;
                                }

                                return command.ToLower ();
                        }