Lines Matching refs:command_string
1124 CommandInterpreter::GetCommandObjectForCommand (std::string &command_string)
1131 size_t start = command_string.find_first_not_of (white_space);
1138 // Get the next word from command_string.
1139 end = command_string.find_first_of (white_space, start);
1141 end = command_string.size();
1142 std::string cmd_word = command_string.substr (start, end - start);
1162 // we are at the end of the command_string, then we are done. Otherwise, find the start of the
1165 if (!cmd_obj || !cmd_obj->IsMultiwordObject() || end >= command_string.size())
1168 start = command_string.find_first_not_of (white_space, end);
1175 if (end == command_string.size())
1176 command_string.clear();
1178 command_string = command_string.substr(end);
1227 ExtractCommand (std::string &command_string, std::string &command, std::string &suffix, char "e_char)
1231 StripLeadingSpaces (command_string);
1236 if (!command_string.empty())
1238 const char first_char = command_string[0];
1242 const size_t end_quote_pos = command_string.find (quote_char, 1);
1245 command.swap (command_string);
1246 command_string.erase ();
1250 command.assign (command_string, 1, end_quote_pos - 1);
1251 if (end_quote_pos + 1 < command_string.size())
1252 command_string.erase (0, command_string.find_first_not_of (k_white_space, end_quote_pos + 1));
1254 command_string.erase ();
1259 const size_t first_space_pos = command_string.find_first_of (k_white_space);
1262 command.swap (command_string);
1263 command_string.erase();
1267 command.assign (command_string, 0, first_space_pos);
1268 command_string.erase(0, command_string.find_first_not_of (k_white_space, first_space_pos));
1502 std::string command_string (command_line);
1528 if (command_string.empty())
1534 size_t non_space = command_string.find_first_not_of (k_space_characters);
1539 else if (command_string[non_space] == m_comment_char)
1541 else if (command_string[non_space] == CommandHistory::g_repeat_char)
1543 const char *history_string = m_command_history.FindString(command_string.c_str() + non_space);
1546 result.AppendErrorWithFormat ("Could not find entry: %s in history", command_string.c_str());
1551 command_string = history_string;
1569 command_string = command_line;
1593 Error error (PreprocessCommand (command_string));
1619 ExtractCommand (command_string, next_word, suffix, quote_char);
1626 cmd_obj = BuildAliasResult (full_name.c_str(), command_string, alias_result, result);
1767 if (command_string.length() == 0)
1772 if (!command_string.empty())
1773 revised_command_line.Printf (" %s", command_string.c_str());
1807 command_string = revised_command_line.GetData();
1810 if (actual_cmd_name_len < command_string.length())
1811 remainder = command_string.substr (actual_cmd_name_len); // Note: 'actual_cmd_name_len' may be considerably shorter