VB Unescape

VB Unescape,第1张

概述Public Function unescape(szEscape As String) As String Dim i As Long, l As Long Dim c As String, s As String l = Len(szEscape) unescape = "" For i = 1 To l c = Mid$(sz
Public Function unescape(szEscape As String) As String    Dim i As Long,l As Long    Dim c As String,s As String        l = Len(szEscape)    unescape = ""    For i = 1 To l        c = MID$(szEscape,i,1)        If c = "%" Then            If MID$(szEscape,i + 1,1) = "u" And i <= l - 5 Then                s = "&H" & MID$(szEscape,i + 2,4)                If IsNumeric(s) Then                    c = ChrW$(CLng(Val(s)))                    i = i + 5                End If            ElseIf i <= l - 2 Then                s = "&H" & MID$(szEscape,2)                c = ChrW$(CLng(Val(s)))                i = i + 2            End If        End If        unescape = unescape & c    Next iEnd Function
总结

以上是内存溢出为你收集整理的VB Unescape全部内容,希望文章能够帮你解决VB Unescape所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/langs/1283978.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-06-09
下一篇 2022-06-09

发表评论

登录后才能评论

评论列表(0条)

保存