MCPcopy Create free account
hub / github.com/OpenFOAM/OpenFOAM-dev / stripInvalid

Method stripInvalid

src/OpenFOAM/primitives/strings/fileName/fileNameI.H:28–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
27
28inline void Foam::fileName::stripInvalid()
29{
30 if (debug && string::stripInvalid<fileName>(*this))
31 {
32 std::cerr
33 << "fileName::stripInvalid() called for invalid fileName "
34 << this->c_str() << std::endl;
35
36 if (debug > 1)
37 {
38 std::cerr
39 << " For debug level (= " << debug
40 << ") > 1 this is considered fatal" << std::endl;
41 std::abort();
42 }
43
44 removeRepeated('/');
45 removeTrailing('/');
46 }
47}
48
49
50// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //

Callers 1

fileNameIO.CFile · 0.45

Calls 3

removeRepeatedFunction · 0.85
removeTrailingFunction · 0.85
abortFunction · 0.50

Tested by

no test coverage detected