BIS fnc trimString: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\{\{ *cc*\| *([^}]+) *\}\}" to "// $1") |
Lou Montana (talk | contribs) m (Text replacement - "<code>([^<]*)<\/code>" to "<sqf>$1</sqf>") |
||
Line 34: | Line 34: | ||
<dt class="note">[[User:R3vo|R3vo]]</dt> | <dt class="note">[[User:R3vo|R3vo]]</dt> | ||
<dd class="note"> | <dd class="note"> | ||
< | <sqf>"test" select [0,4]; // 0.0007 ms | ||
["test",0,4] call BIS_fnc_trimString; // 0.013 ms</ | ["test",0,4] call BIS_fnc_trimString; // 0.013 ms</sqf> | ||
The first method is about '''18 times faster'''. | The first method is about '''18 times faster'''. |
Revision as of 11:09, 13 July 2022
Description
Syntax
- Syntax:
- [someText, beginning, length] call BIS_fnc_trimString
- Parameters:
- someText: String - source string
- beginning: Number (Optional, default 0) - start index; indexing starts at 0
- length: Number (Optional, default end of string) - end index. A negative number means X chars from the string end
- Return Value:
- String
Examples
- Example 1:
- Example 2:
- Example 3:
Additional Information
- See also:
- See also needed
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
- Posted on August 24, 2017 - 15:45 (UTC)
- R3vo
- The first method is about 18 times faster.