Click or drag to resize
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.Core
Assembly: Sdl.LanguagePlatform.Core (in Sdl.LanguagePlatform.Core.dll) Version: 1.6.0.0 (1.7.3164.0)
Syntax
public static int GetPrefixLength(
	string s,
	char[] prefixChars
)

Parameters

s
Type: SystemString
The string
prefixChars
Type: SystemChar
The set of prefix characters

Return Value

Type: Int32
The length of the prefix of s which entirely consists of characters contained in prefixChars
See Also
Community
Edit

Be the first to Edit the community content of this topic.
Comments