CBA_fnc_trim

Description

Trims specified characters (all whitespace by default) from the both ends of a string.

See CBA_fnc_leftTrim and CBA_fnc_rightTrim.

Parameters

_stringString to trim [String]
_trimCharacters to trim [String] (default: “”)

Returns

Trimmed string [String]

Example

_result = [" frogs are fishy   "] call CBA_fnc_trim;
// _result => "frogs are fishy"

Author

Spooner, SilentSpike

Trims specified characters (all whitespace by default) from the left end of a string.
Trims specified characters (all whitespace by default) from the right end of a string.
Close