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

Function starts_with

r/src/nameof.h:42–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40#undef ARROW_PRETTY_FUNCTION
41
42constexpr bool starts_with(char const* haystack, char const* needle) {
43 return needle[0] == '\0' ||
44 (haystack[0] == needle[0] && starts_with(haystack + 1, needle + 1));
45}
46
47constexpr size_t search(char const* haystack, char const* needle) {
48 return haystack[0] == '\0' || starts_with(haystack, needle)

Callers 2

searchFunction · 0.85
struct_class_prefixFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected