Lines Matching refs:command_string
1154 CommandInterpreter::GetCommandObjectForCommand (std::string &command_string) in GetCommandObjectForCommand() argument
1161 size_t start = command_string.find_first_not_of (white_space); in GetCommandObjectForCommand()
1169 end = command_string.find_first_of (white_space, start); in GetCommandObjectForCommand()
1171 end = command_string.size(); in GetCommandObjectForCommand()
1172 std::string cmd_word = command_string.substr (start, end - start); in GetCommandObjectForCommand()
1195 if (!cmd_obj || !cmd_obj->IsMultiwordObject() || end >= command_string.size()) in GetCommandObjectForCommand()
1198 start = command_string.find_first_not_of (white_space, end); in GetCommandObjectForCommand()
1205 if (end == command_string.size()) in GetCommandObjectForCommand()
1206 command_string.clear(); in GetCommandObjectForCommand()
1208 command_string = command_string.substr(end); in GetCommandObjectForCommand()
1257 ExtractCommand (std::string &command_string, std::string &command, std::string &suffix, char "e… in ExtractCommand() argument
1261 StripLeadingSpaces (command_string); in ExtractCommand()
1266 if (!command_string.empty()) in ExtractCommand()
1268 const char first_char = command_string[0]; in ExtractCommand()
1272 const size_t end_quote_pos = command_string.find (quote_char, 1); in ExtractCommand()
1275 command.swap (command_string); in ExtractCommand()
1276 command_string.erase (); in ExtractCommand()
1280 command.assign (command_string, 1, end_quote_pos - 1); in ExtractCommand()
1281 if (end_quote_pos + 1 < command_string.size()) in ExtractCommand()
1282 … command_string.erase (0, command_string.find_first_not_of (k_white_space, end_quote_pos + 1)); in ExtractCommand()
1284 command_string.erase (); in ExtractCommand()
1289 const size_t first_space_pos = command_string.find_first_of (k_white_space); in ExtractCommand()
1292 command.swap (command_string); in ExtractCommand()
1293 command_string.erase(); in ExtractCommand()
1297 command.assign (command_string, 0, first_space_pos); in ExtractCommand()
1298 … command_string.erase(0, command_string.find_first_not_of (k_white_space, first_space_pos)); in ExtractCommand()
1535 std::string command_string (command_line); in HandleCommand() local
1561 if (command_string.empty()) in HandleCommand()
1567 size_t non_space = command_string.find_first_not_of (k_space_characters); in HandleCommand()
1572 else if (command_string[non_space] == m_comment_char) in HandleCommand()
1574 else if (command_string[non_space] == CommandHistory::g_repeat_char) in HandleCommand()
1576 … const char *history_string = m_command_history.FindString(command_string.c_str() + non_space); in HandleCommand()
1579 … result.AppendErrorWithFormat ("Could not find entry: %s in history", command_string.c_str()); in HandleCommand()
1584 command_string = history_string; in HandleCommand()
1602 command_string = command_line; in HandleCommand()
1626 Error error (PreprocessCommand (command_string)); in HandleCommand()
1652 ExtractCommand (command_string, next_word, suffix, quote_char); in HandleCommand()
1659 … cmd_obj = BuildAliasResult (full_name.c_str(), command_string, alias_result, result); in HandleCommand()
1800 if (command_string.length() == 0) in HandleCommand()
1805 if (!command_string.empty()) in HandleCommand()
1806 revised_command_line.Printf (" %s", command_string.c_str()); in HandleCommand()
1840 command_string = revised_command_line.GetData(); in HandleCommand()
1843 if (actual_cmd_name_len < command_string.length()) in HandleCommand()
1844 …remainder = command_string.substr (actual_cmd_name_len); // Note: 'actual_cmd_name_len' may be co… in HandleCommand()