mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-22 06:13:14 -07:00
spelling: inversion
This commit is contained in:
parent
3a18d7d84d
commit
3517f03e2d
3 changed files with 6 additions and 6 deletions
|
@ -136,7 +136,7 @@ void CHistoryCollector::ChangeLastBinOp(int nOpCode, bool fPrecInvToHigher)
|
|||
TruncateEquationSzFromIch(m_lastBinOpStartIndex);
|
||||
if (fPrecInvToHigher)
|
||||
{
|
||||
EnclosePrecInvertionBrackets();
|
||||
EnclosePrecInversionBrackets();
|
||||
}
|
||||
AddBinOpToHistory(nOpCode);
|
||||
}
|
||||
|
@ -180,7 +180,7 @@ void CHistoryCollector::AddCloseBraceToHistory()
|
|||
m_bLastOpndBrace = true;
|
||||
}
|
||||
|
||||
void CHistoryCollector::EnclosePrecInvertionBrackets()
|
||||
void CHistoryCollector::EnclosePrecInversionBrackets()
|
||||
{
|
||||
// Top of the Opnd starts index or 0 is nothing is in top
|
||||
int ichStart = (m_curOperandIndex > 0) ? m_operandIndices[m_curOperandIndex - 1] : 0;
|
||||
|
|
|
@ -271,7 +271,7 @@ void CCalcEngine::ProcessCommandWorker(WPARAM wParam)
|
|||
// 1 + (2 Or 3)
|
||||
if (ni <= nx)
|
||||
{
|
||||
m_HistoryCollector.EnclosePrecInvertionBrackets();
|
||||
m_HistoryCollector.EnclosePrecInversionBrackets();
|
||||
}
|
||||
m_HistoryCollector.PopLastOpndStart();
|
||||
goto DoPrecedenceCheckAgain;
|
||||
|
@ -507,7 +507,7 @@ void CCalcEngine::ProcessCommandWorker(WPARAM wParam)
|
|||
nx = NPrecedenceOfOp(m_nOpCode);
|
||||
if (ni <= nx)
|
||||
{
|
||||
m_HistoryCollector.EnclosePrecInvertionBrackets();
|
||||
m_HistoryCollector.EnclosePrecInversionBrackets();
|
||||
}
|
||||
m_HistoryCollector.PopLastOpndStart();
|
||||
|
||||
|
@ -600,7 +600,7 @@ void CCalcEngine::ProcessCommandWorker(WPARAM wParam)
|
|||
nx = NPrecedenceOfOp(m_nOpCode);
|
||||
if (ni <= nx)
|
||||
{
|
||||
m_HistoryCollector.EnclosePrecInvertionBrackets();
|
||||
m_HistoryCollector.EnclosePrecInversionBrackets();
|
||||
}
|
||||
m_HistoryCollector.PopLastOpndStart();
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@ public:
|
|||
void AddCloseBraceToHistory();
|
||||
void PushLastOpndStart(int ichOpndStart = -1);
|
||||
void PopLastOpndStart();
|
||||
void EnclosePrecInvertionBrackets();
|
||||
void EnclosePrecInversionBrackets();
|
||||
bool FOpndAddedToHistory();
|
||||
void CompleteHistoryLine(std::wstring_view numStr);
|
||||
void ClearHistoryLine(std::wstring_view errStr);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue