MCPcopy Create free account
hub / github.com/SheafificationOfG/based-cpp / strlen

Function strlen

gil/std.str.hpp:44–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44static constexpr auto strlen(auto str) noexcept {
45 using _impl_::idx;
46 using _impl_::tmp;
47 return for_(block_(idx = 0, tmp = str), true,
48 ++idx)(if_(end(*tmp[*idx]))(break_(*idx)));
49}
50
51static constexpr auto strcpy(auto dst, auto src) noexcept {
52 using _impl_::idx;

Callers

nothing calls this directly

Calls 4

for_Function · 0.85
block_Function · 0.85
if_Function · 0.85
endFunction · 0.85

Tested by

no test coverage detected