Exemple #1
0
        public string ExportLine(WordLibrary wl)
        {
            var sb = new StringBuilder();

            sb.Append(WubiHelper.GetStringWubi86Code(wl.Word));
            sb.Append(" ");
            sb.Append(wl.Word);

            return(sb.ToString());
        }
Exemple #2
0
 public string GetCodeOfChar(char str)
 {
     return(WubiHelper.GetWubi86Code(str));
 }
Exemple #3
0
 public IList <string> GetCodeOfString(string str)
 {
     return(new List <string> {
         WubiHelper.GetStringWubi86Code(str)
     });
 }
Exemple #4
0
        public void PhraseConvertTest(string input, string code)
        {
            var codes = WubiHelper.ConvertPhraseAsSingleCode(input, OutputStyle.LowerCase);

            Assert.Equal(code, codes);
        }
Exemple #5
0
        public void SingleCharacterConvertTest(char input, string code)
        {
            var codes = WubiHelper.ConvertSingleCharacter(input, false, OutputStyle.LowerCase);

            Assert.Equal(code, codes.FirstOrDefault());
        }