| CharacterPropertiesGetPrefixLength Method |
Computes and returns the length of the prefix of the provided string s where each
character satisfies the provided predicate.
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,
Predicate<char> predicate
)
Public Shared Function GetPrefixLength (
s As String,
predicate As Predicate(Of Char)
) As Integer
public:
static int GetPrefixLength(
String^ s,
Predicate<wchar_t>^ predicate
)
static member GetPrefixLength :
s : string *
predicate : Predicate<char> -> int
Parameters
- s
- Type: SystemString
[Missing <param name="s"/> documentation for "M:Sdl.LanguagePlatform.Core.CharacterProperties.GetPrefixLength(System.String,System.Predicate{System.Char})"]
- predicate
- Type: SystemPredicateChar
[Missing <param name="predicate"/> documentation for "M:Sdl.LanguagePlatform.Core.CharacterProperties.GetPrefixLength(System.String,System.Predicate{System.Char})"]
Return Value
Type:
Int32[Missing <returns> documentation for "M:Sdl.LanguagePlatform.Core.CharacterProperties.GetPrefixLength(System.String,System.Predicate{System.Char})"]
See Also
Comments