Module locate

Module locate 

Source
Expand description

MySQL-compatible LOCATE function implementation.

LOCATE(substr, str) - Returns the position of the first occurrence of substr in str (1-based). LOCATE(substr, str, pos) - Returns the position of the first occurrence of substr in str, starting from position pos. Returns 0 if substr is not found.

Structsยง

LocateFunction
MySQL-compatible LOCATE function.

Constantsยง

NAME ๐Ÿ”’

Functionsยง

cast_to_int64 ๐Ÿ”’
cast_to_large_utf8 ๐Ÿ”’
Cast array to LargeUtf8 for uniform string access.
locate_substr ๐Ÿ”’
Find the 1-based position of needle in haystack, starting from start_pos (0-based character index). Returns 0 if not found.