MCPcopy Create free account
hub / github.com/apache/impala / FindUtf8PosForward

Function FindUtf8PosForward

be/src/util/string-util.h:84–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82/// TODO(IMPALA-10761): Add query option to control the error handling.
83int FindUtf8PosForward(const uint8_t* str_ptr, const int str_len, const int index);
84inline int FindUtf8PosForward(const char* str_ptr, const int str_len, const int index) {
85 return FindUtf8PosForward(reinterpret_cast<const uint8_t*>(str_ptr), str_len, index);
86}
87
88/// Counting backwards to find the last N-th Unicode character in the string, returns
89/// the start byte position of it. The input string 'str_ptr' is viewed logically as

Callers 2

TESTFunction · 0.70
InstrMethod · 0.50

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.56