FolkerKinzel.Strings Namespace

Contains classes that provide extension methods for String, Char, StringBuilder and ReadOnlySpan<Char>.

Classes

Base64Static class that provides methods to encode and decode strings in Base64 format.
CharExtensionExtension methods for the Char struct.
Confidentiality Static class that allows customizing the library's behavior when highly confidential data needs to be processed.
DecoderValidationFallback Provides a failure-handling mechanism, called a fallback, for an encoded input byte sequence that cannot be converted to an output character. The fallback emits a replacement character � (U+FFFD, "REPLACEMENT CHARACTER") instead of a decoded input byte sequence and informs in its property HasError whether an error has occurred.
EncodingExtensionExtension methods for the Encoding class.
FileInfoExtension Extension methods for the FileInfo class.
MemoryPolyfillExtensionExtension methods for the Memory<Char> struct, which are used in .NET Framework 4.6.2, .NET Standard 2.0 and .NET Standard 2.1 as polyfills for methods from current .NET versions.
ReadOnlyMemoryPolyfillExtensionExtension methods for the ReadOnlyMemory<Char> struct, which are used in .NET Framework 4.6.2, .NET Standard 2.0 and .NET Standard 2.1 as polyfills for methods from current .NET versions.
ReadOnlySpanExtensionExtension methods for the ReadOnlySpan<Char> struct.
ReadOnlySpanExtensionPolyfillExtensionExtension methods, which act as Polyfills for the extension methods of the ReadOnlySpanExtension class.
ReadOnlySpanPolyfillExtensionExtension methods for the ReadOnlySpan<Char> struct, which are used as polyfills for methods from current .NET versions.
SearchValuesPolyfill The class is a polyfill for the System.Buffers.SearchValues class.
SearchValuesPolyfillT The class is a polyfill for the System.Buffers.SearchValues<Char> class. It hasn't the same excellent performance as the System.Buffers.SearchValues<T> class when used with framework versions lower than .NET 8.0.
SpanExtensionExtension methods for the Span<Char> struct.
SpanPolyfillExtensionExtension methods for the Span<Char> struct used in the .NET Framework, .NET Standard 2.0, and .NET Standard 2.1 as polyfills for methods from current .NET versions.
StaticStringMethodSimulates static methods of the String class for .NET versions in which they are not available, and forwards the method calls in .NET versions in which the methods are available directly to the BCL methods.
StreamExtensionExtension methods for the Stream class.
StringBuilderExtensionExtension methods for the StringBuilder class.
StringBuilderExtensionPolyfillExtension Extension methods, which act as Polyfills for the extension methods of the StringBuilderExtension class.
StringBuilderPolyfillExtensionExtension methods for the StringBuilder class, which are used in .NET Framework and .NET Standard 2.0 as polyfills for methods from current .NET versions.
StringExtensionExtension methods for the String class.
StringExtensionPolyfillExtension Extension methods, which act as Polyfills for the extension methods of the StringExtension class.
StringPolyfillExtensionExtension methods for the String class, which are used as polyfills for methods from current .NET versions.
TextEncodingConverterEncapsulates methods that support creating appropriate instances of the Encoding class.
TextWriterPolyfillExtensionExtension methods for the TextWriter class, which are used in .NET Framework and .NET Standard 2.0 as polyfills for methods from current .NET versions.
UrlEncodingStatic class that provides methods for handling URL encoding (RFC 3986).

Structures

PersistentStringHash Combines the hash code for multiple character based values into a single persistent hash code.
SpanLineEnumeratorPolyfill Enumerates the lines of a read-only character span.

Enumerations

Base64ParserOptionsNamed constants to specify options for the parsing of Base64-encoded strings. The flags can be combined.
HashTypeNamed constants to specify the type of hashcode for Char sequences.