| 82 | /// TODO(IMPALA-10761): Add query option to control the error handling. |
| 83 | int FindUtf8PosForward(const uint8_t* str_ptr, const int str_len, const int index); |
| 84 | inline 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 |