MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / text_val

Function text_val

src/runtime/CL/mlgo/MLGOParser.cpp:343–352  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

341}
342
343std::string text_val(TokenStream &in, bool &valid)
344{
345 LOG_TOKEN_POS(in, pos);
346 auto tok = in.take();
347 if (tok.type != TokenType::Text || tok.value.empty())
348 {
349 FAIL_WITH_MSG_DEFAULT(valid, "", pos, "Expect a non-empty text token");
350 }
351 return tok.value;
352}
353
354bool accept_text(TokenStream &in, const std::string &c_str, bool take = true)
355{

Callers 3

free_varsFunction · 0.85
heuristics_table_entryFunction · 0.85
conditionFunction · 0.85

Calls 2

takeMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected