MCPcopy Create free account
hub / github.com/MyGUI/mygui / _checkStreamFail

Function _checkStreamFail

Tools/LayoutEditor/Parse.cpp:48–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46 }
47
48 bool _checkStreamFail(std::istringstream& str)
49 {
50 if (str.fail())
51 {
52 return false;
53 }
54
55 std::string tmp;
56 str >> tmp;
57 // reading more data must fail, because there should've been no more data
58 return str.fail() && tmp.find_first_not_of(" \t\r") == std::string::npos;
59 }
60
61}

Callers 2

checkParseIntervalFunction · 0.85
checkParseFunction · 0.85

Calls 1

find_first_not_ofMethod · 0.80

Tested by

no test coverage detected