mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-22 14:13:30 -07:00
Fixes #52
This commit is contained in:
parent
dc00380d0f
commit
edafb7be6d
1 changed files with 4 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
// Licensed under the MIT License.
|
// Licensed under the MIT License.
|
||||||
|
|
||||||
//
|
//
|
||||||
|
@ -86,11 +86,11 @@ bool Utils::IsLastCharacterTarget(_In_ wstring const &input, _In_ wchar_t target
|
||||||
return !input.empty() && input.back() == target;
|
return !input.empty() && input.back() == target;
|
||||||
}
|
}
|
||||||
|
|
||||||
//return wstring after removing characters like space, comma, and double quotes
|
//return wstring after removing characters like space, comma, double quotes, and monetary prefix currency symbols supported by the Windows keyboard
|
||||||
wstring Utils::RemoveUnwantedCharsFromWstring(wstring input)
|
wstring Utils::RemoveUnwantedCharsFromWstring(wstring input)
|
||||||
{
|
{
|
||||||
wchar_t unWantedChars[] = { L' ', L',', L'"', 8234, 8235, 8236, 8237 };
|
wchar_t unWantedChars[] = { L' ', L',', L'"', 165, 164, 8373, 36, 8353, 8361, 8362, 8358, 8377, 163, 8364, 8234, 8235, 8236, 8237 };
|
||||||
return RemoveUnwantedCharsFromWstring(input, unWantedChars, 6);
|
return RemoveUnwantedCharsFromWstring(input, unWantedChars, 18);
|
||||||
}
|
}
|
||||||
|
|
||||||
//return wstring after removing characters specified by unwantedChars array
|
//return wstring after removing characters specified by unwantedChars array
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue