mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
String Meter: Fixed capitalization problem when letter followed whitespace that was not a space.
This commit is contained in:
parent
05c6ce1ce7
commit
8b477d1a9b
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user