string_split_by

Declaration

string_split_by :: fn (str: string, delimiter: u8) []string

Description

Split the str input string by delimiter and return new slice containing all found sub-strings.

Warning

String slice should be terminated by slice_terminate call.

Note

Slice elements just points into original string and should not be terminated.

Arguments

  • str String.

  • delimiter Delimiter character.

Result

String slice.

Declared in: string.bl