StringHelper.Net
1.2.7
dotnet add package StringHelper.Net --version 1.2.7
NuGet\Install-Package StringHelper.Net -Version 1.2.7
<PackageReference Include="StringHelper.Net" Version="1.2.7" />
paket add StringHelper.Net --version 1.2.7
#r "nuget: StringHelper.Net, 1.2.7"
// Install StringHelper.Net as a Cake Addin #addin nuget:?package=StringHelper.Net&version=1.2.7 // Install StringHelper.Net as a Cake Tool #tool nuget:?package=StringHelper.Net&version=1.2.7
StringHelper.Net
StringHelper.Net is a .NET library that provides helpful functions for working with strings. It contains the following classes:
- InvariantString: Provides functions for cleaning and normalizing strings that may have come from user input.
- NumberFormatting: Converts numbers (such as currency) to appropriate string outputs.
- StringFunctions: Provides functions for quick matching, trimming, and line counting.
- TextFileFunctions: Allows for converting file encodings and fetching a specific number of lines from a text file.
- UTF8_Quickdecode: Converts a UTF8 encoded char.
Usage
To use StringHelper.Net in your project, install it via NuGet:
Install-Package StringHelper.Net
You can then use the various functions provided by the library in your code. Here are a few examples:
using StringHelper.Net;
public void InvaryString_Test()
{
string sample = " Alföns Frènke ";
string result = InvariantString.InvaryString(sample, true);
if (result != "alfoens frenke")
{
throw new Exception($"{result} should be alfoens frenke");
}
}
public void RemoveCharacters()
{
string sample = " Alföns Frènke. Öpper Drüpper";
string result = InvariantString.RemoveCharacters(sample, new[] {'ö','p'} );
if (result != " Alfns Frènke. Öer Drüer")
{
throw new Exception($"'{result}' should be ' Alfns Frènke. Öer Drüer'");
}
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net6.0
- No dependencies.
-
net7.0
- No dependencies.
-
net8.0
- No dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on StringHelper.Net:
Package | Downloads |
---|---|
QuickCsv.Net
a lightweight library to handle csv tables and files. All fields are handled as text |
GitHub repositories
This package is not used by any popular GitHub repositories.
1.2.7
- updated FindJsonInText
1.2.6
- small update on json extractor
1.2.5
- add unit tests for json finder, fix json finder function
1.2.3
- added function to find a json in text
1.2.1
- expanded the invary string function with optional white space replacement and optional deduplication of characters
1.1.0
- implement character occurrence counting
- add .net 8 targeting
1.0.1
target .net 6 & 7