| StringUtilitiesGetPrefixLength Method |
Computes the length of the prefix of s which entirely consists
of characters in prefixChars. If either of the parameters is
null or empty, 0 is returned.
Namespace: Sdl.LanguagePlatform.CoreAssembly: Sdl.LanguagePlatform.Core (in Sdl.LanguagePlatform.Core.dll) Version: 1.6.0.0 (1.7.3164.0)
Syntaxpublic static int GetPrefixLength(
string s,
char[] prefixChars
)
Public Shared Function GetPrefixLength (
s As String,
prefixChars As Char()
) As Integer
public:
static int GetPrefixLength(
String^ s,
array<wchar_t>^ prefixChars
)
static member GetPrefixLength :
s : string *
prefixChars : char[] -> int
Parameters
- s
- Type: SystemString
The string - prefixChars
- Type: SystemChar
The set of prefix characters
Return Value
Type:
Int32The length of the prefix of
s which entirely consists
of characters contained in
prefixChars
See Also
Comments