StringExtensions Class
Namespace
Statiq.Common
Base Types
  • object
StringExtensions
object

Syntax

public static class StringExtensions

Methods

Name Return Value Summary
RemoveEnd(string, string, StringComparison) string
static
RemoveEnd(string, string) string
static
RemoveHtmlAndSpecialChars(string, string) string
Removes HTML and special characters from a string and collapses adjacent spaces to a single space.
static
RemoveStart(string, string, StringComparison) string
static
RemoveStart(string, string) string
static
ToKebab(string) string
static
ToLowerCamelCase(string) string
static
ToMemory(string) Memory<char>
Allocates a Memory<T> and copies the characters of the string into it.
static
ToSpan(string) Span<char>
Allocates a Span<T> and copies the characters of the string into it.
static