Changeset View
Changeset View
Standalone View
Standalone View
tools/lldb-mi/MICmdArgValOptionShort.cpp
Show First 20 Lines • Show All 109 Lines • ▼ Show 20 Lines | |||||
// Type: Overridden. | // Type: Overridden. | ||||
// Args: vrTxt - (R) Some text. | // Args: vrTxt - (R) Some text. | ||||
// Return: bool - True = yes arg name matched, false = no. | // Return: bool - True = yes arg name matched, false = no. | ||||
// Throws: None. | // Throws: None. | ||||
//-- | //-- | ||||
bool | bool | ||||
CMICmdArgValOptionShort::ArgNameMatch(const CMIUtilString &vrTxt) const | CMICmdArgValOptionShort::ArgNameMatch(const CMIUtilString &vrTxt) const | ||||
{ | { | ||||
const CMIUtilString strArg = vrTxt.substr(1).c_str(); | const CMIUtilString strArg = vrTxt.substr(1); | ||||
return (strArg == GetName()); | return (strArg == GetName()); | ||||
} | } |