System::String::Trim method

String::Trim() const method

Removes all whitespace characters from both beginning and end of the string.

String System::String::Trim() const

ReturnValue

String with no whitespaces at beginning or end.

See Also

String::Trim(char_t) const method

Removes all occurrences of passed character from both beginning and end of the string.

String System::String::Trim(char_t ch) const
ParameterTypeDescription
chchar_tSymbol to remove.

ReturnValue

Removal result.

See Also

String::Trim(const String&) const method

Removes all occurrences of passed characters from both beginning and end of the string.

String System::String::Trim(const String &anyOf) const
ParameterTypeDescription
anyOfconst String&String of characters to remove.

ReturnValue

String without removed characters.

See Also

String::Trim(const ArrayPtr<char_t>&) const method

Removes all occurrences of passed characters from both beginning and end of the string.

String System::String::Trim(const ArrayPtr<char_t> &anyOf) const
ParameterTypeDescription
anyOfconst ArrayPtr<char_t>&Array of characters to remove.

ReturnValue

String without removed characters.

See Also