BIS fnc trimString: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) (example correction) |
No edit summary |
||
Line 55: | Line 55: | ||
[[Category:Functions|{{uc:trimString}}]] | [[Category:Functions|{{uc:trimString}}]] | ||
[[Category:{{Name|arma3}}: Functions|{{uc:trimString}}]] | [[Category:{{Name|arma3}}: Functions|{{uc:trimString}}]] | ||
<!-- CONTINUE Notes --> | |||
<dl class="command_description"> | |||
<dd class="notedate">Posted on August 24, 2017 - 15:45 (UTC)</dd> | |||
<dt class="note">[[User:Revo|Revo]]</dt> | |||
<dd class="note"> | |||
Result:<br> | |||
'''0.0007 ms'''<br><br> | |||
Cycles:<br> | |||
10000/10000<br><br> | |||
Code:<br> | |||
"test" select [0,4]<br><br> | |||
Result:<br> | |||
'''0.013 ms'''<br><br> | |||
Cycles:<br> | |||
10000/10000<br><br> | |||
Code:<br> | |||
["test",0,4] call BIS_fnc_trimString | |||
</dd> | |||
</dl> | |||
<!-- DISCONTINUE Notes --> |
Revision as of 17:45, 24 August 2017
Description
- Description:
/* Description: Get a substring out of the string. Parameter(s): 1: STRING - source string 2: NUMBER (optional, default 0) - start index; * indexing starts at 0 3: NUMBER (optional, default end of string) - end index * negative number means -X chars from the string end Returns: STRING */
(Placeholder description extracted from the function header by BIS_fnc_exportFunctionsToWiki)- Execution:
- call
- Groups:
- Uncategorised
Syntax
- Syntax:
- Syntax needed
- Return Value:
- Return value needed
Examples
- Example 1:
hint (["dreaded_is_the_man", 0, 6] call BIS_fnc_trimString);
This will show a hint with "dreaded"- Example 2:
hint (["dreaded_is_the_man", 15] call BIS_fnc_trimString);
This will show a hint with "man"
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
Notes
Bottom Section
- Posted on August 24, 2017 - 15:45 (UTC)
- Revo
-
Result:
0.0007 ms
Cycles:
10000/10000
Code:
"test" select [0,4]
Result:
0.013 ms
Cycles:
10000/10000
Code:
["test",0,4] call BIS_fnc_trimString