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

Function match_string

cpp/src/gandiva/precompiled/string_ops.cc:48–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48FORCE_INLINE
49int match_string(const char* input, gdv_int32 input_len, gdv_int32 start_pos,
50 const char* delim, gdv_int32 delim_len) {
51 for (int i = start_pos; i < input_len; i++) {
52 int left_chars = input_len - i;
53 if ((left_chars >= delim_len) && memcmp(input + i, delim, delim_len) == 0) {
54 return i + delim_len;
55 }
56 }
57
58 return -1;
59}
60
61FORCE_INLINE
62gdv_int32 mem_compare(const char* left, gdv_int32 left_len, const char* right,

Callers 1

split_partFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected