MCPcopy Create free account
hub / github.com/NixOS/nix / getStringUntil

Function getStringUntil

src/libutil/git.cc:33–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31}
32
33static std::string getStringUntil(Source & source, char byte)
34{
35 std::string s;
36 char n[1] = {0};
37 source(std::string_view{n, 1});
38 while (*n != byte) {
39 s += *n;
40 source(std::string_view{n, 1});
41 }
42 return s;
43}
44
45static std::string getString(Source & source, int n)
46{

Callers 2

parseBlobFunction · 0.85
parseTreeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected