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:
		@@ -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;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user