Function Block CHUNK_SPLIT

The function block CHUNK_SPLIT splits a string into parts of equal length.

Note: This function is Binary-Safe. This means that UTF8 characters cannot be processed directly.

Can be used to split a string into smaller pieces. This is helpful, for example, when converting BASE64 outputs that must comply with RFC 2045.

Input STR

The input defines the string to be split.

Input LEN

The input defines the length as an integer for the maximum chunk length.

Input END

Defines the line ending as a string which is inserted after each chunk. For example, "\n\r".

Output

The output returns the split string.

See Also