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

Method text_st

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

Source from the content-addressed store, hash-verified

250}
251
252Token TokenStream::text_st(std::string value)
253{
254 char ch{};
255 while (_istream.get(ch))
256 {
257 advance(_lookahead_pos, ch);
258 if (is_delim(ch))
259 {
260 break;
261 }
262 if (ch == '[' || ch == ']')
263 {
264 rewind(_lookahead_pos);
265 _istream.unget();
266 break;
267 }
268 value += ch;
269 }
270 return Token{TokenType::Text, value, _lookahead_pos};
271}
272
273bool TokenStream::reached_end() const
274{

Callers

nothing calls this directly

Calls 3

advanceFunction · 0.85
rewindFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected