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
- Host: GitHub
- URL: https://github.com/cschen1205/cs-text-utility
- Owner: cschen1205
- License: mit
- Created: 2018-04-29T06:02:03.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-04-30T04:06:12.000Z (almost 7 years ago)
- Last Synced: 2024-04-28T23:35:59.630Z (12 months ago)
- Topics: encoding, levenshtein-distance, string-utility
- Language: C#
- Size: 31.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: ReadMe.md
- License: LICENSE
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));
}
}
}```