substring

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 29, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SubstringDynamicOffsetBounded

func SubstringDynamicOffsetBounded[T1, T2 types.BuiltinNumber](src []string, res []string, startColumn []T1, lengthColumn []T2, cs []bool) []string

bound the length parameter, dynamically cut the string

func SubstringDynamicOffsetUnbounded

func SubstringDynamicOffsetUnbounded[T types.BuiltinNumber](src []string, res []string, startColumn []T, cs []bool) []string

Without binding the length parameter, dynamically cut the string

func SubstringFromLeftConstOffsetBounded

func SubstringFromLeftConstOffsetBounded(src []string, res []string, start int64, length int64) []string

bound length parameter. Cut the string from left

func SubstringFromLeftConstOffsetUnbounded

func SubstringFromLeftConstOffsetUnbounded(src []string, res []string, start int64) []string

The length parameter is not bound. Cut the string from the left

func SubstringFromRightConstOffsetBounded

func SubstringFromRightConstOffsetBounded(src []string, res []string, start, length int64) []string

bound length parameter. Cut the string from right

func SubstringFromRightConstOffsetUnbounded

func SubstringFromRightConstOffsetUnbounded(src []string, res []string, start int64) []string

The length parameter is not bound. Cut the string from the right

func SubstringFromZeroConstOffsetBounded

func SubstringFromZeroConstOffsetBounded(src []string, res []string) []string

Per MySQL substring doc, if pos is 0, return empty strings.

func SubstringFromZeroConstOffsetUnbounded

func SubstringFromZeroConstOffsetUnbounded(src []string, res []string) []string

Per MySQL substring doc, if pos is 0, return empty strings.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL