StringTrimRight

The function cuts line feed characters, spaces and tabs in the right part of the string after the last meaningful symbol. The string is modified at place.

int  StringTrimRight(
   string&  string_var      // string to cut
   );

Parameters

string_var

[in][out]  String that will be cut from the right.

Return Value

Returns the number of cut symbols.

See also

StringTrimLeft, StringToLower, StringToUpper