Soenneker.Utils.Case 11.0.124

Prefix Reserved
dotnet add package Soenneker.Utils.Case --version 11.0.124
                    
NuGet\Install-Package Soenneker.Utils.Case -Version 11.0.124
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Soenneker.Utils.Case" Version="11.0.124" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Utils.Case" Version="11.0.124" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Utils.Case" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Soenneker.Utils.Case --version 11.0.124
                    
#r "nuget: Soenneker.Utils.Case, 11.0.124"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Soenneker.Utils.Case@11.0.124
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Soenneker.Utils.Case&version=11.0.124
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Utils.Case&version=11.0.124
                    
Install as a Cake Tool

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

alternate text is missing from this package README image Soenneker.Utils.Case

High performance case transformation utility methods

Installation

dotnet add package Soenneker.Utils.Case

Usage

using Soenneker.Utils.Case;

All conversions use a single tokenizer internally, then format into the target case.

Core methods

  • ToKebab(ReadOnlySpan<char>) - Lowercase words joined with -.
  • ToSnake(ReadOnlySpan<char>) - Lowercase words joined with _.
  • ToUpperSnake(ReadOnlySpan<char>) - Uppercase words joined with _.
  • ToDot(ReadOnlySpan<char>) - Lowercase words joined with ..
  • ToFlat(ReadOnlySpan<char>) - Lowercase words with no separator.
  • ToPath(ReadOnlySpan<char>) - Lowercase words joined with /.
  • ToSpace(ReadOnlySpan<char>) - Lowercase words joined with spaces.
  • ToTrain(ReadOnlySpan<char>) - Title-style words joined with -.
  • ToPascal(ReadOnlySpan<char>) - PascalCase while preserving recognized acronyms.
  • ToCamel(ReadOnlySpan<char>) - camelCase while preserving recognized acronyms after the first word.
  • ToTitle(ReadOnlySpan<char>, CultureInfo? culture = null) - Title-style words separated by spaces using the requested culture.
  • ToTitle(string? value, CultureInfo? culture = null) - String overload of ToTitle; null input is handled without requiring a span.
  • NormalizeKebab(ReadOnlySpan<char>) - Trims leading/trailing dashes and collapses repeated dashes without retokenizing or changing character casing.

Example

const string input = "HTTPServer_v2 parser";

CaseUtil.ToKebab(input);      // "http-server-v2-parser"
CaseUtil.ToSnake(input);      // "http_server_v2_parser"
CaseUtil.ToUpperSnake(input); // "HTTP_SERVER_V2_PARSER"
CaseUtil.ToDot(input);        // "http.server.v2.parser"
CaseUtil.ToFlat(input);       // "httpserverv2parser"
CaseUtil.ToPath(input);       // "http/server/v2/parser"
CaseUtil.ToSpace(input);      // "http server v2 parser"
CaseUtil.ToTrain(input);      // "HTTP-Server-V2-Parser"
CaseUtil.ToPascal(input);     // "HTTPServerV2Parser"
CaseUtil.ToCamel(input);      // "httpServerV2Parser"
CaseUtil.ToTitle(input);      // "HTTP Server V2 Parser"
Product Compatible and additional computed target framework versions.
.NET net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Soenneker.Utils.Case:

Package Downloads
Soenneker.Blazor.TomSelect

A Blazor interop library for the select user control library, Tom Select

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
11.0.124 416 11/11/2026
11.0.123 107 11/11/2026
11.0.122 165 11/11/2026
11.0.121 180 11/11/2026
11.0.120 99 11/11/2026
11.0.119 937 11/3/2026
11.0.118 232 11/3/2026
11.0.117 257 11/2/2026
11.0.116 877 10/26/2026
4.0.115 1,357 10/15/2026
4.0.114 158 10/14/2026
4.0.112 204 10/14/2026
4.0.111 291 10/14/2026
4.0.110 164 10/14/2026
4.0.104 244 10/13/2026
4.0.101 704 10/12/2026
4.0.100 121 10/11/2026
4.0.99 125 10/11/2026
4.0.98 1,689 9/30/2026
4.0.97 799 9/25/2026
Loading failed

Updated Soenneker.Extensions.String to 11.0.820