DEV Community

Antyss77
Antyss77

Posted on • Edited on

String manipulation with StringExtension in C#

StringExtension is a string processing library for the C# programming language. It provides features to manipulate and transform strings in a simple and efficient way. The library is open-source and comes with unit tests and performance tests. It is designed to be easily integrated into your existing projects. Feel free to contribute to the project with ideas or development expertise.

Preview of the StringExtension project on Github

If you don't have any ideas to contribute to the project you can follow me and give a star to the project that will make it known and move the project forward, thanks!

Top comments (1)

Collapse
 
antyss77 profile image
Antyss77

🚀 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!

👉 github.com/Antyss77/StringExtension

csharp #dotnet #opensource #nuget #stringmanipulation