MCPcopy Create free account
hub / github.com/cselab/aphros / RemoveComment

Method RemoveComment

src/parse/parser.cpp:33–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31 Imp(Owner* owner, Vars& var) : owner_(owner), var_(var) {}
32
33 static std::string RemoveComment(std::string s) {
34 return s.substr(0, s.find('#', 0));
35 }
36 static bool IsNameChar(char c) {
37 return (c >= '0' && c <= '9') || (c >= 'a' && c <= 'z') ||
38 (c >= 'A' && c <= 'Z') || c == '_';

Callers

nothing calls this directly

Calls 1

findMethod · 0.45

Tested by

no test coverage detected