MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/OpenColorIO / nextline

Function nextline

src/OpenColorIO/ParseUtils.cpp:674–691  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

672// return 'true' on success
673
674bool nextline(std::istream &istream, std::string &line)
675{
676 while ( istream.good() )
677 {
678 std::getline(istream, line);
679 if(line.size() > 0 && line[line.size() - 1] == '\r')
680 {
681 line.resize(line.size() - 1);
682 }
683 if(!StringUtils::IsEmptyOrWhiteSpace(line))
684 {
685 return true;
686 }
687 }
688
689 line.clear();
690 return false;
691}
692
693bool StrEqualsCaseIgnore(const std::string & a, const std::string & b)
694{

Callers 8

readMethod · 0.85
readMethod · 0.85
readMethod · 0.85
readMethod · 0.85
readMethod · 0.85
readHeadersFunction · 0.85
readMethod · 0.85

Calls 4

IsEmptyOrWhiteSpaceFunction · 0.85
sizeMethod · 0.45
resizeMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected