MCPcopy Create free account
hub / github.com/CodingGay/BlackDex / set

Method set

Bcore/src/main/cpp/Dobby/tests/catch.hpp:5907–5917  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5905 return *m_name;
5906 }
5907 auto set(std::string const &newName) -> ParserResult {
5908
5909 auto lastSlash = newName.find_last_of("\\/");
5910 auto filename = (lastSlash == std::string::npos) ? newName : newName.substr(lastSlash + 1);
5911
5912 *m_name = filename;
5913 if (m_ref)
5914 return m_ref->setValue(filename);
5915 else
5916 return ParserResult::ok(ParseResultType::Matched);
5917 }
5918};
5919
5920class Arg : public ParserRefImpl<Arg> {

Callers 1

parseMethod · 0.45

Calls 2

substrMethod · 0.45
setValueMethod · 0.45

Tested by

no test coverage detected