| StringUtilitiesTrimEnd Method |
Trims off any character contained in the trimCharacters from the
end of the specified string s, and returns the remainder, as well
as the trimmed-off suffix in trimmedSuffix. If either s
or trimCharacters are null or empty, the result will be equal
to sand trimmedSuffix will be null.
Namespace: Sdl.LanguagePlatform.CoreAssembly: Sdl.LanguagePlatform.Core (in Sdl.LanguagePlatform.Core.dll) Version: 1.6.0.0 (1.7.3164.0)
Syntaxpublic static string TrimEnd(
string s,
char[] trimCharacters,
out string trimmedSuffix
)
Public Shared Function TrimEnd (
s As String,
trimCharacters As Char(),
<OutAttribute> ByRef trimmedSuffix As String
) As String
public:
static String^ TrimEnd(
String^ s,
array<wchar_t>^ trimCharacters,
[OutAttribute] String^% trimmedSuffix
)
static member TrimEnd :
s : string *
trimCharacters : char[] *
trimmedSuffix : string byref -> string
Parameters
- s
- Type: SystemString
The input string - trimCharacters
- Type: SystemChar
The set of characters to trim off at the start of s. - trimmedSuffix
- Type: SystemString
If any characters have been trimmed off, this out parameter will
contain the trimmed-off suffix. If no characters have been trimmed off, this out parameter will
be null.
Return Value
Type:
StringThe remainder of
s after trimming off the specified trim characters from the end.
See Also
Comments