Beispiel #1
0
        private Mx.bitbase <enrWORD> .table_row Split_WordList(string ur_input)
        {
            var ret_words = new Mx.bitbase <enrWORD> .table_row();

            if (ur_input.Length == 0)
            {
                ret_words.Persist_Read(@"C:\Users\Dad\Downloads\2021m10d31 ASLSJ Parse\SampleData.tsv");
                foreach (var row in ret_words)
                {
                    row[enrWORD.word] = row[enrWORD.word].Replace(char.ConvertFromUtf32(8211).ToString(), "--").Trim();
                }
            }
            else
            {
                foreach (var entry in ur_input.Split('\n'))
                {
                    if (string.IsNullOrWhiteSpace(entry) == false)
                    {
                        ret_words.add_row()[enrWORD.word] = entry.Replace(char.ConvertFromUtf32(8211).ToString(), "--").Trim();
                    }
                }
            }

            return(ret_words);
        }
Beispiel #2
0
 void Append_Syll(
     ref int ref_syll_seq,
     System.Text.StringBuilder ur_stp_syll,
     enrSYLL_DSCR ur_syll_dscr,
     Mx.bitbase <enrSYLL> .table_row ur_sylls,
     Mx.bitbase <enrWORD> .row_enum ur_word_rec)
 {
     if (ur_stp_syll.Length > 0)
     {
         var last_syll = ur_sylls.add_row();
         ref_syll_seq                += 1;
         last_syll[enrSYLL.word]      = ur_word_rec[enrWORD.word];
         last_syll[enrSYLL.syll_seq]  = ref_syll_seq.ToString();
         last_syll[enrSYLL.syll_text] = ur_stp_syll.ToString();
         last_syll[enrSYLL.syll_dscr] = ur_syll_dscr.pname;
         ur_stp_syll.Clear();
     }
 }