mirror of
https://github.com/tonytins/cstdotnet.git
synced 2026-02-10 12:14:47 -05:00
Rewrote normalizing algorithm
The mormalizing algorithm was rewritten to be more efficient and hopefully more reliable. See changelog.md for more info.
This commit is contained in:
parent
ccb4da5b86
commit
cd95b7c6ae
16 changed files with 313 additions and 183 deletions
16
CSTNet.Tests/CSTHelper.cs
Normal file
16
CSTNet.Tests/CSTHelper.cs
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
using System;
|
||||
using System.IO;
|
||||
|
||||
namespace CSTNet.Tests
|
||||
{
|
||||
static class CSTHelper
|
||||
{
|
||||
public static string CSTFile(string cst, string key)
|
||||
{
|
||||
var path = Path.Combine(AppContext.BaseDirectory, cst);
|
||||
var file = File.ReadAllText(path);
|
||||
|
||||
return CaretSeparatedText.Parse(file, key);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue