StringHelper.Net
1.0.1
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package StringHelper.Net --version 1.0.1
NuGet\Install-Package StringHelper.Net -Version 1.0.1
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="StringHelper.Net" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add StringHelper.Net --version 1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: StringHelper.Net, 1.0.1"
#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.
// Install StringHelper.Net as a Cake Addin #addin nuget:?package=StringHelper.Net&version=1.0.1 // Install StringHelper.Net as a Cake Tool #tool nuget:?package=StringHelper.Net&version=1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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 was computed. 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net6.0
- No dependencies.
-
net7.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.
target .net 6 & 7