Changeset View
Changeset View
Standalone View
Standalone View
tools/lldb-mi/MICmdArgContext.cpp
Show First 20 Lines • Show All 124 Lines • ▼ Show 20 Lines | while (1) | ||||
if (bPass2) | if (bPass2) | ||||
break; | break; | ||||
} | } | ||||
nPos = m_strCmdArgsAndOptions.find(vArg, nEnd); | nPos = m_strCmdArgsAndOptions.find(vArg, nEnd); | ||||
} | } | ||||
const size_t nPosEnd = nLen + nExtraSpace; | const size_t nPosEnd = nLen + nExtraSpace; | ||||
m_strCmdArgsAndOptions = m_strCmdArgsAndOptions.replace(nPos, nPosEnd, "").c_str(); | m_strCmdArgsAndOptions = m_strCmdArgsAndOptions.replace(nPos, nPosEnd, ""); | ||||
m_strCmdArgsAndOptions = m_strCmdArgsAndOptions.Trim(); | m_strCmdArgsAndOptions = m_strCmdArgsAndOptions.Trim(); | ||||
return MIstatus::success; | return MIstatus::success; | ||||
} | } | ||||
//++ ------------------------------------------------------------------------------------ | //++ ------------------------------------------------------------------------------------ | ||||
// Details: Remove the argument at the Nth word position along in the context string. | // Details: Remove the argument at the Nth word position along in the context string. | ||||
// Any space after the argument is removed if applicable. A search is not | // Any space after the argument is removed if applicable. A search is not | ||||
▲ Show 20 Lines • Show All 104 Lines • Show Last 20 Lines |