MCPcopy Create free account
hub / github.com/csmith-project/csmith / first_nonspace_char

Method first_nonspace_char

src/StringUtils.cpp:89–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87}
88
89char
90StringUtils::first_nonspace_char(const std::string &s)
91{
92 if (s.empty())
93 return '\0';
94 size_t pos = 0;
95 ignore_spaces(s, pos);
96 return s[pos];
97}
98
99size_t
100StringUtils::find_any_char(const string &s, size_t pos, const string& to_match)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected