strTrimTrailing function


strTrimTrailing String

strTrimTrailing (String str)

Removes tabs and spaces at the end of the input string. Tabs and spaces before the last non-whitespace character are not affected.

Parameters:

str - string to be processed

Returns:

A string with the whitespace at the end of the string removed.

Example:

Example

str = ' This is an example string '
str2 = strTrimTrailing(str)
// str2 is ' This is an example string'

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*