我爱Aspx >> VB.Net >> 我将此方法移植到VB.NET上了,请看源码(二)我将此方法移植到VB.NET上了,请看源码(二)
ion "由拼音到拼音"
Public Shared Function GetPyToPy(ByVal PYStr As String, _
Optional ByVal IsComp As Boolean = False) As String
If PYStr.Length = 0 Then Exit Function
mIsCompelled = IsComp
Dim toneSite As Integer
Dim toneValue As Integer
Dim toneChar As Char
toneSite = GetToneSite(PYStr)
If toneSite = -1 Then
Return PYStr
ElseIf toneSite < -1 Then
Exit Function
End If
toneValue = GetToneValue(PYStr, toneSite)
If toneValue = -1 Then Exit Function
If mIsCompelled Then
toneChar = GetToneChar(PYStr, toneSite - 1)
Else
toneChar = GetToneChar(PYStr)
End If
If Not isPyChar(toneChar) Then Exit Function
Return Conversion(PYStr, toneSite, toneValue, toneChar)
End Function
【我对这篇文章有话说?】
在VB.NET中使用抽象类[05-20]
Visual Basic .NET中的异常处理简..[05-20]
Visual Basic .NET中的异常处理简..[05-20]
VB.NET中调用窗体要先声明实例....[05-20]
VB.NET:又将是个跨越十年的美丽...[05-20]
VB.net中HOOK的应用(CNET中文网)[05-20]
VB.NET的Override事件处理程序[05-20]
vb.Net编程简介之五(轉)[05-20]
vb.Net编程简介之四[05-20]
VB.Net语言方面的改进(轉)[05-20]
在VB.NET中使用抽象类[05-20]
Visual Basic .NET中的异常处理简..[05-20]
Visual Basic .NET中的异常处理简..[05-20]
VB.NET中调用窗体要先声明实例....[05-20]
VB.NET:又将是个跨越十年的美丽...[05-20]
VB.net中HOOK的应用(CNET中文网)[05-20]
VB.NET的Override事件处理程序[05-20]
vb.Net编程简介之五(轉)[05-20]
vb.Net编程简介之四[05-20]
VB.Net语言方面的改进(轉)[05-20]