mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Fixed: Not being able to Substitute a quote character.
The variable #QUOT# can be used in Substitutes. E.g. Substitute="#QUOT#":"blaa"
This commit is contained in:
parent
bf026cc248
commit
02658b1ecc
@ -251,6 +251,7 @@ bool CMeasure::ParseSubstitute(std::wstring buffer)
|
||||
std::wstring CMeasure::ExtractWord(std::wstring& buffer)
|
||||
{
|
||||
std::wstring::size_type end = 0;
|
||||
std::wstring::size_type pos = 0;
|
||||
std::wstring ret;
|
||||
|
||||
if (buffer.empty()) return ret;
|
||||
@ -294,6 +295,9 @@ std::wstring CMeasure::ExtractWord(std::wstring& buffer)
|
||||
buffer.erase(0, end + 1);
|
||||
}
|
||||
}
|
||||
|
||||
while ((pos = ret.find_first_of(L"#QUOT#", pos)) != std::wstring::npos) ret.replace(pos, 6, L"\"");
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user