MCPcopy Create free account
hub / github.com/apache/arrow / search

Function search

r/src/nameof.h:47–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47constexpr size_t search(char const* haystack, char const* needle) {
48 return haystack[0] == '\0' || starts_with(haystack, needle)
49 ? 0
50 : search(haystack + 1, needle) + 1;
51}
52
53const size_t typename_prefix = search(raw<double>(), "double");
54

Callers 4

ReplaceStringMethod · 0.85
FindMethod · 0.85
FindReverseMethod · 0.85
nameof.hFile · 0.85

Calls 1

starts_withFunction · 0.85

Tested by

no test coverage detected