StringHelper.Net
1.6.0
dotnet add package StringHelper.Net --version 1.6.0
NuGet\Install-Package StringHelper.Net -Version 1.6.0
<PackageReference Include="StringHelper.Net" Version="1.6.0" />
<PackageVersion Include="StringHelper.Net" Version="1.6.0" />
<PackageReference Include="StringHelper.Net" />
paket add StringHelper.Net --version 1.6.0
#r "nuget: StringHelper.Net, 1.6.0"
#addin nuget:?package=StringHelper.Net&version=1.6.0
#tool nuget:?package=StringHelper.Net&version=1.6.0
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. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
-
net6.0
- FlowEncrypt (>= 1.1.0)
- Multithreading_Library (>= 2.5.1)
-
net7.0
- FlowEncrypt (>= 1.1.0)
- Multithreading_Library (>= 2.5.1)
-
net8.0
- FlowEncrypt (>= 1.1.0)
- Multithreading_Library (>= 2.5.1)
-
net9.0
- FlowEncrypt (>= 1.1.0)
- Multithreading_Library (>= 2.5.1)
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.6.0
Added NamedToken Namespace, useful for tagging and string deduplication
1.5.3
Add decaying ngram score
Add Progressing NgramRepetitionScore for calculating repetition on the fly
1.5.0
- addsome string calculations (levenshtein distance and ngram repetition score
1.4.9
add variance counter
1.4.8
- several updates and fixes to wordfilter
1.4.0
add word filter functions which can check for wordsequences efficiently by building a decision tree
1.3.4
- add tagize function
1.3.3
- Add chunk string function
1.3.0
Added taggize function
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