BIS fnc splitString: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m (Text replacement - "\[\[Category\:Function Group\: Strings(\|\{\{[a-zA-Z0-9_:]+\}\})?\]\]" to "") |
||
Line 44: | Line 44: | ||
<h3 style="display:none">Bottom Section</h3> | <h3 style="display:none">Bottom Section</h3> | ||
[[Category:Functions|{{uc:splitString}}]] | [[Category:Functions|{{uc:splitString}}]] | ||
[[Category:{{Name|arma3}}: Functions|{{uc:splitString}}]] | [[Category:{{Name|arma3}}: Functions|{{uc:splitString}}]] |
Revision as of 12:07, 12 October 2020
Description
Syntax
- Syntax:
- [stringToSplit, separators, byStr] call BIS_fnc_splitString
- 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:
- Array of Strings
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