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

Function valid

src/OpenFOAM/dimensionSet/dimensionSetIO.C:88–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86
87
88bool Foam::dimensionSet::tokeniser::valid(char c)
89{
90 return
91 (
92 !isspace(c)
93 && c != '"' // string quote
94 && c != '\'' // string quote
95 && c != '/' // div
96 && c != ';' // end statement
97 && c != '{' // beg subdict
98 && c != '}' // end subdict
99 && c != '(' // beg expr
100 && c != ')' // end expr
101 && c != '[' // beg dim
102 && c != ']' // end dim
103 && c != '^' // power
104 && c != '*' // mult
105 );
106}
107
108
109Foam::label Foam::dimensionSet::tokeniser::priority(const token& t)

Callers 15

getFirstWordFunction · 0.85
getFirstWordFunction · 0.85
updateMethod · 0.85
updateEdgeMethod · 0.85
updateFaceMethod · 0.85
updateMethod · 0.85
updateMethod · 0.85
updateMethod · 0.85
updateCellMethod · 0.85
updateFaceMethod · 0.85
updateMethod · 0.85
equalMethod · 0.85

Calls 1

isspaceFunction · 0.85

Tested by

no test coverage detected