亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專(zhuān)輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? rtf2html3.bas

?? 簡(jiǎn)單、實(shí)用、特別。 有很多不足之處
?? BAS
?? 第 1 頁(yè) / 共 3 頁(yè)
字號(hào):
Attribute VB_Name = "rtf2html"
Option Explicit

Private strCurPhrase As String
Private strHTML As String
Private Codes() As String
Private NextCodes() As String
Private CodesBeg() As String         'beginning codes
Private NextCodesBeg() As String     'beginning codes for next text
Private CodesTmp() As String         'temp stack for copying
Private CodesTmpBeg() As String      'temp stack for copying beg

Public strCR As String           'string to use for CRs - blank if +CR not chosen in options
Private strBeforeText As String
Private strBeforeText2 As String
Private strBeforeText3 As String
Private gPlain As Boolean            'true if all codes shouls be popped before next text
Private strColorTable() As String    'table of colors
Private lColors As Long              '# of colors
Private strFontTable() As String     'table of fonts
Private lFonts As Long               '# of fonts
Private strEOL As String             'string to include before <br>
Private lSkipWords As Long           'number od words to skip from current
Private gBOL As Boolean              'a <br> was inserted but no non-whitespace text has been inserted

Private strFont As String
Private strTable As String
Private strFontColor As String     'current font color for setting up fontstring
Private strFontSize As String      'current font size for setting up fontstring
Private lFontSize As Long

Function ClearCodes()
    ReDim Codes(0)
    ReDim NextCodes(0)
    ReDim CodesBeg(0)
    ReDim NextCodesBeg(0)
End Function


Function ClearFont()
    strFont = ""
    strTable = ""
    strFontColor = ""
    strFontSize = ""
    lFontSize = 0
End Function

Function Codes2NextTill(strCode As String)
    

    Dim l As Long

    l = UBound(Codes)
    While Codes(l) <> strCode And l >= 0
        l = l - 1
    Wend
    CodesBeg(l) = ""
    l = l + 1
    While l <= UBound(Codes)
        PushNext (Codes(l))
        PushNextBeg (CodesBeg(l))
        CodesBeg(l) = ""
        l = l + 1
    Wend
End Function

Function GetColorTable(strSecTmp As String, strColorTable() As String)
    'get color table data and fill in strColorTable array
    Dim lColors As Long
    Dim lBOS As Long
    Dim lEOS As Long
    Dim strTmp As String
    
    lBOS = InStr(strSecTmp, "\colortbl")
    ReDim strColorTable(0)
    lColors = 1
    If lBOS <> 0 Then
        lEOS = InStr(lBOS, strSecTmp, ";}")
        If lEOS <> 0 Then
            lBOS = InStr(lBOS, strSecTmp, "\red")
            While ((lBOS <= lEOS) And (lBOS <> 0))
                ReDim Preserve strColorTable(lColors)
                strTmp = Trim(Hex(Mid(strSecTmp, lBOS + 4, 1) & IIf(IsNumeric(Mid(strSecTmp, lBOS + 5, 1)), Mid(strSecTmp, lBOS + 5, 1), "") & IIf(IsNumeric(Mid(strSecTmp, lBOS + 6, 1)), Mid(strSecTmp, lBOS + 6, 1), "")))
                If Len(strTmp) = 1 Then strTmp = "0" & strTmp
                strColorTable(lColors) = strColorTable(lColors) & strTmp
                lBOS = InStr(lBOS, strSecTmp, "\green")
                strTmp = Trim(Hex(Mid(strSecTmp, lBOS + 6, 1) & IIf(IsNumeric(Mid(strSecTmp, lBOS + 7, 1)), Mid(strSecTmp, lBOS + 7, 1), "") & IIf(IsNumeric(Mid(strSecTmp, lBOS + 8, 1)), Mid(strSecTmp, lBOS + 8, 1), "")))
                If Len(strTmp) = 1 Then strTmp = "0" & strTmp
                strColorTable(lColors) = strColorTable(lColors) & strTmp
                lBOS = InStr(lBOS, strSecTmp, "\blue")
                strTmp = Trim(Hex(Mid(strSecTmp, lBOS + 5, 1) & IIf(IsNumeric(Mid(strSecTmp, lBOS + 6, 1)), Mid(strSecTmp, lBOS + 6, 1), "") & IIf(IsNumeric(Mid(strSecTmp, lBOS + 7, 1)), Mid(strSecTmp, lBOS + 7, 1), "")))
                If Len(strTmp) = 1 Then strTmp = "0" & strTmp
                strColorTable(lColors) = strColorTable(lColors) & strTmp
                lBOS = InStr(lBOS, strSecTmp, "\red")
                lColors = lColors + 1
            Wend
        End If
    End If
End Function

Function GetFontTable(strSecTmp As String, strFontTable() As String)
    'get font table data and fill in strFontTable array
    Dim lFonts As Long
    Dim lBOS As Long
    Dim lEOS As Long
    Dim strTmp As String
    
    lBOS = InStr(strSecTmp, "\fonttbl")
    ReDim strFontTable(0)
    lFonts = 0
    If lBOS <> 0 Then
        lEOS = InStr(lBOS, strSecTmp, ";}}")
        If lEOS <> 0 Then
            lBOS = InStr(lBOS, strSecTmp, "\f0")
            While ((lBOS <= lEOS) And (lBOS <> 0))
                ReDim Preserve strFontTable(lFonts)
                While ((Mid(strSecTmp, lBOS, 1) <> " ") And (lBOS <= lEOS))
                    lBOS = lBOS + 1
                Wend
                lBOS = lBOS + 1
                strTmp = Mid(strSecTmp, lBOS, InStr(lBOS, strSecTmp, ";") - lBOS)
                strFontTable(lFonts) = strFontTable(lFonts) & strTmp
                lBOS = InStr(lBOS, strSecTmp, "\f" & (lFonts + 1))
                lFonts = lFonts + 1
            Wend
        End If
    End If
End Function


Function InNext(strTmp) As Boolean
    Dim gTmp As Boolean
    Dim l As Long
    
    l = 1
    gTmp = False
    While l <= UBound(NextCodes) And Not gTmp
        If NextCodes(l) = strTmp Then gTmp = True
        l = l + 1
    Wend
    InNext = gTmp
End Function

Function InCodes(strTmp) As Boolean
    Dim gTmp As Boolean
    Dim l As Long
    
    l = 1
    gTmp = False
    While l <= UBound(Codes) And Not gTmp
        If Codes(l) = strTmp And Len(CodesBeg(l)) > 0 Then gTmp = True
        l = l + 1
    Wend
    InCodes = gTmp
End Function


Function NabNextLine(strRTF As String) As String
    Dim l As Long
    
    l = InStr(strRTF, vbCrLf)
    If l = 0 Then l = Len(strRTF)
    NabNextLine = TrimAll(Left(strRTF, l))
    If l = Len(strRTF) Then
        strRTF = ""
    Else
        strRTF = TrimAll(Mid(strRTF, l))
    End If
End Function

Function NabNextWord(strLine As String) As String
    Dim l As Long
    Dim lvl As Integer
    Dim gEndofWord As Boolean
    Dim gInCommand As Boolean    'current word is command instead of plain word
    
    gInCommand = False
    l = 0
    lvl = 0
    'strLine = TrimifCmd(strLine)
    If Left(strLine, 1) = "}" Then
        strLine = Mid(strLine, 2)
        NabNextWord = "}"
        GoTo finally
    End If
    While Not gEndofWord
        l = l + 1
        If l >= Len(strLine) Then
            If l = Len(strLine) Then l = l + 1
            gEndofWord = True
        ElseIf InStr("\{}", Mid(strLine, l, 1)) Then
            If l = 1 And Mid(strLine, l, 1) = "\" Then gInCommand = True
            If Mid(strLine, l + 1, 1) <> "\" And l > 1 And lvl = 0 Then
                gEndofWord = True
            End If
        ElseIf Mid(strLine, l, 1) = " " And lvl = 0 And gInCommand Then
            gEndofWord = True
        End If
    Wend
    
    If l = 0 Then l = Len(strLine)
    NabNextWord = Left(strLine, l - 1)
    While Len(NabNextWord) > 0 And InStr("{}", Right(NabNextWord, 1))
        NabNextWord = Left(NabNextWord, Len(NabNextWord) - 1)
    Wend
    While Len(NabNextWord) > 0 And InStr("{}", Left(NabNextWord, 1))
        NabNextWord = Right(NabNextWord, Len(NabNextWord) - 1)
    Wend
    strLine = Mid(strLine, l)
    If Left(strLine, 1) = " " Then strLine = Mid(strLine, 2)
finally:
End Function

Function NabSection(strRTF As String, lPos As Long) As String
    'grab section surrounding lPos, strip section out of strRTF and return it
    Dim lBOS As Long         'beginning of section
    Dim lEOS As Long         'ending of section
    Dim strChar As String
    Dim lLev As Long         'level of brackets/parens
    Dim lRTFLen As Long
    
    lRTFLen = Len(strRTF)
    
    lBOS = lPos
    strChar = Mid(strRTF, lBOS, 1)
    lLev = 1
    While lLev > 0
        lBOS = lBOS - 1
        If lBOS <= 0 Then
            lLev = lLev - 1
        Else
            strChar = Mid(strRTF, lBOS, 1)
            If strChar = "}" Then
                lLev = lLev + 1
            ElseIf strChar = "{" Then
                lLev = lLev - 1
            End If
        End If
    Wend
    lBOS = lBOS - 1
    If lBOS < 1 Then lBOS = 1
    
    lEOS = lPos
    strChar = Mid(strRTF, lEOS, 1)
    lLev = 1
    While lLev > 0
        lEOS = lEOS + 1
        If lEOS >= lRTFLen Then
            lLev = lLev - 1
        Else
            strChar = Mid(strRTF, lEOS, 1)
            If strChar = "{" Then
                lLev = lLev + 1
            ElseIf strChar = "}" Then
                lLev = lLev - 1
            End If
        End If
    Wend
    lEOS = lEOS + 1
    If lEOS > lRTFLen Then lEOS = lRTFLen
    NabSection = Mid(strRTF, lBOS + 1, lEOS - lBOS - 1)
    strRTF = Mid(strRTF, 1, lBOS) & Mid(strRTF, lEOS)
    strRTF = rtf2html_replace(strRTF, vbCrLf & vbCrLf, vbCrLf)
End Function

Function Next2Codes()
    'move codes from pending ("next") stack to current stack
    Dim lNumCodes As Long
    Dim l As Long
    
    If UBound(NextCodes) > 0 Then
        lNumCodes = UBound(Codes)
        ReDim Preserve Codes(lNumCodes + UBound(NextCodes))
        ReDim Preserve CodesBeg(lNumCodes + UBound(NextCodes))
        For l = 1 To UBound(NextCodes)
            Codes(lNumCodes + l) = NextCodes(l)
            CodesBeg(lNumCodes + l) = NextCodesBeg(l)
        Next l
        ReDim NextCodes(0)
        ReDim NextCodesBeg(0)
    End If
End Function

Function Codes2Next()
    'move codes from "current" stack to pending ("next") stack
    Dim lNumCodes As Long
    Dim l As Long
    
    If UBound(Codes) > 0 Then
        lNumCodes = UBound(NextCodes)
        ReDim Preserve NextCodes(lNumCodes + UBound(Codes))
        ReDim Preserve NextCodesBeg(lNumCodes + UBound(Codes))
        For l = 1 To UBound(Codes)
            NextCodes(lNumCodes + l) = Codes(l)
            NextCodesBeg(lNumCodes + l) = CodesBeg(l)
        Next l
        ReDim Codes(0)
        ReDim CodesBeg(0)
    End If
End Function

Function ParseFont(strColor As String, strSize As String) As String
    Dim strTmpFont As String
    
    strTmpFont = "<font"
    If strColor <> "" Then
       strTmpFont = strTmpFont & " color=""" & strColor & """"
    End If
    If strSize <> "" And strSize <> "2" Then
        strTmpFont = strTmpFont & " size=" & strSize
    End If
    strTmpFont = strTmpFont & ">"
    ParseFont = strTmpFont
End Function

Function PopCode() As String
    If UBound(Codes) > 0 Then
        PopCode = Codes(UBound(Codes))
        ReDim Preserve Codes(UBound(Codes) - 1)
    End If
End Function

Function GetAllCodes() As String
    Dim strTmp As String
    Dim l As Long
    
    strTmp = ""
    If UBound(Codes) > 0 Then
        For l = UBound(Codes) To 1 Step -1
            strTmp = strTmp & Codes(l)
        Next l
    End If
    GetAllCodes = strTmp
End Function

Function GetAllNextCodes() As String
    Dim strTmp As String
    Dim l As Long
    
    strTmp = ""
    If UBound(NextCodes) > 0 Then
        For l = 1 To UBound(NextCodes)
            strTmp = strTmp & NextCodes(l)
        Next l
    End If
    GetAllNextCodes = strTmp
End Function

Function GetAllCodesBeg() As String
    Dim strTmp As String
    Dim l As Long
    
    strTmp = ""
    If UBound(CodesBeg) > 0 Then
        For l = 1 To UBound(CodesBeg)
            strTmp = strTmp & CodesBeg(l)
        Next l
    End If
    GetAllCodesBeg = strTmp
End Function

Function GetAllNextCodesBeg() As String
    Dim strTmp As String
    Dim l As Long
    
    strTmp = ""
    If UBound(NextCodesBeg) > 0 Then
        For l = 1 To UBound(NextCodesBeg)
            strTmp = strTmp & NextCodesBeg(l)
        Next l
    End If
    GetAllNextCodesBeg = strTmp
End Function


Function PopCodeBeg() As String
    If UBound(CodesBeg) > 0 Then
        PopCodeBeg = CodesBeg(UBound(CodesBeg))
        ReDim Preserve CodesBeg(UBound(CodesBeg) - 1)
    End If
End Function

Function PopTmp() As String
    If UBound(CodesTmp) > 0 Then
        PopTmp = CodesTmp(UBound(CodesTmp))
        ReDim Preserve CodesTmp(UBound(CodesTmp) - 1)

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美大白屁股肥臀xxxxxx| 国产毛片一区二区| 欧美日韩在线不卡| 亚洲成av人片一区二区梦乃| 在线视频你懂得一区| 1024国产精品| 在线观看成人小视频| 丝袜美腿亚洲综合| 精品国产一二三| 国产精华液一区二区三区| 欧美激情艳妇裸体舞| 91欧美激情一区二区三区成人| 亚洲精品v日韩精品| 欧美性猛交xxxx黑人交| 蜜桃av噜噜一区二区三区小说| 精品国一区二区三区| 国产剧情av麻豆香蕉精品| 国产精品短视频| 欧美日韩一区二区三区不卡| 久久超碰97中文字幕| 中文字幕一区二区在线观看 | 国产精品国产自产拍高清av| 一本高清dvd不卡在线观看| 亚洲国产视频a| 337p日本欧洲亚洲大胆精品| 91原创在线视频| 性感美女久久精品| 久久久国产综合精品女国产盗摄| 91色|porny| 久久国产剧场电影| 亚洲女性喷水在线观看一区| 日韩一区二区三区免费观看| 97久久精品人人爽人人爽蜜臀| 午夜激情久久久| 久久久美女艺术照精彩视频福利播放| 国产ts人妖一区二区| 天天操天天干天天综合网| 欧美国产成人精品| 日韩欧美资源站| 欧美在线视频你懂得| 国产麻豆9l精品三级站| 亚洲国产中文字幕在线视频综合 | 亚洲成人av中文| 日本一区二区综合亚洲| 欧美美女一区二区三区| 97精品电影院| 懂色一区二区三区免费观看| 轻轻草成人在线| 亚洲国产精品一区二区www在线 | 国产精品毛片a∨一区二区三区| 欧美日韩亚洲综合| 99久久国产综合精品女不卡| 国产主播一区二区| 日韩和欧美一区二区| 亚洲另类春色校园小说| 亚洲国产精品国自产拍av| 91精品久久久久久久99蜜桃| 93久久精品日日躁夜夜躁欧美| 国内外成人在线视频| 日韩精品一二三| 亚洲午夜三级在线| 亚洲欧美综合网| 国产日韩欧美精品综合| www久久精品| 精品国一区二区三区| 欧美日韩黄视频| 在线观看一区日韩| 色婷婷综合久久久中文字幕| 成人黄页在线观看| 成人小视频免费观看| 国产不卡视频在线播放| 国产精品一区二区在线观看网站| 美女视频黄 久久| 日韩专区中文字幕一区二区| 亚洲综合999| 亚洲一区二区三区在线| 亚洲在线成人精品| 亚洲成av人影院| 日韩精品电影一区亚洲| 天天做天天摸天天爽国产一区| 亚洲r级在线视频| 性做久久久久久久免费看| 天天色天天爱天天射综合| 日韩av在线免费观看不卡| 日韩高清中文字幕一区| 青草av.久久免费一区| 日本不卡视频一二三区| 另类小说视频一区二区| 国内外精品视频| 成人av资源在线| 91丨porny丨蝌蚪视频| 色94色欧美sute亚洲线路二| 91久久一区二区| 欧美人狂配大交3d怪物一区| 91精品国产欧美日韩| 精品久久久久久久久久久久久久久久久| 日韩三级伦理片妻子的秘密按摩| 久久一区二区三区国产精品| 国产精品卡一卡二卡三| 亚洲图片欧美激情| 午夜不卡在线视频| 精品一区二区三区不卡| 粉嫩一区二区三区在线看| 日本精品一区二区三区高清| 欧美日韩一区三区| 欧美成人免费网站| 国产精品国产三级国产有无不卡| 亚洲综合在线电影| 麻豆免费精品视频| 成人av资源网站| 制服丝袜亚洲精品中文字幕| 久久久精品人体av艺术| 一区二区三区中文在线观看| 奇米影视7777精品一区二区| 国产成人啪免费观看软件 | 亚洲成人www| 国产精品一区一区| 欧美亚男人的天堂| 26uuu精品一区二区| 一区二区三区在线视频免费观看| 美女网站色91| 91黄色免费看| 精品成人一区二区三区| 自拍视频在线观看一区二区| 日韩不卡在线观看日韩不卡视频| 东方aⅴ免费观看久久av| 欧美色综合影院| 国产亚洲成aⅴ人片在线观看 | 最新欧美精品一区二区三区| 性感美女久久精品| 99久久精品情趣| 精品少妇一区二区三区视频免付费| 国产精品高清亚洲| 久草热8精品视频在线观看| 色欧美88888久久久久久影院| 日韩欧美国产麻豆| 一区二区三区国产豹纹内裤在线| 国产一区二区调教| 69堂国产成人免费视频| 亚洲三级电影网站| 高清国产一区二区| 精品久久久久久久久久久久久久久久久| 亚洲精品国产无天堂网2021 | 欧美精品在线观看播放| 国产精品免费视频观看| 九九精品视频在线看| 欧美三级视频在线观看| 中文字幕亚洲欧美在线不卡| 国内成人精品2018免费看| 欧美久久免费观看| 亚洲一区免费在线观看| 91最新地址在线播放| 国产精品天美传媒| 国产中文一区二区三区| 精品欧美乱码久久久久久| 日韩黄色一级片| 欧美日韩电影在线| 亚洲尤物视频在线| 欧美性感一区二区三区| 一区二区免费在线播放| 91蜜桃免费观看视频| 国产精品久久夜| 丁香一区二区三区| 国产精品久久久久7777按摩| 国产成人鲁色资源国产91色综| 日韩一级二级三级精品视频| 日本欧美久久久久免费播放网| 欧美视频一区在线观看| 亚洲va欧美va天堂v国产综合| 欧美色男人天堂| 亚洲1区2区3区视频| 欧美日韩国产在线观看| 天天av天天翘天天综合网色鬼国产| 欧美日韩视频在线第一区| 亚洲电影视频在线| 91精品国产综合久久久久久久| 视频一区国产视频| 日韩亚洲欧美一区| 国产一区二区主播在线| 欧美国产欧美综合| 91色在线porny| 亚洲午夜久久久久久久久电影院| 欧美性猛交一区二区三区精品| 性感美女久久精品| 欧美大片在线观看| 成人综合婷婷国产精品久久蜜臀| 国产精品美女久久久久久久久 | 美女网站视频久久| 久久亚洲二区三区| 99精品欧美一区二区三区小说| 亚洲欧美日韩人成在线播放| 欧美性videosxxxxx| 日韩和欧美一区二区| 久久久久99精品国产片| av电影在线观看一区| 五月婷婷久久丁香| 国产亚洲视频系列| 在线精品国精品国产尤物884a| 日本伊人色综合网| 日本一区二区电影|