Symisc Vedis

An Embeddable Datastore Engine



Vedis Built-in Commands - Key/Value.

Command

STR_SPLIT input [split_length = 1]


Description


 Split a string into an indexed array.


Return value


Array: If the optional split_length parameter is specified, the returned array will be broken down into chunks with each being split_length in length, otherwise
each chunk will be one character in length. FALSE is returned if split_length is less than 1. If the split_length length exceeds the length of string, the entire string is returned as the first (and only) array element.


Example


Refer to the download page for some C/C++ samples on how to invoke this command from your host application.



vedis> STR_SPLIT hello
1)h
2)e
3)l
4)l
5)o




Symisc Systems
Copyright © Symisc Systems