DEV Community

Antyss77
Antyss77

Posted on

StringExtension - A C# library that provides utility methods for manipulating strings.

🚀 StringExtension has evolved a lot!

I previously shared StringExtension, my open-source C# library for string processing. Also available on NuGet.

Since then, I've made a major update to the project:

New string casing utilities

  • ToPascalCase
  • ToCamelCase
  • ToSnakeCase
  • ToKebabCase
  • ToTitleCase
  • Slugify

🌍 Better Unicode support
String classification and casing now operate on Unicode scalar values using .NET Rune, including characters outside the BMP.

Performance improvements

  • ReadOnlySpan<char> overloads
  • reduced allocations
  • ArrayPool for large buffers
  • optimized implementations
  • performance benchmarks

🏗️ Cleaner architecture
String operations are now organized into dedicated namespaces such as Validation, Linguistics and Casing.

The project also has unit tests, benchmarks, and is now targeting .NET 10.

I'm still improving it and would love to see more developers discover, use and contribute to it.

⭐ If you find it useful, a GitHub star would really help the project gain visibility!

👉 https://github.com/Antyss77/StringExtension

csharp #dotnet #opensource #nuget #stringmanipulation

Top comments (0)