From 6a0093b170719092e6c0f11b889353cd70b38313 Mon Sep 17 00:00:00 2001
From: Emistry <Equinox1991@gmail.com>
Date: Sun, 6 Sep 2015 19:40:03 +0800
Subject: *explode return array size.

http://herc.ws/board/topic/7489-explode-to-push-arraysize/

Closes #700 as merged

Signed-off-by: Haru <haru@dotalux.com>
---
 doc/script_commands.txt | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

(limited to 'doc')

diff --git a/doc/script_commands.txt b/doc/script_commands.txt
index 2dd4fa575..852a003b7 100644
--- a/doc/script_commands.txt
+++ b/doc/script_commands.txt
@@ -8007,17 +8007,19 @@ Breaks a string up into substrings based on the specified delimiter.
 Substrings will be stored within the specified string array. Only the 1st 
 char of the delimiter parameter will be used. If an empty string is passed 
 as a delimiter, the string will be placed in the array in its original 
-form, without any changes.
+form, without any changes. Return the number of elements written to
+<dest_array>.
 
 Example:
 
-	explode(.@my_array$, "Explode:Test:1965:red:PIE", ":");
+	.@num_elements = explode(.@my_array$, "Explode:Test:1965:red:PIE", ":");
 	//.@my_array$ contents will be...
 	//.@my_array$[0]: "Explode"
 	//.@my_array$[1]: "Test"
 	//.@my_array$[2]: "1965"
 	//.@my_array$[3]: "red"
 	//.@my_array$[4]: "PIE"
+	//.@num_elements: 5
 
 ---------------------------------------
 
-- 
cgit v1.2.3-70-g09d2