| StringUtilitiesTrimStart Method |
Trims off any character contained in the trimCharacters from the
start of the specified string s, and returns the remainder, as well
as the trimmed-off prefix in trimmedPrefix. If either s
or trimCharacters are null or empty, the result will be equal
to sand trimmedPrefix 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 TrimStart(
string s,
char[] trimCharacters,
out string trimmedPrefix
)
Public Shared Function TrimStart (
s As String,
trimCharacters As Char(),
<OutAttribute> ByRef trimmedPrefix As String
) As String
public:
static String^ TrimStart(
String^ s,
array<wchar_t>^ trimCharacters,
[OutAttribute] String^% trimmedPrefix
)
static member TrimStart :
s : string *
trimCharacters : char[] *
trimmedPrefix : 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. - trimmedPrefix
- Type: SystemString
If any characters have been trimmed off, this out parameter will
contain the trimmed-off prefix. 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 start.
See Also
Comments