An open API service indexing awesome lists of open source software.

https://github.com/cschen1205/cs-text-utility

.NET library that provides utility for tasks such as decoding detection and Levenshtein distance calculation
https://github.com/cschen1205/cs-text-utility

encoding levenshtein-distance string-utility

Last synced: 30 days ago
JSON representation

.NET library that provides utility for tasks such as decoding detection and Levenshtein distance calculation

Awesome Lists containing this project

README

        

# cs-text-utility

# Install

```bash
Install-Package cs-text-utility
```

# Usage

The sample code of usage below:

```cs
using System;
namespace TextUtility
{
class Program
{
static void Main(string[] args)
{
string s1 = "Hello World";
string s2 = "Hello. How are you?";
Console.WriteLine("Distance: {0}", LevenshteinDistance.Compute(s1, s2));

string original = s2;
string encoded = TextUtil.EncodeTo64(original);
Console.WriteLine("Encoded: {0}", encoded);
Console.WriteLine("Decoded: {0}", TextUtil.DecodeFrom64(encoded));
}
}
}

```