This commit is contained in:
Brandon Williams 2019-03-07 10:26:37 -08:00
commit edafb7be6d

View file

@ -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