61 content_ = std::cref<std::string>(
s);
68std::string::const_iterator
71 const std::string&
s = content_.get();
73 if (start_ >=
s.length())
78 return s.cbegin() + start_;
82std::string::const_iterator
85 const std::string&
s = content_.get();
87 if (length_ == std::string::npos || start_ >=
s.length())
92 const size_t strEnd = start_ + length_;
94 if (strEnd >=
s.length())
99 return s.cbegin() + strEnd;
108 const auto endIter = cend();
110 for (
auto iter = cbegin(); iter != endIter; ++iter)
133 const std::string& msg
138 reportFatal(msg, position_);
150 os <<
nl << msg.c_str() <<
" in expression\n"
162 const std::string& msg,
174 os <<
nl << msg.c_str()
175 <<
" in expression at position:" << long(
pos) <<
nl
178 const auto begIter = cbegin();
179 const auto endIter = cend();
182 size_t newline0 = 0, newline1 = 0;
186 for (; iter != endIter; ++iter)
199 newline1 = (iter-begIter);
217 if (newline0 == newline1 || newline1 ==
pos)
222 size_t col = std::min(newline0, newline1);
235 os <<
"^^^^ near here\n";
238 for (; iter != endIter; ++iter)
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
std::string::const_iterator cend() const
Iterator to end of content (sub)string.
std::string::const_iterator cbegin() const
Iterator to begin of content (sub)string.
const std::string & content() const
Get reference to the input buffer content.
void reportFatal(const std::string &msg) const
Report FatalError.
Ostream & printBuffer(Ostream &os) const
Output the input buffer string content.
void clear()
Reset references.
genericRagelLemonDriver()
Construct null.
A class for handling character strings derived from std::string.
OBJstream os(runTime.globalPath()/outputName)
gmvFile<< "tracers "<< particles.size()<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().x()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().y()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().z()<< " ";}gmvFile<< nl;forAll(lagrangianScalarNames, i){ word name=lagrangianScalarNames[i];IOField< scalar > s(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
dimensionedScalar pos(const dimensionedScalar &ds)
errorManipArg< error, int > exit(error &err, const int errNo=1)
constexpr char nl
The newline '\n' character (0x0a)