Module common

Module common 

Source
Expand description

Common utilities for implementing string functions

Enumsยง

TrimType ๐Ÿ”’

Functionsยง

case_conversion ๐Ÿ”’
case_conversion_array ๐Ÿ”’
case_conversion_ascii_array ๐Ÿ”’
All values of string_array are ASCII, and when converting case, there is no changes in the byte array length. Therefore, the StringArray can be treated as a complete ASCII string for case conversion, and we can reuse the offsets buffer and the nulls buffer.
general_trim ๐Ÿ”’
string_trim ๐Ÿ”’
Applies the trim function to the given string array(s) and returns a new string array with the trimmed values.
string_view_trim ๐Ÿ”’
Applies the trim function to the given string view array(s) and returns a new string view array with the trimmed values.
to_lower ๐Ÿ”’
to_upper ๐Ÿ”’
trim_and_append_str ๐Ÿ”’
Trims the given string and appends the trimmed string to the views buffer and the null buffer.