From 8b477d1a9b95e6f1de6124fdc3b127ab926ff787 Mon Sep 17 00:00:00 2001 From: Brian Ferguson Date: Thu, 18 Apr 2013 11:19:21 -0600 Subject: [PATCH] String Meter: Fixed capitalization problem when letter followed whitespace that was not a space. --- Library/MeterString.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/MeterString.cpp b/Library/MeterString.cpp index 3ab70853..70fff6fe 100644 --- a/Library/MeterString.cpp +++ b/Library/MeterString.cpp @@ -54,7 +54,7 @@ void StringToProper(std::wstring& str) for (size_t i = 1; i < str.length(); ++i) { srcAndDest = &str[i]; - LCMapString(LOCALE_USER_DEFAULT, (str[i - 1] == L' ') ? LCMAP_UPPERCASE : LCMAP_LOWERCASE, srcAndDest, 1, srcAndDest, 1); + LCMapString(LOCALE_USER_DEFAULT, (iswspace(str[i - 1]) > 0) ? LCMAP_UPPERCASE : LCMAP_LOWERCASE, srcAndDest, 1, srcAndDest, 1); } } }