EnglishРусский  
The project is closed! You can look at a new scripting language. It is available on GitHub.
Also, try our open source cross-platform automation software.

Ads

Installer and installation software
Commercial and Freeware installers.

str.split

Splitting a string. The method splits a string into substrings taking into account the specified separator.

method arrstr str.split (
   arrstr ret,
   uint symbol,
   uint flag
)

Parameters

ret The result array of strings.
symbol Separator.
flag Flags.
$SPLIT_EMPTYTake into account empty substrings.
$SPLIT_NOSYSDelete characters <= space on the left and on the right.
$SPLIT_FIRSTSplit till the first separator.
$SPLIT_QUOTETake into account that elements can be enclosed by single or double quotation marks.
$SPLIT_APPENDAdding strings. Otherwise, the array is cleared before loading.

Return value

The result array of strings.


The method splits a string into the new result array of strings.

method arrstr str.split <result>  (
   uint symbol,
   uint flag
)

Parameters

symbol Separator.
flag Flags.
$SPLIT_EMPTYTake into account empty substrings.
$SPLIT_NOSYSDelete characters <= space on the left and on the right.
$SPLIT_FIRSTSplit till the first separator.
$SPLIT_QUOTETake into account that elements can be enclosed by single or double quotation marks.
$SPLIT_APPENDAdding strings. Otherwise, the array is cleared before loading.

Return value

The new result array of strings.


str.split

The method looks for the first symbol and splits a string into two parts.

method uint str.split (
   uint symbol,
   str left,
   str right
)

Parameters

symbol Separator.
left The substring left on the symbol.
right The substring right on the symbol.

Return value

Returns 1 if the separator has been found. Otherwise, return 0.

Related links

Source