Commit 10e98317 authored by mattijs's avatar mattijs
Browse files

BUG: UOPstream writing dictionary with keywords quoted.

parent 433808b6
......@@ -213,9 +213,20 @@ Foam::Ostream& Foam::UOPstream::write(const string& str)
}
Foam::Ostream& Foam::UOPstream::writeQuoted(const std::string& str, const bool)
Foam::Ostream& Foam::UOPstream::writeQuoted
(
const std::string& str,
const bool quoted
)
{
write(char(token::STRING));
if (quoted)
{
write(char(token::STRING));
}
else
{
write(char(token::WORD));
}
size_t len = str.size();
writeToBuffer(len);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment