mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +00:00
STYLE: update applications/tests to use SpanStream/CharStream
This commit is contained in:
committed by
Andrew Heather
parent
3693d61e6c
commit
0fb2c8eb1c
@ -5,7 +5,7 @@
|
||||
\\ / A nd | www.openfoam.com
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
Copyright (C) 2021 OpenCFD Ltd.
|
||||
Copyright (C) 2021-2023 OpenCFD Ltd.
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
This file is part of OpenFOAM.
|
||||
@ -38,7 +38,7 @@ Description
|
||||
|
||||
#include "charList.H"
|
||||
#include "labelList.H"
|
||||
#include "StringStream.H"
|
||||
#include "SpanStream.H"
|
||||
#include "ListOps.H"
|
||||
#include "SubList.H"
|
||||
#include "FlatOutput.H"
|
||||
@ -61,7 +61,7 @@ int main(int argc, char *argv[])
|
||||
// Info<< "Known compound tokens: "
|
||||
// << token::compound::emptyConstructorTablePtr_->sortedToc() << nl;
|
||||
|
||||
OStringStream ostr;
|
||||
OCharStream ostr;
|
||||
|
||||
{
|
||||
List<char> alphabet(64);
|
||||
@ -75,7 +75,8 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
|
||||
{
|
||||
IStringStream istr(ostr.str());
|
||||
// ICharStream istr(ostr.release());
|
||||
ISpanStream istr(ostr.view());
|
||||
List<char> alphabet(istr);
|
||||
|
||||
Info<< "re-read: " << alphabet << nl;
|
||||
@ -88,6 +89,8 @@ int main(int argc, char *argv[])
|
||||
Info<< "blanked: " << alphabet << nl;
|
||||
}
|
||||
|
||||
Info<< "\nEnd\n" << nl;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user