cstdotnet/CSTNet.Tests/CSTHelper.cs
Tony Bark cd95b7c6ae Rewrote normalizing algorithm
The mormalizing algorithm was rewritten to be more efficient and hopefully more reliable. See changelog.md for more info.
2020-12-11 01:05:46 -05:00

16 lines
351 B
C#

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);
}
}
}