StringExtensionsSpanIncluding Method |
Extracts the span of characters at the beginning of the specified string that are
in the set of specified characters.
The behaviour is the sames as the C++ CString::SpanIncluding() method.
Namespace:
NetQuarry
Assembly:
EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax public static string SpanIncluding(
this string s,
string chars
)
<ExtensionAttribute>
Public Shared Function SpanIncluding (
s As String,
chars As String
) As String
Parameters
- s
- Type: SystemString
The string to scan. - chars
- Type: SystemString
The set of characters to include.
Return Value
Type:
StringThe portion of the string from start up to, but not including, the first character not in chars.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
String. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also