ENH: add support for CHAR_DATA token

- allows construction of string tokens holding character content.
  For example, data that has been serialized and buffered and that
  now needs to be written or sent to another process.
This commit is contained in:
Mark Olesen
2023-11-17 00:13:01 +01:00
parent 5bcf70081a
commit a0b9732321
15 changed files with 455 additions and 46 deletions

View File

@ -374,6 +374,7 @@ Foam::Istream& Foam::UIPstreamBase::read(token& t)
case token::tokenType::EXPRESSION :
case token::tokenType::VARIABLE :
case token::tokenType::VERBATIM :
case token::tokenType::CHAR_DATA :
{
string val;
if (readString(val))