StringHelper.Net 1.1.0

dotnet add package StringHelper.Net --version 1.1.0
NuGet\Install-Package StringHelper.Net -Version 1.1.0
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.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add StringHelper.Net --version 1.1.0
#r "nuget: StringHelper.Net, 1.1.0"
#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.1.0

// Install StringHelper.Net as a Cake Tool
#tool nuget:?package=StringHelper.Net&version=1.1.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 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. 
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.
  • 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.

Version Downloads Last updated
1.1.0 86 3/28/2024
1.0.1 939 1/25/2023
1.0.0 305 1/9/2023

1.1.0
- implement character occurrence counting
- add .net 8 targeting

1.0.1
target .net 6 & 7