MCPcopy Create free account
hub / github.com/PDAL/PDAL / nameValid

Method nameValid

pdal/Options.cpp:61–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59
60
61bool Option::nameValid(const std::string& name, bool reportError)
62{
63 bool valid = (parse(name, 0) == name.size());
64 if (!valid && reportError)
65 {
66 std::ostringstream oss;
67 oss << "Invalid option name '" << name << "'. Options must "
68 "consist of only lowercase letters, numbers and '_'.";
69 Utils::printError(oss.str());
70 }
71 return valid;
72}
73
74
75//---------------------------------------------------------------------------

Callers

nothing calls this directly

Calls 4

printErrorFunction · 0.85
strMethod · 0.80
parseFunction · 0.70
sizeMethod · 0.45

Tested by

no test coverage detected