mirror of
https://github.com/tonytins/cstdotnet.git
synced 2025-03-21 08:01:21 +00:00
The mormalizing algorithm was rewritten to be more efficient and hopefully more reliable. See changelog.md for more info.
16 lines
351 B
C#
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);
|
|
}
|
|
}
|
|
}
|