コード例 #1
0
        public override void Read(NghtsBdlbthhur nghtsBdlbthhur)
        {
            //如果包含 http
            int    mjtxyLxnavpxoj = 0;
            string nqPnwjadvxs    = nghtsBdlbthhur.Str;

            var qrzpElod = "http";

            while (mjtxyLxnavpxoj < nqPnwjadvxs.Length)
            {
                var sGuhnSym = nqPnwjadvxs.Substring(mjtxyLxnavpxoj);
                int n        = sGuhnSym.ToLower().IndexOf(qrzpElod);
                if (n < 0)
                {
                    return;
                }

                var wjaljxoSjxhta = TpldbzAqyw(sGuhnSym, n);
                if (wjaljxoSjxhta.pldbzAqyw)
                {
                    mjtxyLxnavpxoj = mjtxyLxnavpxoj + n;
                    nqPnwjadvxs    = Replace(nqPnwjadvxs, mjtxyLxnavpxoj, wjaljxoSjxhta.n, wjaljxoSjxhta.str);
                    mjtxyLxnavpxoj = mjtxyLxnavpxoj + wjaljxoSjxhta.str.Length;
                }
                else
                {
                    mjtxyLxnavpxoj = mjtxyLxnavpxoj + wjaljxoSjxhta.n;
                }
            }

            nghtsBdlbthhur.Str = nqPnwjadvxs;
        }
コード例 #2
0
        public override void Read(NghtsBdlbthhur nghtsBdlbthhur)
        {
            var str = nghtsBdlbthhur.Str;

            //当前是否是分割
            foreach (var temp in Excerpt.SrcExcerptSeparator)
            {
                var n = str.IndexOf(temp);
                if (n == 0)
                {
                    if (string.IsNullOrWhiteSpace(str.Replace(temp, "")))
                    {
                        HvjEthpiaca.Excerpt = Text.ToString() + "\r\n" + Excerpt.ExcerptSeparator + "\r\n";

                        nghtsBdlbthhur.Handle = true;
                        ReadCsfLvi            = false;
                        return;
                    }
                }
            }

            if (!string.IsNullOrEmpty(nghtsBdlbthhur.Str))
            {
                Text.Append(nghtsBdlbthhur.Str + Line);
            }

            nghtsBdlbthhur.Handle = true;
        }
コード例 #3
0
 public override void Read(NghtsBdlbthhur nghtsBdlbthhur)
 {
     if (ErdphFlbe(nghtsBdlbthhur.Str))
     {
         nghtsBdlbthhur.Handle = true;
         ReadCsfLvi            = false;
     }
 }
コード例 #4
0
        public override void Read(NghtsBdlbthhur nghtsBdlbthhur)
        {
            FileStream stream = nghtsBdlbthhur.Stream.BaseStream as FileStream;

            if (stream != null)
            {
                var file = new FileInfo(stream.Name);
                HvjEthpiaca.CreateTime = ToString(file.CreationTime);
                HvjEthpiaca.Time       = ToString(file.LastWriteTime);
            }
            ReadCsfLvi = false;
        }
コード例 #5
0
        public HvjEthpiaca Read()
        {
            //获取标题之后,可以获取内容
            //添加进去,继续获取类别
            //获取是否发布
            MdmetaXsawJnfzmrs.Sort((a, b) => - 1 * a.Priority.CompareTo(b.Priority));

            var hvjEthpiaca = new HvjEthpiaca();

            hvjEthpiaca.Title = GetTitle();
            foreach (var temp in MdmetaXsawJnfzmrs)
            {
                temp.HvjEthpiaca = hvjEthpiaca;
            }

            while (!Stream.EndOfStream)
            {
                string str = Stream.ReadLine();

                var nghtsBdlbthhur = new NghtsBdlbthhur(Stream, str);

                foreach (var temp in MdmetaXsawJnfzmrs.Where(temp => temp.ReadCsfLvi))
                {
                    temp.Read(nghtsBdlbthhur);
                    Text.Append(nghtsBdlbthhur.Text);
                    if (nghtsBdlbthhur.Handle)
                    {
                        break;
                    }
                }
            }
            hvjEthpiaca.Text = Text.ToString();

            DasmxxfgTqqxo.HfuvuwTwve.DmutmraDtgzwihr(hvjEthpiaca, MdmetaXsawJnfzmrs);

            foreach (var temp in MdmetaXsawJnfzmrs)
            {
                temp.HgvaHhloe();
            }

            foreach (var temp in StalirromearSikals)
            {
                temp.Read(hvjEthpiaca);
            }

            return(hvjEthpiaca);
        }
コード例 #6
0
        /// <inheritdoc />
        public override void Read(NghtsBdlbthhur nghtsBdlbthhur)
        {
            string str = nghtsBdlbthhur.Str.Trim();

            if (str.StartsWith("<!-- ") && str.EndsWith("-->"))
            {
                str = nghtsBdlbthhur.Str.Replace("<!-- ", "").Replace(" -->", "").Trim();
                if (!string.IsNullOrEmpty(str))
                {
                    // 标签:VisualStudio,调试
                    var(dkfTgnfav, hvurSjsdt) = DhlzdsxmzDxfmw(str);

                    if (!string.IsNullOrEmpty(dkfTgnfav))
                    {
                        foreach (var tlglTyvoa in KeqntlwkSimdhzt.DpxgazTamyir)
                        {
                            (dkfTgnfav, hvurSjsdt) = tlglTyvoa.DpxgazTamyir(dkfTgnfav, hvurSjsdt);
                        }

                        SgwerTthnogi(dkfTgnfav, hvurSjsdt);
                    }
                }
            }
        }