Veja Artigos relacionados:
http://www.csdn.net/devell/read_article.asp?id=22695
Este artigo foi adicionado com base nisso, adicionando algumas funções adequadas para os sites chineses, talvez alguns não tenham reabastecido. Interseção
<%
Classe StringOperations
'********************************************** *** ************************************
'' @Function Descrição: Substitua a string pela matriz do tipo de char
'' @Parameter Descrição: -dr [string]: string que precisa ser convertida
'' @Return Valor: - [Array] Char Type Array
'********************************************** *** ************************************
Funções públicas
Redim Chararray (Len (STR))
para i = 1 a len (str)
CharArray (I-1) = MID (STR, I, 1)
próximo
Tocarrray = CharArray
Função final
'********************************************** *** ************************************
'' @Function Descrição: converta uma matriz em uma string
'' @Parameter Descrição: -arr [Array]: Dados precisavam ser convertidos
'' @Return valor: - [string] string
'********************************************** *** ************************************
Funções públicas (BYVAL ARR)
para i = 0 para ubound (arr)
Strobj = strobj & arr (i)
próximo
Arraytring = strobj
Função final
'********************************************** *** ************************************
'' @Function Descrição: Verifique se a string de origem STR começa com chars
'' @Parameter Descrição: -str [string]: string de origem
'' @Parameter Descrição: -Chars [String]: Caractere/String de comparação
'' @Return valor: - [bool]
'********************************************** *** ************************************
Função pública StartSwith (Byval Str, Chars)
se esquerdo (str, len (chars)) = chars então
startSwith = true
outro
startSwith = false
final se
Função final
'********************************************** *** ************************************
'' @Function Descrição: Verifique se a string de origem termina com chars
'' @Parameter Descrição: -str [string]: string de origem
'' @Parameter Descrição: -Chars [String]: Caractere/String de comparação
'' @Return valor: - [bool]
'********************************************** *** ************************************
Função pública ENDSWITH (BYVAL STR, CHARS)
Se certo (str, len (chars)) = chars então
endswith = true
outro
endswith = false
final se
Função final
'********************************************** *** ************************************
'' @Function Descrição: copy n string str
'' @Parameter Descrição: -str [string]: string de origem
'' @Parameter Descrição: -n [int]: número de réplicas
'' @Return valor: - [string] cópia string
'********************************************** *** ************************************
Clone de função pública (BYVAL STR, N)
para i = 1 a n
Valor = valor e str
próximo
clone = valor
Função final
'********************************************** *** ************************************
'' @Function Descrição: Exclua os caracteres da frente da frente da string de origem str
'' @Parameter Descrição: -str [string]: string de origem
'' @Parameter Descrição: -n [int]: Número de caracteres excluídos
'' @Return valor: - [string] String deletada
'********************************************** *** ************************************
Função pública TRIMSTART (BYVAL STR, N)
Valor = mid (str, n+1)
Trimstart = Valor
Função final
'********************************************** *** ************************************
'' @Function Descrição: Exclua a última string n da string de origem str
'' @Parameter Descrição: -str [string]: string de origem
'' @Parameter Descrição: -n [int]: Número de caracteres excluídos
'' @Return valor: - [string] String deletada
'********************************************** *** ************************************
Função pública Trimend (Byval Str, N)
Valor = esquerda (str, len (str) -n)))
trimend = valor
Função final
'********************************************** *** ************************************
'' @Function Descrição: Verifique se o personagem é o personagem inglês AZ ou AZ
'' @Parameter Descrição: -Character [char]: o personagem foi verificado
'' @Return valor: - [bool] Se for um personagem em inglês, retorne verdadeiro, caso contrário, falsa
'*************************
|||| ..