mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: UOPstream writing dictionary with keywords quoted.
This commit is contained in:
@ -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();
|
size_t len = str.size();
|
||||||
writeToBuffer(len);
|
writeToBuffer(len);
|
||||||
|
|||||||
Reference in New Issue
Block a user