StringExtensionPolyfillExtension Class

Extension methods, which act as Polyfills for the extension methods of the StringExtension class.

Definition

Namespace: FolkerKinzel.Strings
Assembly: FolkerKinzel.Strings (in FolkerKinzel.Strings.dll) Version: 9.4.0+10a7d4d71aa960998e32ac0ac6c4fcbe4164c917
C#
public static class StringExtensionPolyfillExtension
Inheritance
Object    StringExtensionPolyfillExtension

Remarks

The polyfills are available for .NET Framework 4.5 and .NET Standard 2.0.

Methods

ContainsAnyIndicates whether a String contains one of the Unicode characters that are passed to the method in a read-only span.
IndexOfAny(String, String)Returns the zero-based index of the first occurrence of one of the the specified characters in s.
IndexOfAny(String, String, Int32)Returns the zero-based index of the first occurrence of one of the the specified characters in s. The search starts at the specified startIndex.
IndexOfAny(String, String, Int32, Int32)Returns the zero-based index of the first occurrence of one of the the specified characters in s. The search begins at a specified index and a specified number of character positions are checked.
LastIndexOfAny(String, String)Returns the zero-based index position of the last occurrence of one of the specified characters in s.
LastIndexOfAny(String, String, Int32)Returns the zero-based index position of the last occurrence of one of the specified characters in s. The search starts at the specified startIndex and runs backwards to the beginning of s.
LastIndexOfAny(String, String, Int32, Int32)Returns the zero-based index position of the last occurrence of one of the specified characters in s. The search begins at a specified index and runs backwards to the beginning of the String for a specified number of character positions.
ReplaceWhiteSpaceWithGenerates a String in which all sequences of white space are replaced by replacement.

See Also