StringSegmentTrim(Char) Method
Removes all leading and trailing occurrences of a set of characters specified in an array from the current
StringSegment.
Namespace: KGySoft.CoreLibrariesAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 9.0.0-preview.1
public StringSegment Trim(
params char[]? trimChars
)
Public Function Trim (
ParamArray trimChars As Char()
) As StringSegment
public:
StringSegment Trim(
... array<wchar_t>^ trimChars
)
member Trim :
trimChars : char[] -> StringSegment
- trimChars Char
- The characters to remove. If or empty, then whitespace characters will be removed.
StringSegmentA
StringSegment that represents the string that remains after all occurrences of the characters
in the
trimChars parameter are removed from the start and end of the current
StringSegment.