MCPcopy Create free account
hub / github.com/Snapchat/Valdi / readWhile

Method readWhile

valdi_core/src/valdi_core/cpp/Utils/TextParser.hpp:67–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65 */
66 template<typename Pred>
67 std::string_view readWhile(Pred&& pred) {
68 auto start = position();
69 while (tryParsePredicate(pred)) {
70 }
71 return substr(start, position());
72 }
73
74 /**
75 Read the string until the given character is found or the end of the buffer is reached.

Callers 1

TESTFunction · 0.80

Calls 1

positionFunction · 0.85

Tested by 1

TESTFunction · 0.64