MCPcopy Create free account
hub / github.com/Exiv2/exiv2 / onlyWhitespaces

Function onlyWhitespaces

src/epsimage.cpp:111–115  ·  view source on GitHub ↗

Check whether a string contains only white space characters

Source from the content-addressed store, hash-verified

109
110//! Check whether a string contains only white space characters
111bool onlyWhitespaces(const std::string& s) {
112 // According to the DSC 3.0 specification, 4.4 Parsing Rules,
113 // only spaces and tabs are considered to be white space characters.
114 return s.find_first_not_of(" \t") == std::string::npos;
115}
116
117//! Read the next line of a buffer, allow for changing line ending style
118size_t readLine(std::string& line, const byte* data, size_t startPos, size_t size) {

Callers 1

readWriteEpsMetadataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected