StringExtensionsSpanExcluding Method |
Extracts the span of characters from the beginning of the specified string up to,
but excluding, the first character that is in the set of characters to exclude.
If so such characters are found, the entire string is returned.
The behaviour is the sames as the C++ CString::SpanExcluding() method.
Namespace:
NetQuarry
Assembly:
EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax public static string SpanExcluding(
this string s,
string chars
)
<ExtensionAttribute>
Public Shared Function SpanExcluding (
s As String,
chars As String
) As String
Parameters
- s
- Type: SystemString
The string to scan. - chars
- Type: SystemString
The set of characters to exclude.
Return Value
Type:
StringThe portion of the string from start up to, but not including, the first character 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