• 您的位置我爱Aspx >> VB.Net >> 我将此方法移植到VB.NET上了,请看源码(二)
  • 我将此方法移植到VB.NET上了,请看源码(二)

  • 作者:aspxer  来源:internet  日期:2007-5-20 14:01:59  关键字:.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

    我对这篇文章有话说?
  • 广告位招租,广告代号:content_468_15
  • 上一篇:Visual Basic .NET 代码示例 (From MS)
    下一篇:在VB.NET中使用抽象类