BIS fnc splitString: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "\[\[[cC]ategory:[fF]unctions\|\{\{uc:[a-z A-Z_]*\}\}\]\]" to "") |
Lou Montana (talk | contribs) m (Text replacement - "\| *((\[\[[a-zA-Z0-9_ :\\\-\/|()]+\]\],? ?)+) * \}\}" to "|seealso= $1 }}") |
||
Line 27: | Line 27: | ||
|x4= <code>["this is a test", "is", [[true]]] [[call]] [[BIS_fnc_splitString]]; {{codecomment|// returns ["th"," "," a test"]}}</code> | |x4= <code>["this is a test", "is", [[true]]] [[call]] [[BIS_fnc_splitString]]; {{codecomment|// returns ["th"," "," a test"]}}</code> | ||
| [[splitString]], [[toArray]], [[toString]] | |seealso= [[splitString]], [[toArray]], [[toString]] | ||
}} | }} | ||
Revision as of 00:35, 17 February 2021
Description
- Description:
- Description needed
- Execution:
- call
- Groups:
- Strings
Syntax
- Syntax:
- Syntax needed
- Parameters:
- stringToSplit: String
- separators: String - (Optional, default "") each letter in it is a separator if byStr is false; not the whole word itself
- byStr: Boolean - (Optional, default false) use splitString if set to true
- Return Value:
- Return value needed
Examples
- Example 1:
["this is a test", " "] call BIS_fnc_splitString; // returns ["this", "is", "a", "test"]
- Example 2:
["this is a test", "st"] call BIS_fnc_splitString; // returns ["hi"," i"," a ","e"]
- Example 3:
["this is a test", "is"] call BIS_fnc_splitString; // returns ["th"," "," a te","t"]
- Example 4:
["this is a test", "is", true] call BIS_fnc_splitString; // returns ["th"," "," a test"]
Additional Information
- See also:
- splitStringtoArraytoString
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note