MCPcopy Create free account
hub / github.com/FastFlowLM/FastFlowLM / strip_v_prefix

Function strip_v_prefix

src/include/update.hpp:28–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26
27
28static std::string strip_v_prefix(std::string s) {
29 if (!s.empty() && (s[0] == 'v' || s[0] == 'V')) s.erase(s.begin());
30 return s;
31}
32
33static std::vector<int> split_semver(const std::string& v) {
34 std::vector<int> out; out.reserve(3);

Callers 1

compare_semverFunction · 0.85

Calls 3

eraseMethod · 0.80
emptyMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected