Skip to content

String Builder Extensions is a set of extension methods for System.Text.StringBuilder that provide the same functionality as corresponding methods of System.String.

License

Notifications You must be signed in to change notification settings

xperiandri/StringBuilderExtensions

Repository files navigation

String Builder Extensions


String Builder Extensions is a set of extension methods for System.Text.StringBuilder that provide the same functionality as corresponding methods of System.String.

Available methods are:

  • Remove - Removes all occurences of specified characters from StringBuilder.
  • Remove - Removes the range of characters from the specified index to the end of StringBuilder.
  • StartsWith - Determines whether this instance of StringBuilder starts with the specified string.
  • EndWith - Determines whether this instance of StringBuilder ends with the specified string.
  • IndexOf (6 overrides) - Reports the zero-based index position of the first occurrence of the specified Unicode character within this instance.
  • LastIndexOf (6 overrides) - Reports the zero-based index of the last occurrence of the specified string in the current StringBuilder object.
  • IndexOfAny (3 overrides) - Reports the zero-based index of the first occurrence in this instance of any character in a specified array of Unicode characters.
  • LastIndexOfAny (3 overrides) - Reports the zero-based index of the last occurrence in this instance of any character in a specified array of Unicode characters.
  • Trim (2 overrides) - Removes all leading and trailing occurrences of a set of characters specified in an array from the current StringBuilder object.
  • TrimStart - Removes all leading occurrences of a set of characters specified in an array from the current StringBuilder object.
  • TrimEnd - Removes all trailing occurrences of a set of characters specified in an array from the current StringBuilder object.
  • ToLower (2 overrides) - Returns a StringBuilder converted to lowercase, using the casing rules of the specified culture.
  • ToLowerInvariant - Returns a StringBuilder converted to lowercase, using the casing rules of the invarian culture.
  • ToUpper (2 overrides) - Returns a StringBuilder converted to uppercase, using the casing rules of the specified culture.
  • ToUpperInvariant - Returns a StringBuilder converted to uppercase, using the casing rules of the invariant culture.

NuGet

The package is available on NuGet. Use PM> Install-Package XperiAndri.StringBuilderExtensions -Pre command to install.

License

See the license.md file for details.

About

String Builder Extensions is a set of extension methods for System.Text.StringBuilder that provide the same functionality as corresponding methods of System.String.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages