コード例 #1
0
        public void SortBookmark(string vstrBookmark)
        {
            CFileManager oFile = null;

            oFile = new CFileManager();
            int intCount = 0;

            intCount = vstrBookmark.IndexOf("fanfiction.net");
            if (intCount >= 0)
            {
                oFile.SaveFF_net(vstrBookmark);
            }
            else if (vstrBookmark.IndexOf("addventure") >= 0)
            {
                oFile.SaveAddv(vstrBookmark);
            }
            else
            {
                oFile.SaveOtherBkmk(vstrBookmark);
            }
        }
コード例 #2
0
        public void ExtractBookmark(string vstrBookmark)
        {
            CFileManager oFile = null;

            oFile = new CFileManager();
            string mstrBookmark = null;

            mstrBookmark = MYIdentifyLinks(vstrBookmark);
            //    Dim intCount As Integer
            //      intCount = vstrBookmark.IndexOf(Chr(34))
            //    If intCount >= 0 Then
            //intCount += 1
            //   For intCount1 As Integer = intCount To (vstrBookmark.Length - 1)
            //If vstrBookmark.Substring(intCount, intCount + 1) = Chr(34) Then
            //intCount = vstrBookmark.Length + 1
            //    Else
            //    mstrBookmark = mstrBookmark & vstrBookmark.Substring(intCount, intCount + 1)
            //    intCount += 1
            //    End If

            //    Next
            oFile.SaveLinks(mstrBookmark);
            //    End If
        }