コード例 #1
0
        public override void createFileTranslateDocument()
        {
            txtProc txtProc = new txtProc();

            if (this.content.Length > 0)
            {
                foreach (Segment a in listSegments)
                {
                    tm tmp = a.getTM();
                    if (tmp.Target != null)
                    {
                        if (tmp.Target.Trim() != "")
                        {
                            this.content = txtProc.ReplaceFirst(this.content, tmp.Source, tmp.Target);
                        }
                    }
                }
            }
        }
コード例 #2
0
        public string replaceContent()
        {
            txtProc txtProc        = new txtProc();
            string  contentReplace = this.content;

            if (this.content.Length > 0)
            {
                foreach (Segment a in listSegments)
                {
                    tm tmp = a.getTM();
                    if (tmp.Target != null)
                    {
                        if (tmp.Target.Trim() != "")
                        {
                            contentReplace = txtProc.ReplaceFirst(contentReplace, tmp.Source, tmp.Target);
                        }
                    }
                }
            }
            return(contentReplace);
        }