MCPcopy Create free account
hub / github.com/Kitware/VTK / ReadExpecting

Method ReadExpecting

IO/Geometry/vtkOpenFOAMReader.cxx:2645–2669  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2643 }
2644
2645 void ReadExpecting(char expected)
2646 {
2647 // skip prepending invalid chars
2648 // expanded the outermost loop in nextTokenHead() for performance
2649 int c;
2650 while (isspace(c = this->Getc())) // isspace() accepts -1 as EOF
2651 {
2652 if (c == '\n')
2653 {
2654 ++this->Superclass::LineNumber;
2655#if VTK_FOAMFILE_RECOGNIZE_LINEHEAD
2656 this->Superclass::WasNewline = true;
2657#endif
2658 }
2659 }
2660 if (c == '/')
2661 {
2662 this->PutBack(c);
2663 c = this->NextTokenHead();
2664 }
2665 if (c != expected)
2666 {
2667 this->ThrowUnexpectedTokenException(expected, c);
2668 }
2669 }
2670
2671 void ReadExpecting(const char* str)
2672 {

Callers 9

ReadValueMethod · 0.80
ReadUniformValuesMethod · 0.80
ReadAsciiListMethod · 0.80
ReadBinaryListMethod · 0.80
ReadNonUniformListMethod · 0.80
ReadLabelListListMethod · 0.80
ReadDimensionSetMethod · 0.80
ReadMethod · 0.80

Calls 6

GetcMethod · 0.95
PutBackMethod · 0.95
NextTokenHeadMethod · 0.95
ReadMethod · 0.95
StackStringMethod · 0.95

Tested by

no test coverage detected