public string ExportLine(WordLibrary wl) { var sb = new StringBuilder(); sb.Append(WubiHelper.GetStringWubi86Code(wl.Word)); sb.Append(" "); sb.Append(wl.Word); return(sb.ToString()); }
public string GetCodeOfChar(char str) { return(WubiHelper.GetWubi86Code(str)); }
public IList <string> GetCodeOfString(string str) { return(new List <string> { WubiHelper.GetStringWubi86Code(str) }); }
public void PhraseConvertTest(string input, string code) { var codes = WubiHelper.ConvertPhraseAsSingleCode(input, OutputStyle.LowerCase); Assert.Equal(code, codes); }
public void SingleCharacterConvertTest(char input, string code) { var codes = WubiHelper.ConvertSingleCharacter(input, false, OutputStyle.LowerCase); Assert.Equal(code, codes.FirstOrDefault()); }