static string GetCoreSound(string str, ref int totalCoreSoundCharacter) { string soundmap = "अबसदइफगहईजकलमनओपकरसतउववज़यज"; string h_shift = GethShift(str,ref totalCoreSoundCharacter); if (h_shift == null) { int position = ((str[0]) - 'a'); if (position < soundmap.Length && position >= 0) { return "" + soundmap[position]; } totalCoreSoundCharacter=1; return str; } else { return h_shift; } }
Private Shared Function GetCoreSound(ByVal str As String, ByRef totalCoreSoundCharacter As Integer) As String Dim soundmap As String = "अबसदइफगहईजकलमनओपकरसतउववज़यज" Dim h_shift As String = GethShift(str, totalCoreSoundCharacter) If h_shift Is Nothing Then Dim position As Integer = ((str(0)) - "a"c) If position < soundmap.Length AndAlso position >= 0 Then Return "" & soundmap(position) End If totalCoreSoundCharacter = 1 Return str Else Return h_shift End If End Function
" Dim position As Integer = ((str(0)) - "a"c)"
Dim position As Integer = Convert.ToInt32(s(0)) - Convert.ToInt32("a"c)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)