string.TrimRight
From GMod Wiki
Function | |
Syntax |
string.TrimRight( String string [, String char] ) Where is this used? |
Description: | |
Removes ending white spaces from a string. | |
Returns: | String |
Part of Library: | String |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=String.TrimRight]String.TrimRight [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Example
Description | Trims the white space off the right side of the string. |
---|---|
Used on | |
Code | print( string.TrimRight(" Test ") ) |
Output | " Test" |
Additional Notes
- If char is specified, the string gets that character trimmed off instead of a space.