newasp中main类(19)


        For i = 0 To UBound(FobWords, 1)
            If InStr(keyword, FobWords(i)) > 0 Then
                keyword = Replace(keyword, FobWords(i), "")
            End If
        Next
        ChkKeyWord = keyword
    End Function
    '================================================
    '函数名:JAPEncode
    '作  用:日文片假名编码
    '参  数:str ----原字符
    '================================================
    Public Function JAPEncode(ByVal str)
        Dim FobWords, i
        On Error Resume Next
        If IsNull(str) Or Trim(str) = "" Then
            JAPEncode = ""
            Exit Function
        End If
        FobWords = Array(92, 304, 305, 430, 431, 437, 438, 12460, 12461, 12462, 12463, 12464, 12465, 12466, 12467, 12468, 12469, 12470, 12471, 12472, 12473, 12474, 12475, 12476, 12477, 12478, 12479, 12480, 12481, 12482, 12483, 12485, 12486, 12487, 12488, 12489, 12490, 12496, 12497, 12498, 12499, 12500, 12501, 12502, 12503, 12504, 12505, 12506, 12507, 12508, 12509, 12510, 12521, 12532, 12533, 65340)
        For i = 1 To UBound(FobWords, 1)
            If InStr(str, ChrW(FobWords(i))) > 0 Then
                str = Replace(str, ChrW(FobWords(i)), "&#" & FobWords(i) & ";")
            End If
        Next
        JAPEncode = str

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:http://www.heiqu.com/3539.html