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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? stringprocess.bas

?? 監控類的開發
?? BAS
字號:
Attribute VB_Name = "StringProcess"
    Option Explicit
    'no dependence

Public Function NextString(ByVal strSource As String, strD As String) As String
    Dim I As Long
    Dim J As Long
    
    I = InStr(1, strSource, strD, vbTextCompare)
    J = Len(strD)
    If I = 0 Then
        NextString = ""
    Else
        NextString = Mid(strSource, I + J)
    End If
End Function

Public Function GetLeftString(ByVal strSource As String, strD As String) As String
    Dim lLoc As Long
    
    lLoc = InStr(1, strSource, strD, vbTextCompare)
    If lLoc = 0 Then
        GetLeftString = ""
    Else
        GetLeftString = Left(strSource, lLoc - 1)
    End If
End Function

Public Function GetIncludeString(ByVal strSource As String, strD As String) As String
    Dim strTmp As String
    
    strTmp = GetInsideString(strSource, strD)
    If strTmp <> "" Then
        GetIncludeString = strD + strTmp + strD
    Else
        GetIncludeString = ""
    End If
End Function

Public Function GetNoTail(ByVal strSource As String, strD As String, nLocation As Integer) As String
    'I=0, for entire string
    Dim I As Integer
    Dim strTmp As String
    
    If nLocation = 0 Then
        GetNoTail = strSource
        Exit Function
    End If
    
    strTmp = NextString(strSource, strD)
    I = I + 1
    
    Do While I < nLocation And strTmp <> ""
        strTmp = NextString(strTmp, strD)
        I = I + 1
    Loop
    
    GetNoTail = strTmp
End Function

Public Function GetNoString(ByVal strSource As String, strD As String, nLocation As Integer) As String
    'Start from 0.
    Dim nlen As Integer
    
    nlen = Len(strD)
    If Left(strSource, nlen) <> strD Then strSource = strSource + strD
    
    GetNoString = GetLeftString(GetNoTail(strSource, strD, nLocation), strD)
End Function

Public Function GetLastString(ByVal strSource As String, strD As String) As String
    Dim I As Integer
    Dim nlen As Integer
      
    nlen = Len(strSource)
    If Mid(strSource, nlen) <> strD Then strSource = strSource + strD
      
    Do While GetNoString(strSource, strD, I) <> ""
        GetLastString = GetNoString(strSource, strD, I)
        I = I + 1
    Loop
End Function

Public Function ChangeTail(ByVal strSource As String, strD1 As String, strD2 As String) As String
    Dim nlen As Integer
    Dim strEnd As String
    
    nlen = Len(strD1)
    strEnd = Mid(strSource, Len(strSource) - nlen + 1)
    
    If strEnd = strD1 Then
        ChangeTail = Left(strSource, Len(strSource) - nlen) + strD2
    Else
        ChangeTail = strSource
    End If
End Function

Public Function GetInsideString(ByVal strSource As String, strD As String) As String
    Dim strTmp As String
    Dim nLenOfStrD As Integer
    Dim I As Long
    
    strTmp = strSource
    If Len(strTmp) < 3 Or strD = "" Then Exit Function
    
    nLenOfStrD = Len(strD)
    I = InStr(1, strTmp, strD, vbTextCompare)
    
    If I <> 0 Then
        strTmp = Mid(strTmp, I + nLenOfStrD)
        GetInsideString = GetLeftString(strTmp, strD)
    End If
End Function

Public Function ChCharsCount(ByVal strSource As String) As Long
    Dim lLen As Long
    Dim lTmp As Long
    Dim lCode As Long
    Dim lCount As Long
    Dim strCh As String
    
    If strSource = "" Then Exit Function
    
    lLen = Len(strSource)
    For lTmp = 1 To lLen
        strCh = Mid(strSource, lTmp, 1)
        lCode = AscW(strCh)
        If lCode > 255 Or lCode < 0 Then lCount = lCount + 1
    Next lTmp
    
    ChCharsCount = lCount
End Function

Public Function FeatureCount(ByVal strSource As String, strFeature As String) As Long
    Dim I As Long
    Dim strTmp As String
    Dim nlen As Long
    Dim nCount As Long
    
    If strFeature = "" Then Exit Function
    
    strTmp = strSource
    nlen = Len(strTmp)
    I = InStr(1, strTmp, strFeature, vbTextCompare)
    strTmp = NextString(strTmp, strFeature)
    
    Do While I > 0
        nCount = nCount + 1
        
        I = InStr(1, strTmp, strFeature, vbTextCompare)
        strTmp = NextString(strTmp, strFeature)
        DoEvents
    Loop
    
    FeatureCount = nCount
End Function

Public Function OnlyOneSegChar(ByVal strSource As String, strSegment As String, bDelHead As Boolean) As String
    'if "**", use only a "*", ABAB to AB
    Dim strD2 As String
    Dim strTmp As String
    Dim nLoc As Long
    
    If strSource = "" Or strSegment = "" Then
        OnlyOneSegChar = strSource
        Exit Function
    End If
    
    strTmp = strSource
    If bDelHead = True Then
        Do While Mid(strTmp, 1, Len(strSegment)) = strSegment
            strTmp = Mid(strTmp, 1 + Len(strSegment))
            DoEvents
        Loop
    End If
    
    strD2 = strSegment + strSegment
    nLoc = InStr(1, strSource, strD2)
    Do While nLoc <> 0
        strTmp = Mid(strTmp, 1, nLoc + Len(strSegment) - 1) + Mid(strTmp, nLoc + Len(strD2))
        nLoc = InStr(1, strTmp, strD2)
        DoEvents
    Loop
    OnlyOneSegChar = strTmp
End Function

Public Function SegmentChars(ByVal strSource As String, nlen As Integer, strD As String) As String
    Dim I As Integer
    Dim strTmp As String
    Dim strResult As String
    
    If strSource = "" Or nlen < 1 Then Exit Function
    
    For I = 1 To Len(strSource)
        strTmp = Mid(strSource, I, nlen)
        If Len(strTmp) < nlen Then Exit For
        strResult = strResult + strTmp + strD
    Next I
    
    SegmentChars = strResult
End Function

Public Function DelAllSubChars(ByVal strSource As String, strSubChars As String) As String
    Dim lLoc As Long
    Dim nTmp As Integer
    Dim strTmp As String
    
    strTmp = strSource
    nTmp = Len(strSubChars)
    
    If strTmp = "" Or nTmp = 0 Then
        DelAllSubChars = strSource
        Exit Function
    End If
    
    lLoc = InStr(1, strTmp, strSubChars)
    
    Do While lLoc > 0
        strTmp = Mid(strTmp, 1, lLoc - 1) + Mid(strTmp, lLoc + nTmp)
        lLoc = InStr(lLoc, strTmp, strSubChars)
        DoEvents
    Loop
    
    DelAllSubChars = strTmp
End Function

Public Function InsertUniqueString(strSource As String, strWord As String, strD As String, nEnd As Integer) As String
    'But "春天" > "我們".
    Dim I As Integer
    Dim strTmp As String
    Dim nLoc As Long
    
    If strSource = "" Then
        InsertUniqueString = strWord + strD
        Exit Function
    Else
        If InStr(1, strSource, strWord, vbTextCompare) <> 0 Then
            InsertUniqueString = strSource
            Exit Function
        End If
        
        If nEnd = 0 Then
            'by order
            strTmp = GetNoString(strSource, strD, I)
            Do While strTmp < strWord
                If strTmp = "" Then Exit Do
                I = I + 1
                strTmp = GetNoString(strSource, strD, I)
                DoEvents
            Loop
            
            If strTmp = "" Then
                InsertUniqueString = strSource + strWord + strD
            Else
                nLoc = InStr(1, strSource, strTmp, vbTextCompare)
                InsertUniqueString = Mid(strSource, 1, nLoc - 1) + strWord + strD + Mid(strSource, nLoc)
            End If
        Else
            InsertUniqueString = strSource + strWord + strD
        End If
    End If
End Function

Public Function InsertSpecialChar(ByVal strSource As String, strSegment As String, strD As String) As String
    'from "我們12的祖國。" to "我們*祖國*"
    Dim strTmp As String
    Dim lLocation As Long
    
    If Len(strD) > 1 Then
        MsgBox "The length of segmentChar must less than 2!", vbExclamation + vbOKOnly
        InsertSpecialChar = strSource
        Exit Function
    End If
    
    strTmp = strSource
    
    For lLocation = 1 To Len(strTmp)
        If InStr(1, strSegment, Mid(strTmp, lLocation, 1)) <> 0 Then
            strTmp = Mid(strTmp, 1, lLocation - 1) + strD + Mid(strTmp, lLocation + 1)
        End If
        DoEvents
    Next lLocation
    
    'use only a "*"
    InsertSpecialChar = OnlyOneSegChar(strTmp, strD, True)
End Function

Public Function CheckLegalChars(ByVal strSource As String, ByVal strStandard As String) As Boolean
    Dim nlen As Integer
    Dim I As Integer
    Dim bError As Boolean
    
    If strSource = "" Or strStandard = "" Then Exit Function
    
    nlen = Len(strSource)
    
    For I = 1 To nlen
        If InStr(1, strStandard, Mid(strSource, I, 1)) = 0 Then
            bError = True
            Exit For
        End If
    Next I
    
    If bError = True Then
        CheckLegalChars = False
    Else
        CheckLegalChars = True
    End If
End Function

Public Function GetSeconds(strTime As String) As Long
    Dim nH, nM, nS As Long
    On Error Resume Next
    
    nH = Val(GetNoString(strTime, ":", 0))
    nM = Val(GetNoString(strTime, ":", 1))
    nS = Val(GetNoTail(strTime, ":", 2))
    GetSeconds = (nH * 60 + nM) * 60 + nS
End Function

Public Function GetHMS(sTotal As Long) As String
    Dim nH, nM, nS As Long
    On Error GoTo ErrProcess
    
    If sTotal < 0 Then GoTo ErrProcess 'The second day
    nH = sTotal \ 3600
    sTotal = sTotal - nH * 3600
    nM = sTotal \ 60
    nS = sTotal - nM * 60
    GetHMS = Trim(Str(nH)) + ":" + Trim(Str(nM)) + ":" + Trim(Str(nS))
    GetHMS = Format(GetHMS, "H:MM:SS")
    Exit Function
    
ErrProcess:
    GetHMS = "0:00:00"
End Function

Public Function GetEndChar(ByVal strSource As String) As String
    Dim lLen As Long
    
    lLen = Len(strSource)
    If lLen > 0 Then GetEndChar = Mid(strSource, lLen, 1)
End Function

Public Function GetStringBetweenTwoChars(ByVal strSource As String, nLocation As Integer, strStart As String, strEnd As String) As String
    Dim strTmp As String
    Dim nStart As Integer
    Dim nEnd As Integer
    
    nStart = InStr(nLocation, strSource, strStart, vbTextCompare)
    If nStart = 0 Then Exit Function
    
    nEnd = InStr(nStart, strSource, strEnd, vbTextCompare)
    If nEnd = 0 Then Exit Function
    If nEnd <= nStart Then Exit Function
    
    GetStringBetweenTwoChars = Mid(strSource, nStart + Len(strStart), nEnd - nStart - Len(strStart))
End Function

Public Function InsertString(strSource As String, strSub As String, nLoc As Integer) As String
    If nLoc < 1 Then InsertString = strSource
    If nLoc > Len(strSource) Then InsertString = strSource + strSub
    
    If nLoc >= 1 And nLoc <= Len(strSource) Then
        InsertString = Mid(strSource, 1, nLoc - 1) + strSub + Mid(strSource, nLoc)
    End If
End Function

Public Function ts(ByVal vData As Variant) As String  'ts: trim(str(data))
    ts = Trim(Str(vData))
End Function

Public Function TwoDigit(ByVal nData As Integer) As String
    If nData > 99 Then Exit Function
    TwoDigit = Format(nData, "0#")
End Function

Public Function GetMonthEnd(ByVal strSource As String) As String
    'from 2005-11-xx to 2005-11-30
    Dim nYear As Integer
    Dim nMonth As Integer
    Dim strTmp As String
    Dim dTmp As Date
    
    nYear = Val(GetNoString(strSource, "-", 0))
    nMonth = Val(GetNoString(strSource, "-", 1))
    
    If nMonth = 12 Then
        strTmp = ts(nYear + 1) + "-01-01"
    Else
        strTmp = ts(nYear) + "-" + ts(nMonth + 1) + "-1"
    End If
        
    dTmp = CDate(strTmp)
    GetMonthEnd = Format(dTmp - 1, "yyyy-mm-dd")
End Function

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产夫妻精品视频| 亚洲人被黑人高潮完整版| 在线精品观看国产| jlzzjlzz欧美大全| 成人免费毛片app| av高清不卡在线| 成人午夜激情视频| 成人精品在线视频观看| 成人av在线电影| 91丝袜高跟美女视频| www.亚洲国产| 91福利国产成人精品照片| 欧美怡红院视频| 欧美精品粉嫩高潮一区二区| 51精品国自产在线| 日韩免费看的电影| 久久精品人人做人人爽人人| 国产精品色一区二区三区| 国产精品全国免费观看高清 | 国产精品久久影院| 国产精品你懂的在线| 中文字幕精品三区| 一区二区三区美女| 日韩中文字幕区一区有砖一区 | 亚洲观看高清完整版在线观看| 成人免费福利片| 91看片淫黄大片一级在线观看| 亚洲一区二区三区在线| 亚洲视频一二三区| 无吗不卡中文字幕| 国产伦理精品不卡| 一本色道a无线码一区v| 91精品国产欧美一区二区18| 欧美精品一区二区三区蜜桃视频| 国产中文字幕精品| 高清在线不卡av| 欧美日韩电影一区| 久久精品一区二区三区不卡| 怡红院av一区二区三区| 久久电影国产免费久久电影| 99re视频精品| 亚洲精品一区二区精华| 亚洲综合一二区| 丁香婷婷综合色啪| 6080午夜不卡| 亚洲免费观看高清在线观看| 久久国内精品视频| 欧美综合欧美视频| 国产午夜精品一区二区三区四区| 宅男在线国产精品| 亚洲视频在线观看一区| 首页欧美精品中文字幕| 99国产精品久| 久久久亚洲精华液精华液精华液| 日韩一区二区三区高清免费看看| 91国在线观看| 国产精品久久久久永久免费观看| 91麻豆精品国产综合久久久久久| 91麻豆精品视频| 久久日韩粉嫩一区二区三区| 亚洲电影一区二区| 从欧美一区二区三区| 欧美日韩激情一区二区三区| 成人免费在线视频| 国产成人在线视频网站| 欧美一区二区三区免费大片| 亚洲私人影院在线观看| 成人综合婷婷国产精品久久| 欧美精品一区二区在线观看| 男人的天堂亚洲一区| 在线不卡免费av| 午夜精品aaa| 欧美在线999| 伊人夜夜躁av伊人久久| jlzzjlzz亚洲女人18| 国产精品三级av在线播放| 精品一区二区免费在线观看| 欧美mv和日韩mv的网站| 免费看欧美美女黄的网站| 91精品久久久久久久91蜜桃| 亚洲一区二三区| 欧美自拍丝袜亚洲| 综合婷婷亚洲小说| 99久久久精品| 亚洲免费观看高清完整| 91免费国产视频网站| 亚洲激情一二三区| 欧美午夜片在线看| 日本不卡视频一二三区| 日韩精品一区二区三区在线| 国产一区二区看久久| 国产精品私房写真福利视频| fc2成人免费人成在线观看播放| 91视频.com| 亚洲尤物在线视频观看| 欧美日韩三级一区| 天天综合色天天综合色h| 91精品国模一区二区三区| 精品中文av资源站在线观看| 国产精品私人影院| 色婷婷国产精品| 天使萌一区二区三区免费观看| 国内精品伊人久久久久av影院 | 久久精品国产第一区二区三区| 国产在线播精品第三| 国产精品久久久久久久久搜平片| 亚洲美女一区二区三区| 欧美精选一区二区| 久久国内精品视频| 国产精品久久久一本精品| 欧美天堂亚洲电影院在线播放| 精品999久久久| 91亚洲精品一区二区乱码| 日韩激情视频网站| 日本一区二区三区高清不卡| 一本大道久久a久久综合| 亚洲一区二区三区四区的| 欧美成人女星排名| 91丝袜呻吟高潮美腿白嫩在线观看| 日韩女优av电影| 91精品91久久久中77777| 蜜臀av一区二区三区| 亚洲视频综合在线| 日韩欧美成人一区二区| 精品一区二区日韩| 日韩一区在线播放| 在线成人免费观看| 91一区在线观看| 麻豆久久久久久| 亚洲综合免费观看高清完整版 | 亚洲成av人片一区二区三区| 国产色综合一区| 日韩欧美国产麻豆| 色综合色综合色综合色综合色综合 | 国产精品人人做人人爽人人添| 毛片不卡一区二区| 一级女性全黄久久生活片免费| 韩国欧美国产1区| 一区二区三区成人在线视频| 亚洲国产精品成人综合色在线婷婷| 视频一区中文字幕| 亚洲精品日韩综合观看成人91| 国产乱对白刺激视频不卡| 丝袜美腿亚洲一区| 亚洲国产精品久久不卡毛片| 亚洲欧洲av另类| 综合色中文字幕| 国产精品嫩草影院com| 欧美一区二区私人影院日本| 欧美丰满嫩嫩电影| 在线精品视频免费观看| 成人91在线观看| 成人黄色av网站在线| 国产91露脸合集magnet| 国产成a人无v码亚洲福利| 麻豆成人久久精品二区三区红| 欧美一区二区三区在线观看 | 亚洲午夜成aⅴ人片| 1000精品久久久久久久久| 欧洲在线/亚洲| 欧洲av一区二区嗯嗯嗯啊| 国产乱一区二区| 成人av综合在线| 99re热视频精品| 欧美日韩一二三区| 欧美日韩不卡视频| 日韩一区二区精品葵司在线| 久久这里只有精品6| 国产日韩欧美麻豆| 国产精品久久福利| 一区二区三国产精华液| 午夜av电影一区| 国内精品久久久久影院薰衣草| 日韩区在线观看| 26uuu精品一区二区在线观看| 亚洲女同一区二区| 亚洲色图在线看| 亚洲线精品一区二区三区| 丝袜诱惑亚洲看片| 免费观看久久久4p| 国产黑丝在线一区二区三区| 国产精品一区二区男女羞羞无遮挡| 日韩午夜在线播放| 国产日韩亚洲欧美综合| 中文字幕在线播放不卡一区| 一区二区久久久久久| 日本成人在线不卡视频| 国产成人亚洲综合色影视| 在线免费观看不卡av| 欧美日韩国产影片| 国产欧美1区2区3区| 国产三区在线成人av| 一区二区日韩电影| 国产精品一区久久久久| 色视频成人在线观看免| 欧美丰满高潮xxxx喷水动漫 | 国产精品电影院| 亚洲国产va精品久久久不卡综合 | 国产成人精品免费网站| 欧洲日韩一区二区三区|